on master help sign in
Update LaTex grammar (#4528)
908529cTriton171
languages.toml+1−1
@@ -570,7 +570,7 @@ indent = { tab-width = 4, unit = "\t" }
570
570
571[[grammar]]
571[[grammar]]
572name = "latex"
572name = "latex"
573−source = { git = "https://github.com/latex-lsp/tree-sitter-latex", rev = "b3b2cf27f33e71438ebe46934900b1153901c6f2" }
573+source = { git = "https://github.com/latex-lsp/tree-sitter-latex", rev = "8c75e93cd08ccb7ce1ccab22c1fbd6360e3bcea6" }
574
574
575[[language]]
575[[language]]
576name = "lean"
576name = "lean"
runtime/queries/latex/highlights.scm+6
@@ -29,6 +29,12 @@
29 (#eq? @punctuation.delimiter "&"))
29 (#eq? @punctuation.delimiter "&"))
30
30
31["[" "]" "{" "}"] @punctuation.bracket ; "(" ")" has no syntactical meaning in LaTeX
31["[" "]" "{" "}"] @punctuation.bracket ; "(" ")" has no syntactical meaning in LaTeX
32+(math_delimiter
33+ left_command: _ @punctuation.delimiter
34+ left_delimiter: _ @punctuation.delimiter
35+ right_command: _ @punctuation.delimiter
36+ right_delimiter: _ @punctuation.delimiter
37+)
32
38
33;; General environments
39;; General environments
34(begin
40(begin
runtime/queries/latex/injections.scm+1−1
@@ -1,2 +1,2 @@
1−((comment) @injection.content
1+((line_comment) @injection.content
2 (#set! injection.language "comment"))
2 (#set! injection.language "comment"))