Unnamed repository; edit this file 'description' to name the repository.
queries: Fix highlight of ':' in TypeScript ternary expressions
The ':' node is set to punctuation.delimiter in typescript and this
comes after the ternary_expression pattern in the ecma highlights. So we
need to copy that pattern after the punctuation.delimiter pattern.
| -rw-r--r-- | runtime/queries/_typescript/highlights.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/queries/_typescript/highlights.scm b/runtime/queries/_typescript/highlights.scm index 8ce9cb65..0ec1f9a6 100644 --- a/runtime/queries/_typescript/highlights.scm +++ b/runtime/queries/_typescript/highlights.scm @@ -79,6 +79,7 @@ (property_signature "?" @punctuation.special) (conditional_type ["?" ":"] @operator) +(ternary_expression ["?" ":"] @operator) ; Keywords ; -------- |