Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Prevent infinite loop when parsing an invalid selector
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsenft committed Apr 24, 2019
1 parent b3dc97f commit 4afa5b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ class _Parser {
var selector = processSelector();
if (selector != null) {
productions.add(selector);
} else {
break; // Prevent infinite loop if we can't parse something.
}
}

Expand Down

0 comments on commit 4afa5b4

Please sign in to comment.