Main.error(e);
logError(e);
} catch (ParseException e) {
Main.warn(tr("Failed to parse Mappaint styles from ''{0}''. Error was: {1}", url, e.getMessage()));
Main.error(e);
logError(new ParseException(e.getMessage())); // allow e to be garbage collected, it links to the entire token stream
}
// optimization: filter rules for different primitive types
for (MapCSSRule r: rules) {
// find the rightmost selector, this must be a GeneralSelector
Selector selRightmost = r.selector;