parent
7776f24dfa
commit
3243c9ab73
|
@ -41,6 +41,41 @@ f=g \
|
||||||
(command_name (word))
|
(command_name (word))
|
||||||
(word)))
|
(word)))
|
||||||
|
|
||||||
|
=============================
|
||||||
|
escaped newline immediately after a char
|
||||||
|
=============================
|
||||||
|
|
||||||
|
echo a \
|
||||||
|
b
|
||||||
|
|
||||||
|
echo a\
|
||||||
|
b
|
||||||
|
|
||||||
|
echo a\
|
||||||
|
b\
|
||||||
|
c
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
(program
|
||||||
|
(command
|
||||||
|
(command_name
|
||||||
|
(word))
|
||||||
|
(word)
|
||||||
|
(word))
|
||||||
|
(command
|
||||||
|
(command_name
|
||||||
|
(word))
|
||||||
|
(word)
|
||||||
|
(word))
|
||||||
|
(command
|
||||||
|
(command_name
|
||||||
|
(word))
|
||||||
|
(word)
|
||||||
|
(word)
|
||||||
|
(word)))
|
||||||
|
|
||||||
=============================
|
=============================
|
||||||
Escaped whitespace
|
Escaped whitespace
|
||||||
============================
|
============================
|
||||||
|
|
|
@ -172,6 +172,7 @@ struct Scanner {
|
||||||
if (!(
|
if (!(
|
||||||
lexer->lookahead == 0 ||
|
lexer->lookahead == 0 ||
|
||||||
iswspace(lexer->lookahead) ||
|
iswspace(lexer->lookahead) ||
|
||||||
|
lexer->lookahead == '\\' ||
|
||||||
lexer->lookahead == '>' ||
|
lexer->lookahead == '>' ||
|
||||||
lexer->lookahead == '<' ||
|
lexer->lookahead == '<' ||
|
||||||
lexer->lookahead == ')' ||
|
lexer->lookahead == ')' ||
|
||||||
|
|
Loading…
Reference in New Issue