parent
7776f24dfa
commit
3243c9ab73
|
@ -41,6 +41,41 @@ f=g \
|
|||
(command_name (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
|
||||
============================
|
||||
|
|
|
@ -172,6 +172,7 @@ struct Scanner {
|
|||
if (!(
|
||||
lexer->lookahead == 0 ||
|
||||
iswspace(lexer->lookahead) ||
|
||||
lexer->lookahead == '\\' ||
|
||||
lexer->lookahead == '>' ||
|
||||
lexer->lookahead == '<' ||
|
||||
lexer->lookahead == ')' ||
|
||||
|
|
Loading…
Reference in New Issue