highlights(qmljs): fix captures

This commit is contained in:
ObserverOfTime 2022-10-30 23:33:42 +02:00
parent abd7f85040
commit 920c14c33b

View file

@ -54,9 +54,9 @@
;;; ui_object_definition ;;; ui_object_definition
(ui_object_definition (ui_object_definition
type_name: (identifier) @type) type_name: (identifier) @type)
(ui_object_definition (ui_object_definition
type_name: (nested_identifier) @type) type_name: (nested_identifier) @type)
;;; namespace ;;; namespace
(nested_identifier (nested_identifier
@ -86,6 +86,9 @@
[ [
(true) (true)
(false) (false)
] @boolean
[
(null) (null)
(undefined) (undefined)
] @constant.builtin ] @constant.builtin
@ -97,21 +100,23 @@
(template_string) (template_string)
] @string ] @string
(regex) @string.special (regex) @string.regex
(number) @number (number) @number
; Tokens ; Tokens
;------- ;-------
;;; keywrod in qml
[ [
"on" "abstract"
"private"
"protected"
"public"
"default"
"readonly"
"required" "required"
"property" ] @type.qualifier
"signal"
] @keyword
; from typescript ; from typescript
@ -132,7 +137,10 @@
; Keywords ; Keywords
[ "abstract" [
"on"
"property"
"signal"
"declare" "declare"
"enum" "enum"
"export" "export"
@ -140,15 +148,6 @@
"interface" "interface"
"keyof" "keyof"
"namespace" "namespace"
"private"
"protected"
"public"
"type" "type"
"readonly"
"override" "override"
] @keyword ] @keyword
[
(true)
(false)
] @boolean