From 14ee28ccec6800353c6269fa150549be67097cb9 Mon Sep 17 00:00:00 2001 From: metacryst Date: Sat, 4 Nov 2023 19:34:17 -0500 Subject: [PATCH] 368: Added css() function syntax highlighting --- VSCode/syntaxes/es6-inline-css.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/VSCode/syntaxes/es6-inline-css.json b/VSCode/syntaxes/es6-inline-css.json index 82065f2..1823fff 100644 --- a/VSCode/syntaxes/es6-inline-css.json +++ b/VSCode/syntaxes/es6-inline-css.json @@ -21,6 +21,29 @@ } }, "patterns": [ + { + "begin": "(?i)(\\s*(css\\())(`)", + "beginCaptures": { + "1": { + "name": "entity.name.tag.html" + } + }, + "end": "(`)", + "patterns": [ + { + "include": "source.ts#template-substitution-element" + }, + { + "include": "source.css" + }, + { + "include": "inline.es6-htmlx#template" + }, + { + "include": "string.quoted.other.template.js" + } + ] + }, { "begin": "(?i)(\\s*(addStyle\\())(`)", "beginCaptures": {