mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -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)
|
(function_declaration)
|
||||||
(statement_block)
|
(statement_block)
|
||||||
(if_statement)
|
(if_statement)
|
||||||
|
(comment)
|
||||||
] @fold
|
] @fold
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue