diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2024-04-21 17:16:01 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2024-04-21 17:16:01 +0100 |
commit | 1e66aaece6ea7cd3c705ca56ce5558e8f87681b8 (patch) | |
tree | 2fff87e4abfb0727e028854c006577eccfeee370 /main/lex.go | |
parent | 7162ae8c641314846f0b565d7614ac8d71dbd628 (diff) | |
download | stred-go-1e66aaece6ea7cd3c705ca56ce5558e8f87681b8.tar |
Add substitute next commands
Diffstat (limited to 'main/lex.go')
-rw-r--r-- | main/lex.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/lex.go b/main/lex.go index a28975f..8e66890 100644 --- a/main/lex.go +++ b/main/lex.go @@ -183,7 +183,7 @@ func lexCommand(l *lexer) stateFunc { case 's', 'S': l.emit(TokenCommand) return lexSubstitution - case 'x', 'X', 'y', 'Y', 'z', 'Z': + case 'x', 'X', 'y', 'Y', 'z', 'Z', 'n', 'N': l.emit(TokenCommand) if l.peek() == '/' { return lexSubstitution |