Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/lex.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2025-10-29 18:14:52 +0000
committerCharlie Stanton <charlie@shtanton.xyz>2025-10-29 18:14:52 +0000
commite4e454665bf7e21db21763c65bf35d23665b17cf (patch)
tree121d749fe4487739ebfb239dc40d5cc88e0097dd /main/lex.go
parentb2ce005d227a10a9b8a6f5362c87a0e34ee07acc (diff)
downloadstred-go-e4e454665bf7e21db21763c65bf35d23665b17cf.tar
Improve internals of command control flowHEADmain
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 da517cc..0bcdaec 100644
--- a/main/lex.go
+++ b/main/lex.go
@@ -180,7 +180,7 @@ func lexCommand(l *lexer) stateFunc {
case '}':
l.emit(TokenRBrace)
return lexCommand
- case 's', 'S', 'M':
+ case 's', 'S', 'M', 'r':
l.emit(TokenCommand)
return lexSubstitution
case 'x', 'X', 'y', 'Y', 'z', 'Z', 'n', 'N':