Remove unused anonymous fields in $.item
This commit is contained in:
parent
eeee2489f2
commit
4095edf17c
3 changed files with 45172 additions and 45256 deletions
|
|
@ -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]:/,
|
||||
|
|
|
|||
|
|
@ -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
90400
src/parser.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue