diff --git a/org_mode_samples/greater_element/property_drawer/key_with_colon.org b/org_mode_samples/greater_element/property_drawer/key_with_colon.org new file mode 100644 index 0000000..190204d --- /dev/null +++ b/org_mode_samples/greater_element/property_drawer/key_with_colon.org @@ -0,0 +1,6 @@ +* Overwrite + :PROPERTIES: + :header-args: :var foo="lorem" + :header-args:emacs-lisp: :var bar="ipsum" + :header-args:emacs-lisp+: :results silent :var baz=7 + :END: diff --git a/src/parser/property_drawer.rs b/src/parser/property_drawer.rs index ca0938f..f560130 100644 --- a/src/parser/property_drawer.rs +++ b/src/parser/property_drawer.rs @@ -169,5 +169,8 @@ fn node_property_name_end<'b, 'g, 'r, 's>( _context: RefContext<'b, 'g, 'r, 's>, input: OrgSource<'s>, ) -> Res, OrgSource<'s>> { - alt((tag("+:"), tag(":")))(input) + recognize(tuple(( + alt((tag("+:"), tag(":"))), + alt((space1, line_ending, eof)), + )))(input) }