diff options
| -rw-r--r-- | queries/ecma/highlights.scm | 8 | ||||
| -rw-r--r-- | queries/typescript/highlights.scm | 9 | ||||
| -rw-r--r-- | tests/query/highlights/typescript/as.ts | 2 |
3 files changed, 11 insertions, 8 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index eb6d3d4a9..a002d17ae 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -256,7 +256,7 @@ (binary_expression "/" @operator) (ternary_expression ["?" ":"] @conditional.ternary) (unary_expression ["!" "~" "-" "+"] @operator) -(unary_expression ["delete" "void" "typeof"] @keyword.operator) +(unary_expression ["delete" "void"] @keyword.operator) [ "(" @@ -305,13 +305,10 @@ "export" "extends" "get" - "in" - "instanceof" "let" "set" "static" "target" - "typeof" "var" "with" ] @keyword @@ -333,6 +330,9 @@ [ "new" "delete" + "in" + "instanceof" + "typeof" ] @keyword.operator [ diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index 7aaa3fca2..239de88fd 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -6,17 +6,20 @@ "export" "implements" "interface" - "keyof" "type" "namespace" "override" - "satisfies" "module" "infer" "is" ] @keyword -(as_expression "as" @keyword) +[ + "keyof" + "satisfies" +] @keyword.operator + +(as_expression "as" @keyword.operator) [ "abstract" diff --git a/tests/query/highlights/typescript/as.ts b/tests/query/highlights/typescript/as.ts index b1f1533b4..ef0ce98e5 100644 --- a/tests/query/highlights/typescript/as.ts +++ b/tests/query/highlights/typescript/as.ts @@ -5,4 +5,4 @@ export { foo as bar }; // ^ include const n = 5 as number; -// ^ keyword +// ^ keyword.operator |
