diff options
author | Gammut | 2023-05-26 21:37:19 +0000 |
---|---|---|
committer | GitHub | 2023-05-26 21:37:19 +0000 |
commit | 86ef389c0dfc445ba2888a81edcc13113d1638bc (patch) | |
tree | f2468c8f9db2060337ce2441f0490d4094ed4c68 /runtime/queries/typescript | |
parent | 61a89956e3baff9d6a3446871d0234f65992827d (diff) |
Highlight query improvements for java and typescript (#7145)
* Add missing queries to java highlights
* Fix generic type bracket highlights in typescript
Diffstat (limited to 'runtime/queries/typescript')
-rw-r--r-- | runtime/queries/typescript/highlights.scm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/runtime/queries/typescript/highlights.scm b/runtime/queries/typescript/highlights.scm index fc8d110d..3ab9c746 100644 --- a/runtime/queries/typescript/highlights.scm +++ b/runtime/queries/typescript/highlights.scm @@ -5,7 +5,6 @@ (ambient_declaration "global" @namespace) - ; Variables (required_parameter (identifier) @variable.parameter) @@ -22,8 +21,6 @@ (conditional_type ["?" ":"] @operator) - - ; Keywords [ @@ -50,16 +47,22 @@ "readonly" ] @keyword.storage.modifier -; inherits: ecma - ; Types (type_identifier) @type (predefined_type) @type.builtin (type_arguments - "<" @punctuation.bracket - ">" @punctuation.bracket) + [ + "<" + ">" + ] @punctuation.bracket) + +(type_parameters + [ + "<" + ">" + ] @punctuation.bracket) ((identifier) @type (#match? @type "^[A-Z]")) @@ -75,3 +78,5 @@ (template_type "${" @punctuation.special "}" @punctuation.special) @embedded + +; inherits: ecma |