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

[css mode] Allow parens in interpolated expressions

Issue #3253
parent c8f0fee3
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
if (type == "}") return popContext(state);
if (type == "{" || type == ";") return popAndPass(type, stream, state);
if (type == "word") override = "variable";
else if (type != "variable") override = "error";
else if (type != "variable" && type != "(" && type != ")") override = "error";
return "interpolation";
};
......
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