<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/lex.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-21 10:42:03 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-21 10:42:03 +0100
commita4015bc64d5174f62bc2d150c6a780b89c00a0cc (patch)
tree93d5901d3358e1070af7de90ee1c5d5669adaef1 /main/lex.go
parenta55375e36b159448723807198cd2b2bbd4371c1f (diff)
downloadstred-go-a4015bc64d5174f62bc2d150c6a780b89c00a0cc.tar
Add a and A commands for global substitution
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 ecb0d3d..f28244d 100644
--- a/main/lex.go
+++ b/main/lex.go
@@ -179,7 +179,7 @@ func lexCommand(l *lexer) stateFunc {
case '}':
l.emit(TokenRBrace)
return lexCommand
- case 's', 'S', 'f', 'F', 'l', 'L':
+ case 's', 'S', 'f', 'F', 'l', 'L', 'a', 'A':
l.emit(TokenCommand)
return lexSubstitution
}