mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Fix java query
This commit is contained in:
parent
bab7fd76f2
commit
9a5fbd1a3a
1 changed files with 13 additions and 14 deletions
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
; Methods
|
; Methods
|
||||||
|
|
||||||
[
|
|
||||||
(method_declaration
|
(method_declaration
|
||||||
name: (identifier))
|
name: (identifier) @method)
|
||||||
(method_invocation
|
(method_invocation
|
||||||
name: (identifier))
|
name: (identifier) @method)
|
||||||
] @method
|
|
||||||
|
|
||||||
(formal_parameter
|
(formal_parameter
|
||||||
name: (identifier) @parameter)
|
name: (identifier) @parameter)
|
||||||
|
|
@ -16,12 +16,12 @@
|
||||||
|
|
||||||
; Annotations
|
; Annotations
|
||||||
|
|
||||||
[
|
|
||||||
(annotation
|
(annotation
|
||||||
name: (identifier))
|
name: (identifier) @attribute)
|
||||||
(marker_annotation
|
(marker_annotation
|
||||||
name: (identifier))
|
name: (identifier) @attribute)
|
||||||
] @attribute
|
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
|
|
||||||
|
|
@ -54,17 +54,16 @@
|
||||||
|
|
||||||
; Types
|
; Types
|
||||||
|
|
||||||
[
|
|
||||||
(interface_declaration
|
(interface_declaration
|
||||||
name: (identifier))
|
name: (identifier) @type)
|
||||||
(class_declaration
|
(class_declaration
|
||||||
name: (identifier))
|
name: (identifier) @type)
|
||||||
(enum_declaration
|
(enum_declaration
|
||||||
name: (identifier)
|
name: (identifier)
|
||||||
(constructor_declaration
|
(constructor_declaration
|
||||||
name: (identifier))
|
name: (identifier) @type)
|
||||||
(type_identifier)
|
(type_identifier @type)
|
||||||
] @type
|
|
||||||
|
|
||||||
|
|
||||||
((field_access
|
((field_access
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue