aboutsummaryrefslogtreecommitdiffstats
path: root/queries/qmljs
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-10-30 23:33:42 +0200
committerObserverOfTime <chronobserver@disroot.org>2022-11-26 13:17:51 +0200
commit920c14c33b23ef2e874475f593ef4e4a843f2244 (patch)
tree1376fd1275c523be6e22c7b97e9905af88417a6e /queries/qmljs
parenthighlights(scala): use more specific groups (diff)
downloadnvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.tar
nvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.tar.gz
nvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.tar.bz2
nvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.tar.lz
nvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.tar.xz
nvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.tar.zst
nvim-treesitter-920c14c33b23ef2e874475f593ef4e4a843f2244.zip
highlights(qmljs): fix captures
Diffstat (limited to 'queries/qmljs')
-rw-r--r--queries/qmljs/highlights.scm37
1 files changed, 18 insertions, 19 deletions
diff --git a/queries/qmljs/highlights.scm b/queries/qmljs/highlights.scm
index c1991030c..013e135ab 100644
--- a/queries/qmljs/highlights.scm
+++ b/queries/qmljs/highlights.scm
@@ -54,9 +54,9 @@
;;; ui_object_definition
(ui_object_definition
- type_name: (identifier) @type)
+ type_name: (identifier) @type)
(ui_object_definition
- type_name: (nested_identifier) @type)
+ type_name: (nested_identifier) @type)
;;; namespace
(nested_identifier
@@ -86,6 +86,9 @@
[
(true)
(false)
+] @boolean
+
+[
(null)
(undefined)
] @constant.builtin
@@ -97,21 +100,23 @@
(template_string)
] @string
-(regex) @string.special
+(regex) @string.regex
(number) @number
; Tokens
;-------
+[
+ "abstract"
+ "private"
+ "protected"
+ "public"
-;;; keywrod in qml
-[
- "on"
+ "default"
+ "readonly"
"required"
- "property"
- "signal"
-] @keyword
+] @type.qualifier
; from typescript
@@ -132,7 +137,10 @@
; Keywords
-[ "abstract"
+[
+ "on"
+ "property"
+ "signal"
"declare"
"enum"
"export"
@@ -140,15 +148,6 @@
"interface"
"keyof"
"namespace"
- "private"
- "protected"
- "public"
"type"
- "readonly"
"override"
] @keyword
-
-[
- (true)
- (false)
-] @boolean