Skip to content

Commit 30fcfa5

Browse files
committed
save
1 parent 425d922 commit 30fcfa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/interpreter/lexer.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ StateFn lex_shell_arg_list(Lexer *lexer)
389389
* Lexing rules for shell arg list:
390390
* whitespace, tab -> backup, emit, advance, ignore and continue
391391
* $ -> backup, emit, advance and lex access
392-
* " -> backup, emit, advance and lex string
392+
* ", ' -> backup, emit, advance and lex string
393393
* ( -> backup, emit, advance, lex any until rparen and continue
394394
* ) -> backup, emit, advance, stop and return lex rparen
395395
* \n, }, ;, |, >, <, &, EOF -> backup, emit, and stop
@@ -412,6 +412,7 @@ StateFn lex_shell_arg_list(Lexer *lexer)
412412
lex_access(lexer);
413413
break;
414414
case '"':
415+
case '\'':
415416
shell_arg_emit(lexer);
416417
lex_string(lexer);
417418
break;

0 commit comments

Comments
 (0)