diff options
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 ;-------------------------- |