aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphinus <me@delphinus.dev>2020-12-20 21:49:41 +0900
committerKiyan <yazdani.kiyan@protonmail.com>2020-12-21 08:55:04 +0100
commit0fc8ea00356ac0b977c0caf14059235aeebe488c (patch)
treeb5ec9ca6a8db29849dc6b4466d2556b82e862e6b
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.tar
nvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.tar.gz
nvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.tar.bz2
nvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.tar.lz
nvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.tar.xz
nvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.tar.zst
nvim-treesitter-0fc8ea00356ac0b977c0caf14059235aeebe488c.zip
Add lacked Javascript operators
-rw-r--r--queries/javascript/highlights.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm
index cc073dafc..15d3361a5 100644
--- a/queries/javascript/highlights.scm
+++ b/queries/javascript/highlights.scm
@@ -151,6 +151,7 @@
";" @punctuation.delimiter
"." @punctuation.delimiter
"," @punctuation.delimiter
+"?." @punctuation.delimiter
(pair ":" @punctuation.delimiter)
@@ -181,6 +182,21 @@
"||"
"%"
"%="
+ "*"
+ "**"
+ ">>>"
+ "&"
+ "|"
+ "^"
+ "??"
+ "*="
+ ">>="
+ ">>>="
+ "^="
+ "|="
+ "&&="
+ "||="
+ "??="
] @operator
(binary_expression "/" @operator)