aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ql
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-10-30 23:39:32 +0200
committerObserverOfTime <chronobserver@disroot.org>2022-11-26 13:17:51 +0200
commita1f21606d98cb6873f4b7155144f207de60b0564 (patch)
tree3d5ee6d21f47948990af5eab2c0d64e59b428966 /queries/ql
parenthighlights(qmljs): fix captures (diff)
downloadnvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.tar
nvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.tar.gz
nvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.tar.bz2
nvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.tar.lz
nvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.tar.xz
nvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.tar.zst
nvim-treesitter-a1f21606d98cb6873f4b7155144f207de60b0564.zip
highlights(ql): use more specific groups
Diffstat (limited to 'queries/ql')
-rw-r--r--queries/ql/highlights.scm21
1 files changed, 13 insertions, 8 deletions
diff --git a/queries/ql/highlights.scm b/queries/ql/highlights.scm
index 623dab143..009920a82 100644
--- a/queries/ql/highlights.scm
+++ b/queries/ql/highlights.scm
@@ -1,12 +1,8 @@
[
"as"
- "asc"
"by"
"class"
- "desc"
"extends"
- "forall"
- "forex"
"from"
"implies"
"in"
@@ -43,9 +39,7 @@
"strictsum"
] @function.builtin
-[
- "import"
-] @include
+"import" @include
[
"if"
@@ -54,6 +48,16 @@
] @conditional
[
+ "forall"
+ "forex"
+] @repeat
+
+[
+ "asc"
+ "desc"
+] @type.qualifier
+
+[
(true)
(false)
] @boolean
@@ -106,9 +110,10 @@
(module name: (moduleName) @namespace)
(dataclass name: (className) @type)
-(datatype name: (className) @type)
(typeExpr name: (className) @type)
+(datatype name: (className) @type.definition)
+
(importModuleExpr qualName: (simpleId) @variable)
(varName) @variable