Support property nodes with colons in their key.

This commit is contained in:
Tom Alexander
2023-09-06 18:41:02 -04:00
parent c4d7e646fc
commit 49afcf0db6
2 changed files with 10 additions and 1 deletions

View File

@@ -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>, OrgSource<'s>> {
alt((tag("+:"), tag(":")))(input)
recognize(tuple((
alt((tag("+:"), tag(":"))),
alt((space1, line_ending, eof)),
)))(input)
}