mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
languages: Reorder type identifier highlights in JavaScript (#49325)
Move general type identifier rules before class-specific ones to ensure proper precedence in the syntax highlighting query. Closes #49226. Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - Fixed an issue where class names were not highlighted correctly in JavaScript files
This commit is contained in:
parent
9ff0b0206f
commit
1c39e192f1
1 changed files with 3 additions and 3 deletions
|
|
@ -120,15 +120,15 @@
|
|||
|
||||
; Special identifiers
|
||||
;
|
||||
(type_identifier) @type
|
||||
(predefined_type) @type.builtin
|
||||
|
||||
(class_declaration
|
||||
(type_identifier) @type.class)
|
||||
|
||||
(extends_clause
|
||||
value: (identifier) @type.class)
|
||||
|
||||
(type_identifier) @type
|
||||
(predefined_type) @type.builtin
|
||||
|
||||
([
|
||||
(identifier)
|
||||
(shorthand_property_identifier)
|
||||
|
|
|
|||
Loading…
Reference in a new issue