New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two orgmode parsing bugs #5

Open
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@cpbotha
Copy link

cpbotha commented Jan 20, 2019

This takes care of two bugs:

  • * 2019, a commonly found heading when using datetree headings in Emacs orgmode, would not be parsed as a heading, as the regular expression did not accept any digits.
  • * First part: second part time:stamp - "second part" would be parsed as a tag. Fixed by only accepting as keyword / tag if no spaces adjacent to :, the same as Emacs orgmode.

cpbotha added some commits Jan 20, 2019

Modify headings regexp to include digits
The parsing was ignoring headings like "* 2019" which often occurs in
org files using the standard datetree target.
Change regexp to exclude tags starting with space
This was incorrectly highlighting orgmode headings with for example "*
First Part: second part". With this change, this tmbundle now does the
same as Emacs orgmode itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment