Merge pull request #43 from pjkundert/fix-drawer-end

Make ORG-mode drawer "🔚" case-insensitivie
This commit is contained in:
Niklas Fasching 2020-11-27 23:37:21 +01:00 committed by GitHub
commit a8e74684a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ type PropertyDrawer struct {
} }
var beginDrawerRegexp = regexp.MustCompile(`^(\s*):(\S+):\s*$`) 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+(.*)$|$)`) var propertyRegexp = regexp.MustCompile(`^(\s*):(\S+):(\s+(.*)$|$)`)
func lexDrawer(line string) (token, bool) { func lexDrawer(line string) (token, bool) {

View file

@ -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 Still outside the drawer
:DRAWERNAME: :DRAWERNAME:
This is inside the drawer This is inside the drawer
:END: :end:
Still outside the drawer Still outside the drawer
* CUSTOM headline with custom status * CUSTOM headline with custom status
it's possible to use =#+SETUPFILE= - in this case the setup file contains the following it's possible to use =#+SETUPFILE= - in this case the setup file contains the following

View file

@ -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 Still outside the drawer
:DRAWERNAME: :DRAWERNAME:
This is inside the drawer This is inside the drawer
:END: :end:
Still outside the drawer Still outside the drawer
* CUSTOM headline with custom status * CUSTOM headline with custom status
it's possible to use =#+SETUPFILE= - in this case the setup file contains the following it's possible to use =#+SETUPFILE= - in this case the setup file contains the following