mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
fix: better grammar on incomplete heading (#187)
This commit is contained in:
parent
6e3af65749
commit
4b1057efaf
4 changed files with 28 additions and 12 deletions
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue