diff options
| author | Tormod Alf Try Tufteland <tormodat.tufteland@eika.no> | 2021-03-20 17:16:40 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-03-20 17:52:07 +0100 |
| commit | 8b4b07c55b8b9d28dca60fa02c06056aa2454ebe (patch) | |
| tree | f2cecae0db6321b185022786b6886fc0a847d209 /queries/kotlin | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.tar nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.tar.gz nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.tar.bz2 nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.tar.lz nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.tar.xz nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.tar.zst nvim-treesitter-8b4b07c55b8b9d28dca60fa02c06056aa2454ebe.zip | |
kotlin: updated parser, and added annotation highlight again
Diffstat (limited to 'queries/kotlin')
| -rw-r--r-- | queries/kotlin/highlights.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm index 5ac5a7e59..7c59815b8 100644 --- a/queries/kotlin/highlights.scm +++ b/queries/kotlin/highlights.scm @@ -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 |
