From bbaa052ca39beaca0dc11d2260d6819c4f6dcd62 Mon Sep 17 00:00:00 2001 From: Jun Nishimura Date: Sat, 12 Oct 2024 11:57:18 +0900 Subject: [PATCH] accept string literal including comma --- lexer/lexer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lexer/lexer.go b/lexer/lexer.go index 2f9be8f..233b564 100644 --- a/lexer/lexer.go +++ b/lexer/lexer.go @@ -121,7 +121,8 @@ func isSpecialChar(ch byte) bool { ch == '<' || ch == '>' || ch == '!' || - ch == '$' + ch == '$' || + ch == ',' } func (l *Lexer) readNumber() string {