Skip to content
Snippets Groups Projects
Commit 32ae45d8 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[less mode] Don't treat @font-face as a variable

Issue #2131
parent 1cb34abb
No related branches found
No related tags found
No related merge requests found
......@@ -667,7 +667,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
}
},
"@": function(stream) {
if (stream.match(/^(media|import)\b/, false)) return false;
if (stream.match(/^(font-face|media|import)\b/, false)) return false;
stream.eatWhile(/[\w\\\-]/);
if (stream.match(/^\s*:/, false))
return ["variable-2", "variable-definition"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment