From 752a5d56ab7620dca7c4f3d492a77eace0c0e96d Mon Sep 17 00:00:00 2001 From: Yash-Singh1 Date: Tue, 19 Apr 2022 18:15:02 -0700 Subject: [PATCH] feat: add fr units for css grid --- src/basic-languages/css/css.ts | 2 +- src/basic-languages/less/less.ts | 2 +- src/basic-languages/scss/scss.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic-languages/css/css.ts b/src/basic-languages/css/css.ts index 6d69509d..5afc7af5 100644 --- a/src/basic-languages/css/css.ts +++ b/src/basic-languages/css/css.ts @@ -165,7 +165,7 @@ export const language = { units: [ [ - '(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?', + '(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?', 'attribute.value.unit', '@pop' ] diff --git a/src/basic-languages/less/less.ts b/src/basic-languages/less/less.ts index b07e0312..4722c0e0 100644 --- a/src/basic-languages/less/less.ts +++ b/src/basic-languages/less/less.ts @@ -164,7 +164,7 @@ export const language = { units: [ [ - '(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?', + '(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?', 'attribute.value.unit', '@pop' ] diff --git a/src/basic-languages/scss/scss.ts b/src/basic-languages/scss/scss.ts index f3c8f21a..f7af50ee 100644 --- a/src/basic-languages/scss/scss.ts +++ b/src/basic-languages/scss/scss.ts @@ -187,7 +187,7 @@ export const language = { units: [ [ - '(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?', + '(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?', 'number', '@pop' ]