diff options
| author | Anthony Shi <69449791+anthony-S93@users.noreply.github.com> | 2024-02-06 20:51:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-06 13:51:50 +0100 |
| commit | 5973b617a9a48212e40c5c0a0727ad7c91b27484 (patch) | |
| tree | bd8044c1fe572dcd543c50e38a8a3a9ab8ba0b1c | |
| parent | fix(angular): nullish coalescing operator in Angular templates (#6052) (diff) | |
| download | nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.tar nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.tar.gz nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.tar.bz2 nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.tar.lz nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.tar.xz nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.tar.zst nvim-treesitter-5973b617a9a48212e40c5c0a0727ad7c91b27484.zip | |
fix(kotlin): remove slow highlight and local pattern (#5954)
This is a parser bug that needs to be fixed; temporary workaround to
remove the ~0.5s delay on opening highlight and locals queries.
| -rw-r--r-- | queries/kotlin/highlights.scm | 10 | ||||
| -rw-r--r-- | queries/kotlin/locals.scm | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm index e75a7e96f..2103e04df 100644 --- a/queries/kotlin/highlights.scm +++ b/queries/kotlin/highlights.scm @@ -27,11 +27,11 @@ (class_parameter (simple_identifier) @variable.member) -(class_body - (property_declaration - (variable_declaration - (simple_identifier) @variable.member))) - +; NOTE: temporary fix for treesitter bug that causes delay in file opening +;(class_body +; (property_declaration +; (variable_declaration +; (simple_identifier) @variable.member))) ; id_1.id_2.id_3: `id_2` and `id_3` are assumed as object properties (_ (navigation_suffix diff --git a/queries/kotlin/locals.scm b/queries/kotlin/locals.scm index 1bc044e85..93edf99f1 100644 --- a/queries/kotlin/locals.scm +++ b/queries/kotlin/locals.scm @@ -32,11 +32,11 @@ (variable_declaration (simple_identifier) @local.definition.parameter))) -(class_body - (property_declaration - (variable_declaration - (simple_identifier) @local.definition.field))) - +; NOTE: temporary fix for treesitter bug that causes delay in file opening +;(class_body +; (property_declaration +; (variable_declaration +; (simple_identifier) @local.definition.field))) (class_declaration (primary_constructor (class_parameter |
