mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04: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]]
|
||||
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]]
|
||||
name = "nunjucks"
|
||||
|
@ -55,7 +55,12 @@
|
||||
; MARKUP
|
||||
(item "-" @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
|
||||
(emph) @markup.italic
|
||||
(strong) @markup.bold
|
||||
|
@ -3,4 +3,5 @@
|
||||
|
||||
(raw_blck
|
||||
lang: (ident) @injection.language
|
||||
(blob) @injection.content)
|
||||
(blob) @injection.content)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user