#!/usr/bin/env bash
case 'yes' in
yes)
echo 'yes'
;& # Fall through
*)
echo 'default'
;;
esac
It looks like:
It should look like:
According to the Bash Reference Manual, a case clause must be terminated with ;;, ;&, or ;;&. Currently, the shellscript grammar only supports ;;. Using ;& or ;;& affects the coloring of subsequent comments or clause patterns.
The code with a problem is:
It looks like:
It should look like:
According to the Bash Reference Manual, a case clause must be terminated with
;;
,;&
, or;;&
. Currently, the shellscript grammar only supports;;
. Using;&
or;;&
affects the coloring of subsequent comments or clause patterns.Originally from @rhenescu in https://github.com/microsoft/vscode/issues/192701