mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
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.
This commit is contained in:
parent
3722d5d772
commit
5973b617a9
2 changed files with 10 additions and 10 deletions
|
|
@ -27,11 +27,11 @@
|
||||||
(class_parameter
|
(class_parameter
|
||||||
(simple_identifier) @variable.member)
|
(simple_identifier) @variable.member)
|
||||||
|
|
||||||
(class_body
|
; NOTE: temporary fix for treesitter bug that causes delay in file opening
|
||||||
(property_declaration
|
;(class_body
|
||||||
(variable_declaration
|
; (property_declaration
|
||||||
(simple_identifier) @variable.member)))
|
; (variable_declaration
|
||||||
|
; (simple_identifier) @variable.member)))
|
||||||
; id_1.id_2.id_3: `id_2` and `id_3` are assumed as object properties
|
; id_1.id_2.id_3: `id_2` and `id_3` are assumed as object properties
|
||||||
(_
|
(_
|
||||||
(navigation_suffix
|
(navigation_suffix
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,11 @@
|
||||||
(variable_declaration
|
(variable_declaration
|
||||||
(simple_identifier) @local.definition.parameter)))
|
(simple_identifier) @local.definition.parameter)))
|
||||||
|
|
||||||
(class_body
|
; NOTE: temporary fix for treesitter bug that causes delay in file opening
|
||||||
(property_declaration
|
;(class_body
|
||||||
(variable_declaration
|
; (property_declaration
|
||||||
(simple_identifier) @local.definition.field)))
|
; (variable_declaration
|
||||||
|
; (simple_identifier) @local.definition.field)))
|
||||||
(class_declaration
|
(class_declaration
|
||||||
(primary_constructor
|
(primary_constructor
|
||||||
(class_parameter
|
(class_parameter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue