Fix and add some highlight (#3168)

This commit is contained in:
Access 2022-07-12 17:10:08 +08:00 committed by GitHub
parent a26d4949a6
commit d4eadbcaf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View file

@ -3,4 +3,5 @@
(function_declaration)
(statement_block)
(if_statement)
(comment)
] @fold

View file

@ -1,5 +1,7 @@
; inherits: ecma
"pragma" @include
;;; Annotations
(ui_annotation
@ -56,14 +58,28 @@
(ui_object_definition
type_name: (nested_identifier) @type)
;;; js
;;; namespace
(nested_identifier
(nested_identifier
(identifier) @namespace)
)
; Properties
;-----------
(property_identifier) @property
;;; function
(call_expression
function: (member_expression
object: (identifier) @variable
property:(property_identifier) @function
)
)
;;; js
; Literals
;---------
@ -91,6 +107,7 @@
;;; keywrod in qml
[
"on"
"required"
"property"
"signal"