diff options
| author | GitHub <noreply@github.com> | 2022-08-19 06:49:31 +0000 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-08-20 10:42:19 +0200 |
| commit | 9dd1065ebeaa0c08df89867b9fbb5b43ece30335 (patch) | |
| tree | a63bf36ccc8da2b5817a9494b7190d19a945db42 /queries/typescript | |
| parent | Update README (diff) | |
| download | nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.tar nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.tar.gz nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.tar.bz2 nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.tar.lz nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.tar.xz nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.tar.zst nvim-treesitter-9dd1065ebeaa0c08df89867b9fbb5b43ece30335.zip | |
highlights(javascript): "?." -> optional_chain
Diffstat (limited to 'queries/typescript')
| -rw-r--r-- | queries/typescript/highlights.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index 26725f821..fac349c60 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -26,7 +26,7 @@ ((import_specifier name: (identifier) @type))))) -; punctuation +;; punctuation (type_arguments "<" @punctuation.bracket @@ -44,6 +44,8 @@ (pair ":" @punctuation.delimiter) +"?." @punctuation.delimiter + (property_signature "?" @punctuation.special) (optional_parameter "?" @punctuation.special) |
