Ignore:
Timestamp:
2013-12-29T12:43:55+01:00 (10 years ago)
Author:
simon04
Message:

see #9485 - MapCSS: add support for set .class_name instruction (with optional . before class), define Range.ZERO_TO_INFINITY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj

    r6560 r6561  
    463463    (
    464464        (
    465         <SET> w() key=<IDENT> w()
    466         ( <EQUAL> val=expression() )?
    467         { ins.add(new Instruction.AssignmentInstruction(key.image, val == null ? true : val)); }
    468         ( <RBRACE> { return ins; } | <SEMICOLON> w() )
     465            <SET> w()
     466            (<FULLSTOP>)? // specification allows "set .class" to set "class". we also support "set class"
     467            key=<IDENT> w()
     468            ( <EQUAL> val=expression() )?
     469            { ins.add(new Instruction.AssignmentInstruction(key.image, val == null ? true : val)); }
     470            ( <RBRACE> { return ins; } | <SEMICOLON> w() )
    469471        )
    470         |
     472    |
    471473        key=<IDENT> w() <COLON> w()
    472474        (
Note: See TracChangeset for help on using the changeset viewer.