From a4015bc64d5174f62bc2d150c6a780b89c00a0cc Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Fri, 21 Apr 2023 10:42:03 +0100 Subject: Add a and A commands for global substitution --- main/lex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/lex.go') 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 } -- cgit v1.2.3