Fix TSX and JavaScript shorthand property syntax highlighting (#12512)
This replicates the fix for the TypeScript language for https://github.com/zed-industries/zed/issues/5239 in https://github.com/zed-industries/zed/pull/12505 for the TSX and JavaScript languages, fixing https://github.com/zed-industries/zed/issues/12510 and fixing https://github.com/zed-industries/zed/issues/12509 . See https://github.com/zed-industries/zed/pull/12505#issuecomment-2141002505 . Keep in mind I don't have a proper Zed local development environment setup to test these simple changes. Release Notes: - Fixed TSX shorthand property syntax highlighting ([#12510](https://github.com/zed-industries/zed/issues/12510)). - Fixed JavaScript shorthand property syntax highlighting ([#12509](https://github.com/zed-industries/zed/issues/12509)).
This commit is contained in:
parent
de8ef08143
commit
b218d8778d
2 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
; Properties
|
||||
|
||||
(property_identifier) @property
|
||||
(shorthand_property_identifier) @property
|
||||
(shorthand_property_identifier_pattern) @property
|
||||
|
||||
; Function and method calls
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
; Properties
|
||||
|
||||
(property_identifier) @property
|
||||
(shorthand_property_identifier) @property
|
||||
(shorthand_property_identifier_pattern) @property
|
||||
|
||||
; Function and method calls
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue