allow up to 65536 parser events
parser events don't take up enough memory to warrant a stricter limit. I do wonder if this limit is actually reachable with a 65536 character limit though.
This commit is contained in:
parent
5e6b84bed5
commit
d309211558
2 changed files with 5 additions and 1 deletions
|
@ -37,6 +37,9 @@ enum EventKind {
|
|||
Advance,
|
||||
}
|
||||
|
||||
// We don't want events taking up too much memory all of a sudden.
|
||||
const _: () = assert!(size_of::<EventKind>() == 1);
|
||||
|
||||
struct Open {
|
||||
index: Option<usize>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue