diff options
| author | Munif Tanjim <hello@muniftanjim.dev> | 2022-10-17 17:55:26 +0600 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-17 14:37:36 -0700 |
| commit | 63d7e456ea8d5f272e3b032d024f8bcfcc650ecb (patch) | |
| tree | baee87ff1593a5c3ad0ab048fec02fe271977f7e | |
| parent | 8f927a4d50716e534c5845e835625962adf878e1 (diff) | |
highlights(ecma): add pair_pattern punctuation.delimiter
| -rw-r--r-- | queries/ecma/highlights.scm | 1 | ||||
| -rw-r--r-- | tests/query/highlights/ecma/test.ts | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index e2b25aaf..aa490b33 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -138,6 +138,7 @@ "," @punctuation.delimiter (pair ":" @punctuation.delimiter) +(pair_pattern ":" @punctuation.delimiter) [ "--" diff --git a/tests/query/highlights/ecma/test.ts b/tests/query/highlights/ecma/test.ts index 03081fb2..d35cf827 100644 --- a/tests/query/highlights/ecma/test.ts +++ b/tests/query/highlights/ecma/test.ts @@ -23,3 +23,10 @@ class H { // ^ method.call } } + +function doSomething(options) { + const { + enable: on, + // ^ punctuation.delimiter + } = options +} |
