fix: Headline.8d passing. All tests passing!

This commit is contained in:
Emilia Simmons 2022-03-28 15:52:32 -04:00
parent 9a595e51c1
commit 0d5e731abf
3 changed files with 20847 additions and 20823 deletions

View file

@ -36,6 +36,8 @@ org_grammar = {
// Should we start the tag?
[$.item],
[$._tag_expr_start, $.expr],
// _multiline_text • ':' …
// Is the ':' continued multiline text or is it a drawer?
[$.paragraph],
@ -112,13 +114,16 @@ org_grammar = {
item: $ => repeat1($.expr),
tag_list: $ => prec.dynamic(1, seq(
token(prec('non-immediate', ':')),
$._tag_expr_start,
repeat1(seq(
field('tag', alias($._noc_expr, $.tag)),
token.immediate(prec('special', ':')),
)),
)),
// This is in another node to ensure a conflict with headline (item)
_tag_expr_start: _ => token(prec('non-immediate', ':')),
property_drawer: $ => seq(
caseInsensitive(':properties:'),
repeat1($._nl),

View file

@ -330,15 +330,8 @@
"type": "SEQ",
"members": [
{
"type": "TOKEN",
"content": {
"type": "PREC",
"value": "non-immediate",
"content": {
"type": "STRING",
"value": ":"
}
}
"type": "SYMBOL",
"name": "_tag_expr_start"
},
{
"type": "REPEAT1",
@ -375,6 +368,17 @@
]
}
},
"_tag_expr_start": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": "non-immediate",
"content": {
"type": "STRING",
"value": ":"
}
}
},
"property_drawer": {
"type": "SEQ",
"members": [
@ -4171,6 +4175,10 @@
[
"item"
],
[
"_tag_expr_start",
"expr"
],
[
"paragraph"
],

41637
src/parser.c

File diff suppressed because it is too large Load diff