aboutsummaryrefslogtreecommitdiffstats
path: root/queries/qmljs
diff options
context:
space:
mode:
authorShootingStarDragons <ShootingStarDragons@protonmail.com>2022-09-03 09:45:57 +0800
committerStephan Seitz <stephan.seitz@fau.de>2022-09-02 18:54:45 -0700
commit73cd1f189bf19e99af9b1349cdca590a40b985b0 (patch)
tree4eaa782acbc86d2129f99880d5e3bb417a2c5eee /queries/qmljs
parentUpdate README (diff)
downloadnvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.tar
nvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.tar.gz
nvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.tar.bz2
nvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.tar.lz
nvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.tar.xz
nvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.tar.zst
nvim-treesitter-73cd1f189bf19e99af9b1349cdca590a40b985b0.zip
feat(qmljs): boolean
boolean is not in the right color, so fix it Log: fix the color of boolean for qmljs
Diffstat (limited to 'queries/qmljs')
-rw-r--r--queries/qmljs/highlights.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/queries/qmljs/highlights.scm b/queries/qmljs/highlights.scm
index f3b5524b3..c1991030c 100644
--- a/queries/qmljs/highlights.scm
+++ b/queries/qmljs/highlights.scm
@@ -72,7 +72,7 @@
;;; function
(call_expression
function: (member_expression
- object: (identifier) @variable
+ object: (identifier) @variable
property:(property_identifier) @function
)
)
@@ -119,7 +119,7 @@
(predefined_type) @type.builtin
((identifier) @type
- (#match? @type "^[A-Z]"))
+ (#match? @type "^[A-Z]"))
(type_arguments
"<" @punctuation.bracket
@@ -148,3 +148,7 @@
"override"
] @keyword
+[
+ (true)
+ (false)
+] @boolean