diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-10-22 16:46:12 +0300 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2022-11-26 13:17:51 +0200 |
| commit | 46ecf825f0044e9006067fe014c010419b191911 (patch) | |
| tree | 2810ee375235ab0fe816ad170a284dad4db6f533 | |
| parent | highlights(ecma): fix captures (diff) | |
| download | nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.tar nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.tar.gz nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.tar.bz2 nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.tar.lz nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.tar.xz nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.tar.zst nvim-treesitter-46ecf825f0044e9006067fe014c010419b191911.zip | |
highlights(typescript): use more specific groups
| -rw-r--r-- | queries/typescript/highlights.scm | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index 3df859058..dba119a3b 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -1,24 +1,28 @@ ; inherits: ecma + [ -"abstract" -"declare" -"enum" -"export" -"implements" -"interface" -"keyof" -"namespace" -"private" -"protected" -"public" -"type" -"readonly" -"override" -"satisfies" + "declare" + "enum" + "export" + "implements" + "interface" + "keyof" + "type" + "namespace" + "override" + "satisfies" ] @keyword (as_expression "as" @keyword) +[ + "abstract" + "private" + "protected" + "public" + "readonly" +] @type.qualifier + ; types (type_identifier) @type @@ -33,10 +37,12 @@ ;; punctuation (type_arguments - "<" @punctuation.bracket - ">" @punctuation.bracket) + ["<" ">"] @punctuation.bracket) + +(type_parameters + ["<" ">"] @punctuation.bracket) -(union_type +(union_type "|" @punctuation.delimiter) (intersection_type |
