diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm index d4c192d47a..a89375dee2 100644 --- a/crates/languages/src/javascript/highlights.scm +++ b/crates/languages/src/javascript/highlights.scm @@ -5,6 +5,8 @@ ; Properties (property_identifier) @property +(shorthand_property_identifier) @property +(shorthand_property_identifier_pattern) @property ; Function and method calls diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm index fb74c92682..2ebbd62f66 100644 --- a/crates/languages/src/tsx/highlights.scm +++ b/crates/languages/src/tsx/highlights.scm @@ -5,6 +5,8 @@ ; Properties (property_identifier) @property +(shorthand_property_identifier) @property +(shorthand_property_identifier_pattern) @property ; Function and method calls