From 8cf10efe3b5a1bcc70bc6e5590ee63fd5eb00c5b Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 19 Jul 2023 11:57:59 +0100 Subject: Huge refactor to a more value based system, doing away with terminals. Also introduces unit testing --- 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 198c346..496abd0 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', 'f', 'F', 'l', 'L', 'a', 'A': + case 's', 'S': l.emit(TokenCommand) return lexSubstitution case ':', 'b': -- cgit v1.2.3