Remove unused anonymous fields in $.item

This commit is contained in:
Emilia Simmons 2021-08-20 08:55:17 -04:00
parent eeee2489f2
commit 4095edf17c
3 changed files with 45172 additions and 45256 deletions

View file

@ -141,10 +141,7 @@ org_grammar = {
stars: $ => seq(prec.dynamic(10, $._stars), /\*+/),
// the choice with ':' allows for the conflict of $.title to operate
item: $ => seq(
field('first', choice($._text, /[ \t]:/)),
field('rest', repeat(choice($._text, /[ \t]:/))),
),
item: $ => seq(repeat1(choice($._text, /[ \t]:/))),
_taglist: $ => prec.dynamic(DYN.hltags, // over title text
seq(/[ \t]:/,

View file

@ -490,8 +490,7 @@
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "first",
"type": "REPEAT1",
"content": {
"type": "CHOICE",
"members": [
@ -505,26 +504,6 @@
}
]
}
},
{
"type": "FIELD",
"name": "rest",
"content": {
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_text"
},
{
"type": "PATTERN",
"value": "[ \\t]:"
}
]
}
}
}
]
},

90400
src/parser.c

File diff suppressed because it is too large Load diff