﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10210	Bug combining multiple media queries	plepe	team	"If I combine multiple media queries (using the comma syntax) I get a stack trace on the console. In fact, the media query is copied from the example page:
{{{
@media (min-josm-version: 6970) and (max-josm-version: 7014), (user-agent: myEditor) {
area[building] {
  fill-color: red;
}
}
}}}

generates:

{{{
WARNUNG: Mappaint-Stile in '/home/skunk/code/mapcss-examples/test-media.mapcss' enthalten Fehler: Encountered "" <PP_SOMETHING_ELSE> "", """" at line 6, column 61.
Was expecting one of:
    ""and"" ...
    <PP_NEWLINECHAR> ...
    <PP_WHITESPACE> ...
    ""/*"" ...
    ""{"" ...
    "","" ...
    
Fehler: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered "" <PP_SOMETHING_ELSE> "", """" at line 1, column 61.
Was expecting one of:
    ""and"" ...
    <PP_NEWLINECHAR> ...
    <PP_WHITESPACE> ...
    ""/*"" ...
    ""{"" ...
    "","" ...
org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered "" <PP_SOMETHING_ELSE> "", """" at line 6, column 61.
Was expecting one of:
    ""and"" ...
    <PP_NEWLINECHAR> ...
    <PP_WHITESPACE> ...
    ""/*"" ...
    ""{"" ...
    "","" ...
    
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.generateParseException(MapCSSParser.java:3022)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.jj_consume_token(MapCSSParser.java:2903)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_media(MapCSSParser.java:266)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_black_box(MapCSSParser.java:214)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_root(MapCSSParser.java:107)
	at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.loadStyleSource(MapCSSStyleSource.java:195)
	at org.openstreetmap.josm.gui.mappaint.MapPaintStyles$MapPaintStyleLoader.realRun(MapPaintStyles.java:329)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:82)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:150)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
}}}"	defect	closed	normal	14.06	Core mappaint		fixed		
