If anyone has time, could you point me in the right direction? I just updated my version of 7.x and now I get a parse error using a grid I found here: http://net.tutsplus.com/tutorials/php/how-to-squeeze-the-most-out-of-less/

It was working perfect until I updated the module. Now I get the following parse error:
LESS ERROR: parse error: failed at `width:(@u *@unit) - ((@margin * 2) +@gpadding +@gborder);}@shift(@pu:-20){left:@pu *@unit;position:relative;}@newRow{clear:left;}

The grid code looks like this:

@pageWidth: 960px;

@unit: @pageWidth / 12;  
@gm: 10px;  
@g(@u: 20; @margin: @gm; @marginTop: 0; @marginBottom: 0;) {  
    @gpadding: @gpadding + 0;  
    @gborder: @gborder + 0;  
    display: inline;  
    float: left;  
    margin: @marginTop @margin @marginBottom @margin;  
    width: (@u * @unit) - ((@margin * 2) + @gpadding + @gborder);  
}  
@shift(@pu: -20){  
    left: @pu * @unit;  
    position: relative;  
} 
 
@newRow {  
    clear: left;  
} 

Comments

corey.aufang’s picture

I tested your sample here with the previous version of the parser and I was still getting an error.

One thing that is significant in 7.x-dev version was that it did not handle errors.

The release version captures errors and prints them to the screen.

corey.aufang’s picture

Status: Active » Fixed

Don't know why I didn't think of this at the time, but I tried your sample on the D6 version.

Low and behold, no error. Then I saw:

  $contents = drupal_load_stylesheet($input_file, TRUE);

Which should have been:

  $contents = drupal_load_stylesheet($input_file, FALSE);

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.