Skip to content

Commit 1b0a0d3

Browse files
committed
feat: 修正字符串值的正则表达式以支持双引号
1 parent a5dbd7c commit 1b0a0d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser/lex.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ new_line "\r"|"\n"|"\r\n"
4646
identifier {alpha}(_|{alpha}|{digit})*
4747
value_int {digit}+
4848
value_float {digit}+\.({digit}+)?
49-
value_string '[^']*'
49+
value_string ('[^']*')|(\"[^\"]*\")
5050
value_path [\.|\/][^ \t]+\.csv
5151
single_op ";"|"("|")"|","|"*"|"="|">"|"<"|"."|"+"|"-"|"/"
5252

0 commit comments

Comments
 (0)