From 8062567fb04ee800dc69a2592e131d1447eb133a Mon Sep 17 00:00:00 2001 From: Emmanuel Odongo Date: Sun, 5 Nov 2017 22:22:05 +0100 Subject: [PATCH] Fix incorrect tokenization of SCSS class extensions Prevent extended SCSS class names with 2 or more hyphens after the name break from being tokenized as variables. An example of such an instance is provided below: ``` .block { &--modifier {} } ``` --- grammars/scss.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/scss.cson b/grammars/scss.cson index 45497d6..5b9c508 100644 --- a/grammars/scss.cson +++ b/grammars/scss.cson @@ -1546,5 +1546,5 @@ } ] 'variables': - 'match': '(\\$|\\-\\-)[A-Za-z0-9_-]+\\b' + 'match': '(\\$|(?