On 19 jan, 19:56, Arkady <[email protected]> wrote:
> Hello,
>
> I am trying to define a constant in the css file with name CPU_COLOR,
> similarly to the example given in the ClientBundle documentation (@def
> CPU_COLOR #99cc00;). When I am trying to compile I get an error:
>
>      [java]                Preparing method css
>      [java]                   The following problems were detected
>      [java]                      [WARN] Line 1 column 12: encountered
> "_". Was expecting one of: "}" "+" "-" "," ";" "/" <STRING> <IDENT>
> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS>
> <DEG> <RAD> <GRAD> <MS> <SECOND>
>  <HZ> <KHZ> <DIMEN> <HASH> <IMPORTANT_SYM> <UNICODERANGE> <FUNCTION>
>      [java]                   Parsing CSS stylesheet file:/C:/.../
> dmc.css
>      [java]                      [ERROR] Unable to parse CSS
>      [java] org.w3c.css.sac.CSSException: @def rules must specify an
> identifier
> and one or more values
>      [java]     at com.google.gwt.resources.css.GenerateCssAst
> $GenerationHandler
> .parseDef(GenerateCssAst.java:346)
>
> If I remove the "_" from the constant name the compilation succeeds.
> The same problem I had before when I tried to define a css class name
> with "_" in the middle of the name.
>
> Am I doing something illegal or is it a GWT compiler bug?

http://code.google.com/p/google-web-toolkit/issues/detail?id=3946

Will be fixed in 2.0.1 (well, the "underscore in css class name" will
be for sure, and I believe the "underscore in @def name" too though I
can't say for sure)
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to