diff options
author | Gammut | 2023-07-09 16:35:32 +0000 |
---|---|---|
committer | GitHub | 2023-07-09 16:35:32 +0000 |
commit | 607b426e269b17f4ad32dca9c612c4a9f8541766 (patch) | |
tree | f9e57fa45041c066bf2ea4ecca692986f66291c1 /runtime/queries/ecma/highlights.scm | |
parent | 28452e1f2a63fe4806078da0f854d01506fc0c0c (diff) |
Refactor queries for ecma based languages (#7207)
Diffstat (limited to 'runtime/queries/ecma/highlights.scm')
-rw-r--r-- | runtime/queries/ecma/highlights.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/queries/ecma/highlights.scm b/runtime/queries/ecma/highlights.scm index 7285ab96..ddbe938f 100644 --- a/runtime/queries/ecma/highlights.scm +++ b/runtime/queries/ecma/highlights.scm @@ -46,8 +46,15 @@ (assignment_expression left: (identifier) @function right: [(function) (arrow_function)]) - +; Function and method parameters +;------------------------------- + +; Arrow function parameters in the form `p => ...` are supported by both +; javascript and typescript grammars without conflicts. +(arrow_function + parameter: (identifier) @variable.parameter) + ; Function and method calls ;-------------------------- |