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:
Anthony Shi 2024-02-06 20:51:50 +08:00 committed by GitHub
parent 3722d5d772
commit 5973b617a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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