aboutsummaryrefslogtreecommitdiffstats
path: root/queries/java
diff options
context:
space:
mode:
authorChinmay <chinmay.dalal.22012001@gmail.com>2020-06-15 22:45:56 +0530
committerChinmay <chinmay.dalal.22012001@gmail.com>2020-06-15 22:45:56 +0530
commitd262d4101e55450e8c0092c2131f19e70dc1a261 (patch)
tree35b80d8b0e74fa40f5dd9057e2f16321e71fc522 /queries/java
parentFix method highlighting (diff)
downloadnvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.tar
nvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.tar.gz
nvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.tar.bz2
nvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.tar.lz
nvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.tar.xz
nvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.tar.zst
nvim-treesitter-d262d4101e55450e8c0092c2131f19e70dc1a261.zip
Add operators
Diffstat (limited to 'queries/java')
-rw-r--r--queries/java/highlights.scm28
1 files changed, 27 insertions, 1 deletions
diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm
index 59b803abf..71e8a74a4 100644
--- a/queries/java/highlights.scm
+++ b/queries/java/highlights.scm
@@ -13,7 +13,33 @@
(marker_annotation
name: (identifier) @attribute)
-"@" @operator
+; Operators
+[
+"@"
+"+"
+"++"
+"-"
+"--"
+"&"
+"&&"
+"|"
+"||"
+"!="
+"=="
+"*"
+"/"
+"%"
+"<"
+"<="
+">"
+">="
+"="
+"-="
+"+="
+"*="
+"/="
+"%="
+] @operator
; Types