mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fix and add some highlight (#3168)
This commit is contained in:
parent
a26d4949a6
commit
d4eadbcaf1
2 changed files with 20 additions and 2 deletions
|
|
@ -3,4 +3,5 @@
|
|||
(function_declaration)
|
||||
(statement_block)
|
||||
(if_statement)
|
||||
(comment)
|
||||
] @fold
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue