antlr4-runtime 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/antlr4/runtime/default_error_strategy.rb +1 -1
- data/lib/antlr4/runtime/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 997ff14a7653228bf76c3d4d73fd9142681b71c8b561483612980271994ccda4
|
4
|
+
data.tar.gz: 0de09a9522e1be8df33d96c4e7a9ab3f5a1b249bfd387f32711ff7ff76d778a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b785bcdea37bfd5503584560edd44cb34f938b674924e17b7105d9b26f2b91321a6e7b275b14de62647693c679207594aba615d13d6403b34abd6803f9aca4
|
7
|
+
data.tar.gz: 392d73af0a74e61cde891d94afce425c4283880faf30a140c2bc1488c3ff843e7497417d5e2fceae5ed94bf40bf492bf26c5642e10c67221c0c4eba652714eba
|
@@ -111,7 +111,7 @@ module Antlr4::Runtime
|
|
111
111
|
# System.err.println("at loop back: "+s.getClass().getSimpleName())
|
112
112
|
report_unwanted_token(recognizer)
|
113
113
|
expecting = recognizer.expected_tokens
|
114
|
-
what_follows_loop_iteration_or_rule = expecting
|
114
|
+
what_follows_loop_iteration_or_rule = expecting.or_sets(error_recovery_set(recognizer))
|
115
115
|
consume_until(recognizer, what_follows_loop_iteration_or_rule)
|
116
116
|
|
117
117
|
else # do nothing if we can't identify the exact kind of ATN state end
|