We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6e6d3 commit b8701fcCopy full SHA for b8701fc
cli/src/generate/render.rs
@@ -759,12 +759,20 @@ impl Generator {
759
}
760
761
if let Some(large_char_set_ix) = large_char_set_ix {
762
+ let large_set = &self.large_character_sets[large_char_set_ix].1;
763
+ let check_eof = large_set.contains('\0');
764
+ if check_eof {
765
+ add!(self, "(!eof && ")
766
+ }
767
add!(
768
self,
769
"set_contains({}, {}, lookahead)",
- self.large_character_set_constant_names[large_char_set_ix],
- self.large_character_sets[large_char_set_ix].1.range_count(),
770
+ &self.large_character_set_constant_names[large_char_set_ix],
771
+ large_set.range_count(),
772
);
773
774
+ add!(self, ")");
775
776
777
778
if !asserted_chars.is_empty() {
0 commit comments