diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2023-12-13 16:38:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 16:38:18 +0100 |
commit | 5d95791a6795bfc44380c2e6e343ee66dd891e8b (patch) | |
tree | ae9abaa7bea2f80012ce283e3c2d67ec21fb82cd /tests | |
parent | 511d50b15b0a903639874e933d941bad50de6652 (diff) |
lexer: temporarily revert #\ patch; keep CR in comment bug fix
This commit temporarily reverts the commit that allows #\ "tcl-style"
comments everywhere and documents them, for the 1.7.1 patch release
cca1f7d18f2fa6721952645821ae429a0166d7e4.
\r is removed from the list of characters not allowed in a comment to
preserve that bugfix.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shtest | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/shtest b/tests/shtest index fdf17bec..469ea1d2 100755 --- a/tests/shtest +++ b/tests/shtest @@ -594,24 +594,6 @@ if ! x=$($JQ -n "1 # foo$cr + 2") || [ "$x" != 1 ]; then exit 1 fi -if ! x=$($JQ -cn '[ - 1, - # foo \ - 2, - # bar \\ - 3, - 4, # baz \\\ - 5, \ - 6, - 7 - # comment \ - comment \ - comment -]') || [ "$x" != '[1,3,4,7]' ]; then - echo 'multiline comment was not handled correctly' - exit 1 -fi - # Allow passing the inline jq script before -- #2919 if ! r=$($JQ --args -rn -- '$ARGS.positional[0]' bar) || [ "$r" != bar ]; then echo "passing the inline script after -- didn't work" |