on master help sign in
Update Typescript, TSX and Svelte grammar, to latest tag (#6874)

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

commitbc4f08febf87c4d498971153715e30a39c61d511 authorJeppe Christiansen <jeppech@users.noreply.github.com> dateFri 14 Jul 2023, 04:42 (3 years ago) parent843ae97
3 files changed+14−3
languages.toml+3−3 runtime/queries/_typescript/highlights.scm+1 runtime/queries/svelte/injections.scm+10
languages.toml+3−3
@@ -568,7 +568,7 @@ indent = { tab-width = 2, unit = " " }
568568
569569[[grammar]]
570570name = "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" }
572572
573573[[language]]
574574name = "tsx"
@@ -582,7 +582,7 @@ indent = { tab-width = 2, unit = " " }
582582
583583[[grammar]]
584584name = "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" }
586586
587587[[language]]
588588name = "css"
@@ -912,7 +912,7 @@ language-servers = [ "svelteserver" ]
912912
913913[[grammar]]
914914name = "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" }
916916
917917[[language]]
918918name = "vue"
runtime/queries/_typescript/highlights.scm+1
@@ -88,6 +88,7 @@
8888 "keyof"
8989 "namespace"
9090 "override"
91+ "satisfies"
9192] @keyword
9293
9394[
runtime/queries/svelte/injections.scm+10
@@ -4,6 +4,16 @@
44 (raw_text) @injection.content)
55 (#set! injection.language "css"))
66
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+
717((attribute
818 (attribute_name) @_attr
919 (quoted_attribute_value (attribute_value) @css))