languages: Reorder type identifier highlights in JavaScript (#49325)

Kunall Banerjee created

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

Change summary

crates/languages/src/javascript/highlights.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Detailed changes

crates/languages/src/javascript/highlights.scm 🔗

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