on master help sign in
Update typescript grammar and queries (#4703)

* fix(grammars): update treesitter grammar and queries * add override keyword * Update runtime/queries/typescript/highlights.scm Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>

commit7367abd6c6f764b45802613ca9c46e921b4394e6 authorGabriel Dinner-David <82682503+gabydd@users.noreply.github.com> dateFri 11 Nov 2022, 00:42 (4 years ago) parentbb5a122
2 files changed+15−2
languages.toml+2−2 runtime/queries/typescript/highlights.scm+13
languages.toml+2−2
@@ -399,7 +399,7 @@ indent = { tab-width = 2, unit = " " }
399399
400400[[grammar]]
401401name = "typescript"
402−source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "3e897ea5925f037cfae2e551f8e6b12eec2a201a", subpath = "typescript" }
402+source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "6aac031ad88dd6317f02ac0bb27d099a553a7d8c", subpath = "typescript" }
403403
404404[[language]]
405405name = "tsx"
@@ -413,7 +413,7 @@ indent = { tab-width = 2, unit = " " }
413413
414414[[grammar]]
415415name = "tsx"
416−source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "3e897ea5925f037cfae2e551f8e6b12eec2a201a", subpath = "tsx" }
416+source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "6aac031ad88dd6317f02ac0bb27d099a553a7d8c", subpath = "tsx" }
417417
418418[[language]]
419419name = "css"
runtime/queries/typescript/highlights.scm+13
@@ -34,6 +34,7 @@
3434 "implements"
3535 "keyof"
3636 "namespace"
37+ "override"
3738] @keyword
3839
3940[
@@ -62,3 +63,15 @@
6263
6364((identifier) @type
6465 (#match? @type "^[A-Z]"))
66+
67+; Literals
68+
69+[
70+ (template_literal_type)
71+] @string
72+
73+; Tokens
74+
75+(template_type
76+ "${" @punctuation.special
77+ "}" @punctuation.special) @embedded