From ba9b3c5e0ed2fb33b9a896ec910590410978befe Mon Sep 17 00:00:00 2001 From: Jonathan Poelen Date: Mon, 11 Jan 2021 01:29:01 +0100 Subject: [PATCH] Bash: fix #5: $ at the end of a double quoted string --- autotests/folding/highlight.sh.fold | 1 + autotests/html/highlight.sh.dark.html | 1 + autotests/html/highlight.sh.html | 1 + autotests/input/highlight.sh | 1 + autotests/reference/highlight.sh.ref | 1 + data/syntax/bash.xml | 5 +++-- data/syntax/zsh.xml | 3 +-- 7 files changed, 9 insertions(+), 4 deletions(-) diff --git a/autotests/folding/highlight.sh.fold b/autotests/folding/highlight.sh.fold index 652fef8f..d7a6b210 100644 --- a/autotests/folding/highlight.sh.fold +++ b/autotests/folding/highlight.sh.fold @@ -16,6 +16,7 @@ echo 'single quoted string' echo "double quoted string" echo $'string with esc\apes\x0din it' echo $"string meant to be translated" +echo "$" # comments: diff --git a/autotests/html/highlight.sh.dark.html b/autotests/html/highlight.sh.dark.html index d1d4fb8a..8cbd0929 100644 --- a/autotests/html/highlight.sh.dark.html +++ b/autotests/html/highlight.sh.dark.html @@ -22,6 +22,7 @@ echo "double quoted string" echo $'string with esc\apes\x0din it' echo $"string meant to be translated" +echo "$" # comments: diff --git a/autotests/html/highlight.sh.html b/autotests/html/highlight.sh.html index 5d687d86..d176b1cb 100644 --- a/autotests/html/highlight.sh.html +++ b/autotests/html/highlight.sh.html @@ -22,6 +22,7 @@ echo "double quoted string" echo $'string with esc\apes\x0din it' echo $"string meant to be translated" +echo "$" # comments: diff --git a/autotests/input/highlight.sh b/autotests/input/highlight.sh index 177e104f..5c2ae7b1 100644 --- a/autotests/input/highlight.sh +++ b/autotests/input/highlight.sh @@ -16,6 +16,7 @@ echo 'single quoted string' echo "double quoted string" echo $'string with esc\apes\x0din it' echo $"string meant to be translated" +echo "$" # comments: diff --git a/autotests/reference/highlight.sh.ref b/autotests/reference/highlight.sh.ref index 181c36af..edaf18ab 100644 --- a/autotests/reference/highlight.sh.ref +++ b/autotests/reference/highlight.sh.ref @@ -16,6 +16,7 @@ echo "double quoted string"
echo $'string with esc\apes\x0din it'
echo $"string meant to be translated"
+echo "$"


# comments:
diff --git a/data/syntax/bash.xml b/data/syntax/bash.xml index 3171247b..3b804f90 100644 --- a/data/syntax/bash.xml +++ b/data/syntax/bash.xml @@ -30,7 +30,7 @@ ]> - +