kotlin: updated parser, and added annotation highlight again

This commit is contained in:
Tormod Alf Try Tufteland 2021-03-20 17:16:40 +01:00 committed by Stephan Seitz
parent e1870183ea
commit 8b4b07c55b
2 changed files with 8 additions and 5 deletions

View file

@ -72,7 +72,7 @@
"revision": "0ba7a24b062b671263ae08e707e9e94383b25bb7" "revision": "0ba7a24b062b671263ae08e707e9e94383b25bb7"
}, },
"kotlin": { "kotlin": {
"revision": "4f404a3355ee2447d3a52cb4bd72a6ae1fb32175" "revision": "48bfb38abd93f8d617877d7bb7f92a6bb1166285"
}, },
"ledger": { "ledger": {
"revision": "609d5e5ab5955823b3faeaec8d2afc91860c639a" "revision": "609d5e5ab5955823b3faeaec8d2afc91860c639a"

View file

@ -70,10 +70,9 @@
(type_identifier) @type (type_identifier) @type
;; Annotations ;; Annotations
;; TODO: (annotation (single_annotation) @annotation)
;(annotation (single_annotation) @attribute) (single_annotation (user_type (type_identifier) @annotation))
;(single_annotation (user_type (type_identifier) @attribute)) (single_annotation (constructor_invocation (user_type (type_identifier) @annotation)))
;(single_annotation (constructor_invocation (user_type (type_identifier) @attribute)))
;; it ;; it
@ -103,6 +102,8 @@
;; Keywords ;; Keywords
[ [
"this"
"override"
"enum" "enum"
"as" "as"
"class" "class"
@ -121,6 +122,8 @@
"throw" "throw"
] @keyword ] @keyword
(null_literal) @keyword
; const etc. ; const etc.
(property_modifier) @keyword (property_modifier) @keyword