Skip to content

Commit

Permalink
syntax: fix false error highlighting of commands after "},fi,done,esac"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 1, 2019
1 parent 60f8029 commit f095ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-syntax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ function ble-syntax:bash/ctx-command/.check-delimiter-or-redirect {
local spaces=$BASH_REMATCH
if [[ $spaces == *$'\n'* ]]; then
ble-syntax:bash/check-here-document-from "$spaces" && return 0
if ((ctx==CTX_ARGX||ctx==CTX_ARGX0||ctx==CTX_ARGVX||ctx==CTX_CMDXV||ctx==CTX_CMDXT)); then
if ((ctx==CTX_ARGX||ctx==CTX_ARGX0||ctx==CTX_ARGVX||ctx==CTX_CMDXV||ctx==CTX_CMDXT||ctx==CTX_CMDXE)); then
((ctx=CTX_CMDX))
elif ((ctx==CTX_FARGX2||ctx==CTX_FARGX3||ctx==CTX_CMDXD0)); then
((ctx=CTX_CMDXD))
Expand Down

0 comments on commit f095ab1

Please sign in to comment.