diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index 9649bdce5..78c651ebd 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -352,7 +352,7 @@ snippet sym snippet ed export default ${0} snippet ${ - ${${1}}${0} + \${${1}}${0} snippet as "async" async ${0} snippet aw "await" diff --git a/snippets/jsp.snippets b/snippets/jsp.snippets index db185b2ad..a53c415b4 100644 --- a/snippets/jsp.snippets +++ b/snippets/jsp.snippets @@ -18,7 +18,7 @@ snippet cremove snippet ccatch snippet cif - + ${0} snippet cchoose @@ -26,7 +26,7 @@ snippet cchoose ${0} snippet cwhen - + ${0} snippet cother @@ -34,12 +34,12 @@ snippet cother ${0} snippet cfore - + ${0:} snippet cfort ${2:item1,item2,item3} - + ${0:} snippet cparam @@ -56,13 +56,13 @@ snippet cimport+ snippet curl - ${0} + ${0} snippet curl+ cparam+${0} - ${3} + ${3} snippet credirect snippet contains diff --git a/snippets/perl6.snippets b/snippets/perl6.snippets index 21ddf5bd0..aa7406059 100644 --- a/snippets/perl6.snippets +++ b/snippets/perl6.snippets @@ -28,7 +28,7 @@ snippet ife ${3} } snippet eif - elsif ${1) { + elsif ${1} { ${2} } # Conditional One-line diff --git a/snippets/sh.snippets b/snippets/sh.snippets index 2ce67ec4f..4f08e8974 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -55,7 +55,7 @@ snippet go done # Set SCRIPT_DIR variable to directory script is located. snippet sdir - SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + SCRIPT_DIR="\$( cd "\$( dirname "\${BASH_SOURCE[0]}" )" && pwd )" # getopt snippet getopt __ScriptVersion="${1:version}"