Skip to content

Commit 8ace65b

Browse files
[bash] Add tests for missed patterns
Found after running the `regex-coverage` npm script.
1 parent b47255c commit 8ace65b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
cat << "EOF" > /tmp/output
2+
data
3+
EOF
4+
5+
----------------------------------------------------
6+
7+
[
8+
["function", "cat"],
9+
["operator", ["<<"]],
10+
["string", [
11+
"\"EOF\"",
12+
["bash", [
13+
["operator", [">"]],
14+
" /tmp/output"
15+
]],
16+
"\r\ndata\r\nEOF"
17+
]]
18+
]
19+
20+
----------------------------------------------------
21+
22+
Checks that commands inside quoted here-documents are tokenized as Bash code.

0 commit comments

Comments
 (0)