diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-03-11 00:57:54 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:52:43 +0100 |
| commit | 2cd1eb6e2ab84be495feb2132094705e29ad33a8 (patch) | |
| tree | 8a923475294ab057ddd02f28885c0ff3799822c6 | |
| parent | Update glimmer (diff) | |
| download | nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.tar nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.tar.gz nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.tar.bz2 nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.tar.lz nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.tar.xz nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.tar.zst nvim-treesitter-2cd1eb6e2ab84be495feb2132094705e29ad33a8.zip | |
Update Kotlin parser
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 17 | ||||
| -rw-r--r-- | queries/kotlin/highlights.scm | 7 |
3 files changed, 12 insertions, 14 deletions
diff --git a/lockfile.json b/lockfile.json index 5d41e9ef1..51b5de471 100644 --- a/lockfile.json +++ b/lockfile.json @@ -72,7 +72,7 @@ "revision": "0ba7a24b062b671263ae08e707e9e94383b25bb7" }, "kotlin": { - "revision": "bfb1e2776b48139caa3125e2791c27340bfa34c2" + "revision": "5f4c8b4a9af6c246b5a181fc73f10cce2e9df700" }, "ledger": { "revision": "609d5e5ab5955823b3faeaec8d2afc91860c639a" diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index f1c79611c..bdfbf2943 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -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 = { diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm index 655ac7982..5ac5a7e59 100644 --- a/queries/kotlin/highlights.scm +++ b/queries/kotlin/highlights.scm @@ -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 |
