mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
kotlin: updated parser, and added annotation highlight again
This commit is contained in:
parent
e1870183ea
commit
8b4b07c55b
2 changed files with 8 additions and 5 deletions
|
|
@ -70,10 +70,9 @@
|
|||
(type_identifier) @type
|
||||
|
||||
;; Annotations
|
||||
;; TODO:
|
||||
;(annotation (single_annotation) @attribute)
|
||||
;(single_annotation (user_type (type_identifier) @attribute))
|
||||
;(single_annotation (constructor_invocation (user_type (type_identifier) @attribute)))
|
||||
(annotation (single_annotation) @annotation)
|
||||
(single_annotation (user_type (type_identifier) @annotation))
|
||||
(single_annotation (constructor_invocation (user_type (type_identifier) @annotation)))
|
||||
|
||||
|
||||
;; it
|
||||
|
|
@ -103,6 +102,8 @@
|
|||
|
||||
;; Keywords
|
||||
[
|
||||
"this"
|
||||
"override"
|
||||
"enum"
|
||||
"as"
|
||||
"class"
|
||||
|
|
@ -121,6 +122,8 @@
|
|||
"throw"
|
||||
] @keyword
|
||||
|
||||
(null_literal) @keyword
|
||||
|
||||
; const etc.
|
||||
(property_modifier) @keyword
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue