Fixes: https://github.com/GoalSmashers/clean-css/issues/292
module.exports = function Tokenizer(data, minifyContext) {
var chunker = new Chunker(data, 128);
var chunk = chunker.next();
- var flatBlock = /^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport)/;
+ var flatBlock = /(^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport)|\\@.+?)/;
var whatsNext = function(context) {
var cursor = context.cursor;
'@-ms-viewport': '@-ms-viewport{width:device-width}',
'@-o-viewport': '@-o-viewport{width:device-width}',
'@viewport': '@viewport{width:device-width}'
- })
+ }),
+ 'escaped @ symbol in class name': '.pad--all0\\@sm{padding:0}',
+ 'escaped @ symbol in id': '#id\\@sm{padding:0}'
}).export(module);