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 | |
| 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
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/ecma/highlights.scm | 1 | ||||
| -rw-r--r-- | queries/javascript/highlights.scm | 3 | ||||
| -rw-r--r-- | queries/typescript/highlights.scm | 4 |
4 files changed, 7 insertions, 3 deletions
diff --git a/lockfile.json b/lockfile.json index 8fa586b3b..04dd20834 100644 --- a/lockfile.json +++ b/lockfile.json @@ -156,7 +156,7 @@ "revision": "72a9af08f4e501fad1252cc62f71469f247229f1" }, "javascript": { - "revision": "35565430231d0c15b748b0c9de36b247d8780f75" + "revision": "936d976a782e75395d9b1c8c7c7bf4ba6fe0d86b" }, "jsdoc": { "revision": "189a6a4829beb9cdbe837260653b4a3dfb0cc3db" diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index 7334bd1e6..c5baa3112 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -122,7 +122,6 @@ ";" @punctuation.delimiter "." @punctuation.delimiter "," @punctuation.delimiter -"?." @punctuation.delimiter (pair ":" @punctuation.delimiter) diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm index 57634434e..b62679c4b 100644 --- a/queries/javascript/highlights.scm +++ b/queries/javascript/highlights.scm @@ -31,3 +31,6 @@ (formal_parameters (assignment_pattern left: (identifier) @parameter)) + +;; punctuation +(optional_chain) @punctuation.delimiter 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) |
