fix: typo in shortintertext node definition

pull/813/head
Riley Bruins 2024-02-13 22:25:30 +07:00
parent 2ae2021d7b
commit 3bffe98907
5 changed files with 7899 additions and 7879 deletions

@ -1132,7 +1132,7 @@ module.exports = grammar({
text_mode: $ =>
seq(
field('command', choice('\\text', '\\intertext', 'shortintertext')),
field('command', choice('\\text', '\\intertext', '\\shortintertext')),
field('content', $.curly_group)
),
},

2
src/grammar.json vendored

@ -5703,7 +5703,7 @@
},
{
"type": "STRING",
"value": "shortintertext"
"value": "\\shortintertext"
}
]
}

@ -7082,11 +7082,11 @@
"named": false
},
{
"type": "\\text",
"type": "\\shortintertext",
"named": false
},
{
"type": "shortintertext",
"type": "\\text",
"named": false
}
]
@ -8538,6 +8538,10 @@
"type": "\\section*",
"named": false
},
{
"type": "\\shortintertext",
"named": false
},
{
"type": "\\smartcite",
"named": false
@ -8674,10 +8678,6 @@
"type": "placeholder",
"named": true
},
{
"type": "shortintertext",
"named": false
},
{
"type": "source_code",
"named": true

15742
src/parser.c vendored

File diff suppressed because it is too large Load Diff

@ -154,3 +154,23 @@ Author command
(text
(word)
(word))))))
================================================================================
Text commands
================================================================================
\intertext{John Doe } \text{Foo Bar}
--------------------------------------------------------------------------------
(source_file
(text_mode
(curly_group
(text
(word)
(word))))
(text_mode
(curly_group
(text
(word)
(word)))))