From 42acc3f6e778dd6eb6e0e92690c7d56eab859b6a Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sat, 17 Feb 2024 18:03:16 -0800 Subject: [PATCH] refactor(ecma): delimiter highlight consolidation --- queries/ecma/highlights.scm | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index 051d47749..b969486cc 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -206,23 +206,12 @@ ; Punctuation ;------------ -";" @punctuation.delimiter - -"." @punctuation.delimiter - -"," @punctuation.delimiter - -(pair - ":" @punctuation.delimiter) - -(pair_pattern - ":" @punctuation.delimiter) - -(switch_case - ":" @punctuation.delimiter) - -(switch_default - ":" @punctuation.delimiter) +[ + ";" + "." + "," + ":" +] @punctuation.delimiter [ "--"