mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
@annotation -> @attribute
This commit is contained in:
parent
c071454a18
commit
e63f81ec0a
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
;; Variables/fields
|
;; Variables/fields
|
||||||
; attribute in data classes etc.
|
; attribute in data classes etc.
|
||||||
(class_parameter (simple_identifier) @attribute)
|
(class_parameter (simple_identifier) @field)
|
||||||
; variable in normal classes
|
; variable in normal classes
|
||||||
(property_declaration (variable_declaration (simple_identifier) @variable))
|
(property_declaration (variable_declaration (simple_identifier) @variable))
|
||||||
; accessed field in blocks. `logger` in `logger.info("")`
|
; accessed field in blocks. `logger` in `logger.info("")`
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
(boolean_literal) @boolean
|
(boolean_literal) @boolean
|
||||||
|
|
||||||
;; Annotations
|
;; Annotations
|
||||||
(annotation (single_annotation) @annotation)
|
(annotation (single_annotation) @attribute)
|
||||||
|
|
||||||
;; Types
|
;; Types
|
||||||
; TODO more type definitions
|
; TODO more type definitions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue