- Timestamp:
- 2018-12-02T15:30:24+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r14486 r14489 469 469 try { 470 470 final String val = ai.val instanceof Expression 471 ? Optional.of (((Expression) ai.val).evaluate(new Environment())).map(Object::toString).orElse(null)471 ? Optional.ofNullable(((Expression) ai.val).evaluate(new Environment())).map(Object::toString).orElse(null) 472 472 : ai.val instanceof String 473 473 ? (String) ai.val -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj
r14481 r14489 166 166 { 167 167 < IDENT: ["a"-"z","A"-"Z","_"] ( ["a"-"z","A"-"Z","_","-","0"-"9"] )* > 168 | < EXTIDENT: <MINUS> <IDENT> >169 168 | < UINT: ( ["0"-"9"] )+ > 170 169 | < STRING: "\"" ( [" ","!","#"-"[","]"-"~","\u0080"-"\uFFFF"] | "\\\"" | "\\\\" )* "\"" > … … 284 283 { 285 284 ( 286 (t=<PP_AND> | t=<PP_OR> | t=<PP_NOT> | t=<UINT> | t=<STRING> | t=<REGEX> | t=<LPAR> | t=<RPAR> | t=<COMMA> | t=<COLON> | t=<IDENT> | t=< EXTIDENT> | t=<PP_SOMETHING_ELSE>) { if (write) sb.append(t.image); }285 (t=<PP_AND> | t=<PP_OR> | t=<PP_NOT> | t=<UINT> | t=<STRING> | t=<REGEX> | t=<LPAR> | t=<RPAR> | t=<COMMA> | t=<COLON> | t=<IDENT> | t=<PP_SOMETHING_ELSE>) { if (write) sb.append(t.image); } 287 286 | 288 287 pp_w1() … … 907 906 ) 908 907 | 909 < EXTIDENT> w() <COLON> w() expression() <SEMICOLON> w()908 <MINUS> <IDENT> w() <COLON> w() expression() <SEMICOLON> w() 910 909 | 911 910 key=<IDENT> w() <COLON> w()
Note:
See TracChangeset
for help on using the changeset viewer.