Merge pull request #43 from pjkundert/fix-drawer-end
Make ORG-mode drawer "🔚" case-insensitivie
This commit is contained in:
commit
a8e74684a5
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ type PropertyDrawer struct {
|
|||
}
|
||||
|
||||
var beginDrawerRegexp = regexp.MustCompile(`^(\s*):(\S+):\s*$`)
|
||||
var endDrawerRegexp = regexp.MustCompile(`^(\s*):END:\s*$`)
|
||||
var endDrawerRegexp = regexp.MustCompile(`(?i)^(\s*):END:\s*$`)
|
||||
var propertyRegexp = regexp.MustCompile(`^(\s*):(\S+):(\s+(.*)$|$)`)
|
||||
|
||||
func lexDrawer(line string) (token, bool) {
|
||||
|
|
2
org/testdata/headlines.org
vendored
2
org/testdata/headlines.org
vendored
|
@ -18,7 +18,7 @@ we can link to headlines that define a custom_id: [[#this-will-be-the-id-of-the-
|
|||
Still outside the drawer
|
||||
:DRAWERNAME:
|
||||
This is inside the drawer
|
||||
:END:
|
||||
:end:
|
||||
Still outside the drawer
|
||||
* CUSTOM headline with custom status
|
||||
it's possible to use =#+SETUPFILE= - in this case the setup file contains the following
|
||||
|
|
2
org/testdata/misc.html
vendored
2
org/testdata/misc.html
vendored
|
@ -162,7 +162,7 @@ we can link to headlines that define a custom_id: [[#this-will-be-the-id-of-the-
|
|||
Still outside the drawer
|
||||
:DRAWERNAME:
|
||||
This is inside the drawer
|
||||
:END:
|
||||
:end:
|
||||
Still outside the drawer
|
||||
* CUSTOM headline with custom status
|
||||
it's possible to use =#+SETUPFILE= - in this case the setup file contains the following
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue