Clean up regexps
This commit is contained in:
parent
36436a4c59
commit
ab9d87fbc8
4 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ type PropertyDrawer struct {
|
|||
|
||||
var beginDrawerRegexp = regexp.MustCompile(`^(\s*):(\S+):\s*$`)
|
||||
var endDrawerRegexp = regexp.MustCompile(`^(\s*):END:\s*$`)
|
||||
var propertyRegexp = regexp.MustCompile(`^(\s*):(\S+):(\s+(.*)$|\s*$)`)
|
||||
var propertyRegexp = regexp.MustCompile(`^(\s*):(\S+):(\s+(.*)$|$)`)
|
||||
|
||||
func lexDrawer(line string) (token, bool) {
|
||||
if m := endDrawerRegexp.FindStringSubmatch(line); m != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue