narrow escape
This commit is contained in:
parent
983b9b355a
commit
d667922bbd
1
check.sh
1
check.sh
|
@ -8,6 +8,7 @@ tests="
|
|||
00-exit
|
||||
00-exit-0
|
||||
00-exit-1
|
||||
00-exit-2
|
||||
|
||||
01-script-newline
|
||||
01-script-semi
|
||||
|
|
|
@ -169,8 +169,10 @@
|
|||
ltest < '['
|
||||
rtest < ']'
|
||||
|
||||
literal <- !reserved (!']' ![ \t\v\f\n`'\")};|&$] (escape / .))+
|
||||
escape <- '\\' [ \"$]
|
||||
literal <- !reserved (escaped / !allowed .)+
|
||||
escaped <- escape [ \"$]
|
||||
escape < [\\]
|
||||
allowed <- ']' / [ \t\v\f\n`'\")};|&$] / '\\\n'
|
||||
|
||||
identifier <- [_a-zA-Z][_a-zA-Z0-9]*
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
2
|
|
@ -0,0 +1 @@
|
|||
exit 2
|
|
@ -1 +1 @@
|
|||
2
|
||||
0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
exit\
|
||||
2
|
||||
0
|
||||
|
|
Loading…
Reference in New Issue