summaryrefslogtreecommitdiff
path: root/runtime/queries/javascript/highlights-params.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/javascript/highlights-params.scm')
-rw-r--r--runtime/queries/javascript/highlights-params.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/queries/javascript/highlights-params.scm b/runtime/queries/javascript/highlights-params.scm
new file mode 100644
index 00000000..95ffc724
--- /dev/null
+++ b/runtime/queries/javascript/highlights-params.scm
@@ -0,0 +1,12 @@
+(formal_parameters
+ [
+ (identifier) @variable.parameter
+ (array_pattern
+ (identifier) @variable.parameter)
+ (object_pattern
+ [
+ (pair_pattern value: (identifier) @variable.parameter)
+ (shorthand_property_identifier_pattern) @variable.parameter
+ ])
+ ]
+)