on master help sign in
Update Typescript, TSX and Svelte grammar, to latest tag (#6874)
bc4f08fJeppe Christiansen
languages.toml+3−3
@@ -568,7 +568,7 @@ indent = { tab-width = 2, unit = " " }
568
568
569[[grammar]]
569[[grammar]]
570name = "typescript"
570name = "typescript"
571−source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "6aac031ad88dd6317f02ac0bb27d099a553a7d8c", subpath = "typescript" }
571+source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259", subpath = "typescript" }
572
572
573[[language]]
573[[language]]
574name = "tsx"
574name = "tsx"
@@ -582,7 +582,7 @@ indent = { tab-width = 2, unit = " " }
582
582
583[[grammar]]
583[[grammar]]
584name = "tsx"
584name = "tsx"
585−source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "6aac031ad88dd6317f02ac0bb27d099a553a7d8c", subpath = "tsx" }
585+source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259", subpath = "tsx" }
586
586
587[[language]]
587[[language]]
588name = "css"
588name = "css"
@@ -912,7 +912,7 @@ language-servers = [ "svelteserver" ]
912
912
913[[grammar]]
913[[grammar]]
914name = "svelte"
914name = "svelte"
915−source = { git = "https://github.com/Himujjal/tree-sitter-svelte", rev = "349a5984513b4a4a9e143a6e746120c6ff6cf6ed" }
915+source = { git = "https://github.com/Himujjal/tree-sitter-svelte", rev = "be7f2e7db1fc19f0852265ec60923fc058380739" }
916
916
917[[language]]
917[[language]]
918name = "vue"
918name = "vue"
runtime/queries/_typescript/highlights.scm+1
@@ -88,6 +88,7 @@
88 "keyof"
88 "keyof"
89 "namespace"
89 "namespace"
90 "override"
90 "override"
91+ "satisfies"
91] @keyword
92] @keyword
92
93
93[
94[
runtime/queries/svelte/injections.scm+10
@@ -4,6 +4,16 @@
4 (raw_text) @injection.content)
4 (raw_text) @injection.content)
5 (#set! injection.language "css"))
5 (#set! injection.language "css"))
6
6
7+((style_element
8+ (start_tag
9+ (attribute
10+ (attribute_name) @_attr
11+ (quoted_attribute_value (attribute_value) @_lang)))
12+ (raw_text) @injection.content)
13+ (#eq? @_attr "lang")
14+ (#match? @_lang "scss")
15+ (#set! injection.language "scss"))
16+
7((attribute
17((attribute
8 (attribute_name) @_attr
18 (attribute_name) @_attr
9 (quoted_attribute_value (attribute_value) @css))
19 (quoted_attribute_value (attribute_value) @css))