marceloverdijk/lesscss-java — pull request #31 by 4ntoin3 (2013-06-14 10:35:35+00:00)
Title: import failed when closing brace is on same line

Hi,

I solved an issue with the complier when the import is closed on same line.

An example of syntax that causes the problem :
@media all and (min-width: 640px) { @import 'desktop-grid-style.less'; }

Stacktrace :
Error compiling LESS source
org.lesscss.LessException: Couldn't load undefineddesktop-grid-style.less (0)
at org.lesscss.LessCompiler.compile(LessCompiler.java:283)
at org.lesscss.LessCompiler.compile(LessCompiler.java:335)
at org.lesscss.LessCompiler.compile(LessCompiler.java:359)
at org.lesscss.mojo.CompileMojo.execute(CompileMojo.java:131)