Permalink
Browse files

[less] don't confuse less mode..

..with the newly added simple support for @keyframes
  • Loading branch information...
1 parent 38c8463 commit 31a264ab947e2a0992abe80f2bd4df57181ad2bb @peterkroon peterkroon committed with marijnh Jan 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 mode/css/css.js
View
2 mode/css/css.js
@@ -676,7 +676,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
}
},
"@": function(stream) {
- if (stream.match(/^(charset|document|font-face|import|keyframes|media|namespace|page|supports)\b/, false)) return false;
+ if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, false)) return false;
stream.eatWhile(/[\w\\\-]/);
if (stream.match(/^\s*:/, false))
return ["variable-2", "variable-definition"];

0 comments on commit 31a264a

Please sign in to comment.