Update Typst Tree-Sitter grammar (#9403)

Co-authored-by: Idobenhamo <idobenhamo@users.noreply.github.com>
pull/9414/head
Idobenhamo 10 months ago committed by GitHub
parent 2058b3732c
commit 299bcce481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save