mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
Fix formatting
This commit is contained in:
parent
639ffd3e72
commit
665b30cbf8
1 changed files with 12 additions and 12 deletions
|
|
@ -4,15 +4,15 @@
|
|||
|
||||
|
||||
(method_declaration
|
||||
name: (identifier) @method)
|
||||
name: (identifier) @method)
|
||||
(method_invocation
|
||||
name: (identifier) @method)
|
||||
name: (identifier) @method)
|
||||
|
||||
(super) @function.builtin
|
||||
|
||||
; Parameters
|
||||
(formal_parameter
|
||||
name: (identifier) @parameter)
|
||||
name: (identifier) @parameter)
|
||||
|
||||
(inferred_parameters (identifier) @parameter)
|
||||
|
||||
|
|
@ -21,9 +21,9 @@
|
|||
|
||||
|
||||
(annotation
|
||||
name: (identifier) @attribute)
|
||||
name: (identifier) @attribute)
|
||||
(marker_annotation
|
||||
name: (identifier) @attribute)
|
||||
name: (identifier) @attribute)
|
||||
|
||||
|
||||
; Operators
|
||||
|
|
@ -59,23 +59,23 @@
|
|||
; Types
|
||||
|
||||
(interface_declaration
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @type)
|
||||
(class_declaration
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @type)
|
||||
(enum_declaration
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @type)
|
||||
(constructor_declaration
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @type)
|
||||
(type_identifier) @type
|
||||
|
||||
|
||||
|
||||
((field_access
|
||||
object: (identifier) @type)
|
||||
(#match? @type "^[A-Z]"))
|
||||
(#match? @type "^[A-Z]"))
|
||||
((scoped_identifier
|
||||
scope: (identifier) @type)
|
||||
(#match? @type "^[A-Z]"))
|
||||
(#match? @type "^[A-Z]"))
|
||||
|
||||
[
|
||||
(boolean_type)
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
; Variables
|
||||
|
||||
((identifier) @constant
|
||||
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
|
||||
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
|
||||
|
||||
(identifier) @variable
|
||||
(this) @variable.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue