or Create a profile
30 Apr, 2010 07:02 PM
The compiler throws an error when compiling LESS documents that
have character encoding set using @charset.
The character coding I am using is:
When I compile I get the following error, but if I remove the
above line, the error goes away.
! Syntax Error: on line 1: expected : got " after: @charset
I am assuming that the compiler believes @charset to be a
variable declaration. Some IDEs such as Dreamweaver and Aptana
insert the above character encoding in new CSS files by default.
on 05 May, 2010 12:50 AM
Thanks for posting, this is fixed in the upcoming 2.0 version,
which should be released sometime this month. It is indeed due to
@charset not being parsed as a directive.
on 05 May, 2010 03:15 PM
Great. Thanks for all the hard work you've put in and for
sharing your project with the community. It's very cool.
on 20 Jan, 2011 11:45 PM
Seems this is still a problem. ~9 months without a fix?
on 20 Jan, 2011 11:48 PM
This has been working fine in the current LESS.js build for a
while now. I don't plan on back-porting to ruby.
on 20 Jan, 2011 11:54 PM
All of the documentation on less.org points to using the Ruby
compiler - I guess I should google to find out about the .js
version as I am getting syntax errors everywhere.
on 20 Jan, 2011 11:56 PM
Yea the site update is long due, my apologies.
on 21 Jan, 2011 12:02 AM
No apologies needed, thanks for the links!
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the LESS staff to resolve this discussion.
This discussion is private.
Only you and LESS support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.