mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-05 11:57:43 +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
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
(raw_blck
|
(raw_blck
|
||||||
lang: (ident) @injection.language
|
lang: (ident) @injection.language
|
||||||
(blob) @injection.content)
|
(blob) @injection.content)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue