File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
regex-automata/src/nfa/thompson Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1185,6 +1185,7 @@ impl NFA {
1185
1185
+ self . 0 . states . len ( ) * size_of :: < State > ( )
1186
1186
+ self . 0 . start_pattern . len ( ) * size_of :: < StateID > ( )
1187
1187
+ self . 0 . group_info . memory_usage ( )
1188
+ + self . 0 . start_look_behind . len ( ) * size_of :: < StateID > ( )
1188
1189
+ self . 0 . memory_extra
1189
1190
}
1190
1191
}
@@ -1276,7 +1277,7 @@ pub(super) struct Inner {
1276
1277
/// This is needed to initialize the table for storing the result of
1277
1278
/// look-around evaluation.
1278
1279
lookaround_count : usize ,
1279
- /// Contains the start states for each of the look-behind subexpressions.
1280
+ /// Contains the start state for each of the look-behind subexpressions.
1280
1281
start_look_behind : Vec < StateID > ,
1281
1282
/// Heap memory used indirectly by NFA states and other things (like the
1282
1283
/// various capturing group representations above). Since each state
You can’t perform that action at this time.
0 commit comments