zsh-users/zsh-syntax-highlighting

SHORT_LOOPS syntax "while {....} {....}" not recognized

Open

#880 aperta il 23 giu 2022

Vedi su GitHub
 (15 commenti) (0 reazioni) (0 assegnatari)Shell (1371 fork)batch import
Buggood first issuesyntax:command-word

Metriche repository

Star
 (22.617 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It is possible to write a loop using a different syntax like:

while (( i++ < 10 )) { echo i is $i } 

Issue:

The syntax highlighting fails on the { echo i is $i } part. Has this been a conscious decision made in the past? If not is it possible to fix this?

Guida contributor