Merge pull request #103 from ribru17/master

fix: typo in shortintertext node definition
pull/813/head
Patrick Förster 2024-02-14 21:07:28 +07:00 committed by GitHub
commit 174bb63e0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)))))