mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
Update Typst Tree-Sitter grammar (#9403)
Co-authored-by: Idobenhamo <idobenhamo@users.noreply.github.com>
This commit is contained in:
parent
2058b3732c
commit
299bcce481
@ -2865,7 +2865,7 @@ indent = { tab-width = 2, unit = " " }
|
|||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "typst"
|
name = "typst"
|
||||||
source = { git = "https://github.com/uben0/tree-sitter-typst", rev = "e35aa22395fdde82bbc4b5700c324ce346dfc9e5" }
|
source = { git = "https://github.com/uben0/tree-sitter-typst", rev = "ecf8596336857adfcd5f7cbb3b2aa11a67badc37" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "nunjucks"
|
name = "nunjucks"
|
||||||
|
@ -55,7 +55,12 @@
|
|||||||
; MARKUP
|
; MARKUP
|
||||||
(item "-" @markup.list)
|
(item "-" @markup.list)
|
||||||
(term ["/" ":"] @markup.list)
|
(term ["/" ":"] @markup.list)
|
||||||
(heading ["=" "==" "===" "====" "====="] @markup.heading.marker) @markup.heading
|
(heading "=" @markup.heading.marker) @markup.heading.1
|
||||||
|
(heading "==" @markup.heading.marker) @markup.heading.2
|
||||||
|
(heading "===" @markup.heading.marker) @markup.heading.3
|
||||||
|
(heading "====" @markup.heading.marker) @markup.heading.4
|
||||||
|
(heading "=====" @markup.heading.marker) @markup.heading.5
|
||||||
|
(heading "======" @markup.heading.marker) @markup.heading.6
|
||||||
(url) @tag
|
(url) @tag
|
||||||
(emph) @markup.italic
|
(emph) @markup.italic
|
||||||
(strong) @markup.bold
|
(strong) @markup.bold
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
|
|
||||||
(raw_blck
|
(raw_blck
|
||||||
lang: (ident) @injection.language
|
lang: (ident) @injection.language
|
||||||
(blob) @injection.content)
|
(blob) @injection.content)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user