#!/usr/bin/bash
# broken while highlight after pipe
cat $foo |
while read i; do
# broken done; highlight after output
echo "output";
done;
# OK
cat $foo |
while read i; do
echo "output"
done;
# OK
cat $foo | while read i; do
echo "output";
done
# OK
cat $foo | while read i; do
echo "output";
# COMM
done;
The code with a problem is:
It looks like:
The first
read
has:but the second
read
has:The first
done
has:but the second
done
has:It should look like:
I would expect that the squared
read
and the circleddone
should have the same color.Originally from @gullevek in https://github.com/microsoft/vscode/issues/212572.