Changeset 7277 in josm
- Timestamp:
- 2014-06-30T11:59:11+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj
r7166 r7277 140 140 | < LPAR: "(" > 141 141 | < RPAR: ")" > 142 | < COMMA: "," > 142 143 | < COLON: ":" > 143 144 } … … 169 170 | < DCOLON: "::" > 170 171 | < SEMICOLON: ";" > 171 | < COMMA: "," >172 172 | < PIPE: "|" > 173 173 | < PIPE_Z: "|z" > … … 243 243 { 244 244 ( 245 (t=<PP_AND> | t=<PP_NOT> | t=<UINT> | t=<STRING> | t=<REGEX> | t=<LPAR> | t=<RPAR> | t=<CO LON> | t=<IDENT> | t=<PP_SOMETHING_ELSE>) { if (write) sb.append(t.image); }245 (t=<PP_AND> | 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); } 246 246 | 247 247 pp_w1() 248 248 | 249 pp_media( )249 pp_media(!write) 250 250 | 251 251 t=<LBRACE> { if (write) sb.append(t.image); } pp_black_box(write) t=<RBRACE> { if (write) sb.append(t.image); } … … 253 253 } 254 254 255 void pp_media( ):255 void pp_media(boolean ignore): 256 256 { 257 257 boolean pass = false; … … 265 265 )? 266 266 <LBRACE> 267 pp_black_box( empty || pass)267 pp_black_box((empty || pass) && !ignore) 268 268 <RBRACE> 269 269 }
Note:
See TracChangeset
for help on using the changeset viewer.