diff --git a/package.json b/package.json index af57c337..e1ecc02a 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "event-stream": "^3.1.7", "express": "^4.10.1", "gonzales-ast": "0.0.5", - "gonzales-pe": "^3.0.0-10", + "gonzales-pe": "^3.0.0-11", "gulp": "^3.8.10", "gulp-bower": "^0.0.7", "gulp-concat": "^2.4.1", diff --git a/test/kss-splitter.js b/test/kss-splitter.js index 350d046b..1075f673 100644 --- a/test/kss-splitter.js +++ b/test/kss-splitter.js @@ -433,6 +433,24 @@ a:before { content: "// Comment inside content" } kssBlocks = kssSplitter.getBlocks(str); expect(kssBlocks).eql(result); }); + + it('should allow LESS with escaped function argument', function() { + var str = multiline(function() { + /* +.a { + .border(~"border linear .2s"); +} + */ + }), + result = [ + { + kss: '', + code: '.a {\n .border(~"border linear .2s");\n}' + } + ], + kssBlocks = kssSplitter.getBlocks(str, 'less'); + expect(kssBlocks).eql(result); + }); }); });