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) (function_declaration)
(statement_block) (statement_block)
(if_statement) (if_statement)
(comment)
] @fold ] @fold

View file

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