This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Somehow, the following lines are reported as syntax errors: font-family: Arial, Sans-Serif; background: transparent url('whatever.png') repeat-y scroll left top;
Also, most comments starting with // are reported as... I don't know, but they are underlined in green? |
|
|
Thanks for letting us know about these problems. We've reproduced and fixed the problem with the font-family and background elements, but we haven't been able to reproduce the green underline on // comments. Would you be able to share a .less file that exhibits that problem? You can attach a file via the Options tab. Thanks! |
|
|
Forgot to say, we will try to push the fix out via the Visual Studio Gallery in the next few hours. |
|
|
Just upgraded. The font-family is not reported as an error anymore but the backgound still is. |
|
|
I haven't been able to reproduce the problem you're seeing with the background property. I've attached a screenshot of what I see. The selector body is pasted from your first message. Am I doing something different from you? Could you post a sample file or a screenshot please? Thanks! |
|
|
Finaly had time to look into it. The issue was caused by a rogue css rule that said: background: url("/img/dotted.png") repeat-x scroll left top transparent; Fixed it into: background: transparent url("/img/dotted.png") repeat-x scroll left top; And the syntax error is gone. Don't know if the first rule is even acceptable, though. |
|
|
The following is causing syntax errors:
.boxShadow (@x: 1px, @y: 1px, @blur: 2px, @color: rgba(0,0,0,0.5)) { box-shadow: @x @y @blur @color; -moz-box-shadow: @x @y @blur @color; -webkit-box-shadow: @x @y @blur @color; } due to the rgba declaration and also the -moz and -webkit prefixed rules. It should also be valid to do .boxShadow (@params: 1px 1px 2px rgba(0,0,0,0.5)) but this is causes a syntax error as well due to the space characters in the variable.
|
|
|
I'm also getting syntax errors for lines with the -moz and -webkit prefixed rules. Also, if I have multiple selectors that use attribute selection syntax, I get an error.
input[type=date], input[type=email], input[type=number], input[type=tel], input[type=text], textarea { font-family: Arial, sans-serif; font-size: 12px; } Each of the input selectors are underlined as errors.
This works without syntax errors:
input[type=text] { font-family: Arial, sans-serif; font-size: 12px; }
Also no syntax errors here:
textarea, input[type=text] { font-family: Arial, sans-serif; font-size: 12px; }
I think it's just the combination of the closing bracket and the comma that causes the syntax error. |
|
|
Hello Aaron, Thanks for reporting these issues. The -moz and -webkit issues should be fixed in the current build (Tools > Extension Manager > Updates -- be warned, the update list can take a while to appear). We believe we have fixed the issue with commas but that build isn't up yet -- hopefully later today but I want to look into another issue before we push it out. |
|
|
Hello Stephen, We'll have a fix up for the "default value is function call" and "default value is list" issues shortly -- check VS2010 Extension Manager for updates. The -moz and -webkit issue was fixed in a previous version. Thanks for reporting these! |
|
|
Thanks, the update is great! I spotted something else though - it doesn't like a url(../path/to/file.png) without quotes in a background declaration. |
|
|
I'm not sure where I can upload an attachment, but am also seeing syntax errors in Less on variable assignments where the value is a multi-value expression. E.g.
@FontFamily: Trebuchet MS, geneva, sans-serif;
This is accepted by less. When you have font-family:@FontFamily the font's are placed into the value. |
|
|
This also causes errors ::selection {background: #ff0000;}
Also, less can do stuff like @Var: 4; @Var2: (@Var - 2) * 5;
and that shows as and error too, although it compiles. |
|
|
The @FontFamily issue appears to be because "Trebuchet MS" is not quoted. We currently have a limitations where you must quote font names which contain spaces (this is recommended by the CSS standard anyway). This restriction will be removed in the next update. The unqualified pseudo-element issues (::selector) will be fixed in the next update. Formulae in variable declarations is working for me so you may just need to update (or our update schedule may be slightly behind the tip). Let us know if it is still causing problems after the next update. The next update should be available in about 12-24 hours. Thanks for reporting these issues! |
|
|
Thank you for fixed them :) All my issues are resolved. |
|