@@ -1100,7 +1100,7 @@ impl NFA {
11001100 self . 0 . look_set_prefix_any
11011101 }
11021102
1103- /// Returns how many look-around sub-expressions this nfa contains
1103+ /// Returns how many look-around sub-expressions this nfa contains.
11041104 #[ inline]
11051105 pub fn lookaround_count ( & self ) -> usize {
11061106 self . 0 . lookaround_count
@@ -1268,7 +1268,7 @@ pub(super) struct Inner {
12681268 */
12691269 /// How many look-around expression this NFA contains.
12701270 /// This is needed to initialize the table for storing the result of
1271- /// look-around evaluation
1271+ /// look-around evaluation.
12721272 lookaround_count : usize ,
12731273 /// Heap memory used indirectly by NFA states and other things (like the
12741274 /// various capturing group representations above). Since each state
@@ -1385,8 +1385,8 @@ impl Inner {
13851385 State :: Capture { .. } => {
13861386 self . has_capture = true ;
13871387 }
1388- State :: CheckLookAround { lookaround_idx : look_idx, .. }
1389- | State :: WriteLookAround { lookaround_idx : look_idx } => {
1388+ State :: CheckLookAround { lookaround_index : look_idx, .. }
1389+ | State :: WriteLookAround { lookaround_index : look_idx } => {
13901390 self . lookaround_count =
13911391 self . lookaround_count . max ( look_idx. as_usize ( ) + 1 ) ;
13921392 }
@@ -1566,19 +1566,19 @@ pub enum State {
15661566 } ,
15671567 /// This is like a match state but for a look-around expression.
15681568 /// Executing this state will write the current haystack offset into the
1569- /// look-around oracle at index `lookaround_idx `.
1569+ /// look-around oracle at index `lookaround_index `.
15701570 WriteLookAround {
15711571 /// The index of the look-around expression that matches.
1572- lookaround_idx : SmallIndex ,
1572+ lookaround_index : SmallIndex ,
15731573 } ,
1574- /// This indicates that we need to check whether lookaround expression with
1575- /// index `lookaround_idx ` holds at the current position in the haystack
1576- /// If `positive` is false, then the lookaround expression is negative and
1574+ /// This indicates that we need to check whether look-around expression with
1575+ /// index `lookaround_index ` holds at the current position in the haystack.
1576+ /// If `positive` is false, then the look-around expression is negative and
15771577 /// hence must NOT hold.
15781578 CheckLookAround {
15791579 /// The index of the look-around expression that must be satisfied.
1580- lookaround_idx : SmallIndex ,
1581- /// Whether this is a positive lookaround expression.
1580+ lookaround_index : SmallIndex ,
1581+ /// Whether this is a positive look-around expression.
15821582 positive : bool ,
15831583 /// The next state to transition if the look-around assertion is
15841584 /// satisfied.
@@ -1795,11 +1795,11 @@ impl fmt::Debug for State {
17951795 State :: Look { ref look, next } => {
17961796 write ! ( f, "{:?} => {:?}" , look, next. as_usize( ) )
17971797 }
1798- State :: WriteLookAround { lookaround_idx : look_idx } => {
1798+ State :: WriteLookAround { lookaround_index : look_idx } => {
17991799 write ! ( f, "write-look-around({})" , look_idx. as_u32( ) )
18001800 }
18011801 State :: CheckLookAround {
1802- lookaround_idx : look_idx,
1802+ lookaround_index : look_idx,
18031803 positive,
18041804 next,
18051805 } => {
0 commit comments