Changeset 9247 in josm for trunk/src/org


Ignore:
Timestamp:
2016-01-01T22:34:11+01:00 (4 years ago)
Author:
simon04
Message:

fix #12267 - MapCSS conditions does not handle unquoted 0 value

Such as in [frequency=0].

File:
1 edited

Legend:

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

    r9239 r9247  
    157157{
    158158    < IDENT: ["a"-"z","A"-"Z","_"] ( ["a"-"z","A"-"Z","_","-","0"-"9"] )* >
    159 |   < UINT: ["1"-"9"] ( ["0"-"9"] )* >
     159|   < UINT: ( ["0"-"9"] )+ >
    160160|   < STRING: "\"" ( [" ","!","#"-"[","]"-"~","\u0080"-"\uFFFF"] | "\\\"" | "\\\\" )*  "\"" >
    161161|   < #PREDEFINED: "\\" ["d","D","s","S","w","W","b","B","A","G","Z","z"] >
Note: See TracChangeset for help on using the changeset viewer.