Update Kotlin parser

This commit is contained in:
Stephan Seitz 2021-03-11 00:57:54 +01:00 committed by Kiyan
parent 86da4fed85
commit 2cd1eb6e2a
3 changed files with 12 additions and 14 deletions

View file

@ -72,7 +72,7 @@
"revision": "0ba7a24b062b671263ae08e707e9e94383b25bb7"
},
"kotlin": {
"revision": "bfb1e2776b48139caa3125e2791c27340bfa34c2"
"revision": "5f4c8b4a9af6c246b5a181fc73f10cce2e9df700"
},
"ledger": {
"revision": "609d5e5ab5955823b3faeaec8d2afc91860c639a"

View file

@ -148,16 +148,13 @@ list.java = {
maintainers = {"@p00f"},
}
---Parser generation from source does not terminate in reasonable time
--list.kotlin = {
--install_info = {
--url = "https://github.com/QthCN/tree-sitter-kotlin",
--files = { "src/parser.c" },
--requires_generate_from_grammar = true,
--generate_requires_npm = true,
--},
--maintainers = {"@tormodatt"},
--}
list.kotlin = {
install_info = {
url = "https://github.com/tormodatt/tree-sitter-kotlin",
files = { "src/parser.c" },
},
maintainers = {"@tormodatt"},
}
list.html = {
install_info = {

View file

@ -70,9 +70,10 @@
(type_identifier) @type
;; Annotations
(annotation (single_annotation) @attribute)
(single_annotation (user_type (type_identifier) @attribute))
(single_annotation (constructor_invocation (user_type (type_identifier) @attribute)))
;; TODO:
;(annotation (single_annotation) @attribute)
;(single_annotation (user_type (type_identifier) @attribute))
;(single_annotation (constructor_invocation (user_type (type_identifier) @attribute)))
;; it