Skip to content

Commit 824467c

Browse files
committed
use error_skipblock() instead of special skip code
1 parent c4d8483 commit 824467c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/javacc/CSS3Parser.jj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ void styleSheetRuleList() :
529529
CSSParseException cpe = toCSSParseException("invalidRule", e);
530530
getErrorHandler().error(cpe);
531531
getErrorHandler().warning(createSkipWarning("ignoringRule", cpe));
532-
while (t.kind != RBRACE && t.kind != EOF ) {
533-
t = getNextToken();
532+
if (t.kind != RBRACE) {
533+
error_skipblock(null, null);
534534
}
535535
if (t.kind == EOF) {
536536
return;

0 commit comments

Comments
 (0)