fix: better grammar on incomplete heading (#187)

This commit is contained in:
Myriad-Dreamin 2024-04-12 09:49:36 +08:00 committed by GitHub
parent 6e3af65749
commit 4b1057efaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 12 deletions

View file

@ -170,10 +170,10 @@ const markupMath: textmate.Pattern = {
const markupHeading: textmate.Pattern = {
name: "markup.heading.typst",
begin: /^\s*=+\s+/,
begin: /^\s*(=+)(?:(?=[\r\n]|$)|\s+)/,
end: /\n|(?=<)/,
beginCaptures: {
"0": {
"1": {
name: "punctuation.definition.heading.typst",
},
},