<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/lex.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2024-04-21 17:16:01 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2024-04-21 17:16:01 +0100
commit1e66aaece6ea7cd3c705ca56ce5558e8f87681b8 (patch)
tree2fff87e4abfb0727e028854c006577eccfeee370 /main/lex.go
parent7162ae8c641314846f0b565d7614ac8d71dbd628 (diff)
downloadstred-go-1e66aaece6ea7cd3c705ca56ce5558e8f87681b8.tar
Add substitute next commands
Diffstat (limited to 'main/lex.go')
-rw-r--r--main/lex.go2
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