Skip to content

Commit af50eed

Browse files
authored
Merge pull request #46 from rust-lang/variable-length-spaces
Add support for multi-spaced commands
2 parents 800caef + d6274af commit af50eed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ impl Commands {
100100
fn add_space(state_machine: &mut StateMachine, mut state: usize, i: usize) -> usize {
101101
if i > 0 {
102102
state = state_machine.add(state, CharacterSet::from_char(' '));
103+
state_machine.add_next_state(state, state);
103104
}
104105
state
105106
}

0 commit comments

Comments
 (0)