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

[css mode] Don't feed comment tokens to the state machine

Closes #4892
parent 4c3d3c79
No related branches found
No related tags found
No related merge requests found
......@@ -383,7 +383,8 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
style = style[0];
}
override = style;
state.state = states[state.state](type, stream, state);
if (type != "comment")
state.state = states[state.state](type, stream, state);
return override;
},
......
......@@ -197,4 +197,10 @@
MT("counter-style-symbols",
"[tag ol] { [property list-style]: [atom symbols]([atom cyclic] [string \"*\"] [string \"\\2020\"] [string \"\\2021\"] [string \"\\A7\"]); }");
MT("comment-does-not-disrupt",
"[def @font-face] [comment /* foo */] {",
" [property src]: [atom url]([string x]);",
" [property font-family]: [variable One];",
"}")
})();
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