Skip to content

Commit

Permalink
syntax: change context after "time ;" and "! ;" for Bash 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 9, 2022
1 parent 551bde3 commit 0b66cf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/core-syntax.sh
Expand Up @@ -2701,8 +2701,9 @@ function ble-syntax:bash/ctx-command/.check-delimiter-or-redirect {
((_ble_syntax_attr[i++]=ATTR_DEL,ctx=CTX_CMDXD))
return 0
elif ((ctx==CTX_CMDXT)); then
# time ; 及び ! ; に限っては、エラーにならずに直後に CTX_CMDXE になる (#D0592)
((_ble_syntax_attr[i++]=ATTR_DEL,ctx=CTX_CMDXE))
# Note #D0592: time ; 及び ! ; に限っては、エラーにならずに直後に CTX_CMDXE になる
# Note #D1477: Bash 4.4 で振る舞いが変わる。
((_ble_syntax_attr[i++]=ATTR_DEL,ctx=_ble_bash>=40400?CTX_CMDX:CTX_CMDXE))
return 0
fi
fi
Expand Down

0 comments on commit 0b66cf4

Please sign in to comment.