diff --git a/src/css/css.test.ts b/src/css/css.test.ts index 9e3fda4b..5c09a143 100644 --- a/src/css/css.test.ts +++ b/src/css/css.test.ts @@ -577,5 +577,17 @@ testTokenization('css', [ { startIndex: 8, type: 'delimiter.bracket.css' } ] } + ], + + [ + { + line: "@import 'https://example.com/test.css';", + tokens: [ + { startIndex: 0, type: 'keyword.css' }, + { startIndex: 7, type: '' }, + { startIndex: 8, type: 'string.css' }, + { startIndex: 38, type: 'delimiter.css' } + ] + } ] ]); diff --git a/src/css/css.ts b/src/css/css.ts index 05bd2445..72c7bd16 100644 --- a/src/css/css.ts +++ b/src/css/css.ts @@ -113,6 +113,7 @@ export const language = { { include: '@functioninvocation' }, { include: '@numbers' }, { include: '@name' }, + { include: '@strings' }, ['([<>=\\+\\-\\*\\/\\^\\|\\~,])', 'delimiter'], [',', 'delimiter'] ],