diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-21 10:42:03 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-21 10:42:03 +0100 |
commit | a4015bc64d5174f62bc2d150c6a780b89c00a0cc (patch) | |
tree | 93d5901d3358e1070af7de90ee1c5d5669adaef1 /main/lex.go | |
parent | a55375e36b159448723807198cd2b2bbd4371c1f (diff) | |
download | stred-go-a4015bc64d5174f62bc2d150c6a780b89c00a0cc.tar |
Add a and A commands for global substitution
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 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 } |