mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -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
|
||||
(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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue