aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvaro Muñoz <pwntester@github.com>2020-09-30 09:41:53 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-09-30 17:06:58 +0200
commit61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7 (patch)
tree46791f6efcba0bcd32beed78cc8b66265e8427cc
parentremove locals.scm (diff)
downloadnvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.tar
nvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.tar.gz
nvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.tar.bz2
nvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.tar.lz
nvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.tar.xz
nvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.tar.zst
nvim-treesitter-61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7.zip
fine tune keyword highlights
-rw-r--r--queries/ql/highlights.scm64
1 files changed, 41 insertions, 23 deletions
diff --git a/queries/ql/highlights.scm b/queries/ql/highlights.scm
index 67810de6a..bc58a7e59 100644
--- a/queries/ql/highlights.scm
+++ b/queries/ql/highlights.scm
@@ -1,49 +1,67 @@
[
- "and"
- "any"
"as"
"asc"
- "avg"
"by"
"class"
- "concat"
- "count"
"desc"
- "else"
- "exists"
"extends"
"forall"
"forex"
"from"
- "if"
"implies"
- "import"
"in"
- "instanceof"
- "max"
- "min"
"module"
"newtype"
+ "order"
+ "select"
+ "where"
+
+ (predicate)
+ (result)
+ (specialId)
+] @keyword
+
+[
+ "and"
"not"
"or"
- "order"
+] @keyword.operator
+
+[
+ "avg"
+ "any"
+ "count"
+ "concat"
+ "exists"
+ "max"
+ "min"
+ "instanceof"
"rank"
- "select"
+ "sum"
"strictconcat"
"strictcount"
"strictsum"
- "sum"
+] @function.builtin
+
+[
+ "import"
+] @include
+
+[
+ "if"
"then"
- "where"
+ "else"
+] @conditional
+[
+ (true)
(false)
- (predicate)
- (result)
- (specialId)
- (super)
+] @boolean
+
+[
(this)
- (true)
-] @keyword
+ (super)
+] @variable.builtin
[
"boolean"
@@ -89,7 +107,7 @@
(varName) @variable
(integer) @number
-(float) @number
+(float) @float
(string) @string