zsh-users/zsh-syntax-highlighting

Highlight case/esac

Open

#406 aperta il 29 dic 2016

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)Shell (1371 fork)batch import
Improvementgood first issue

Metriche repository

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

Descrizione

In case foo in (bar) ls;; esac:

  • The ls not highlighted as a command word.
  • The esac is not highlighted as a reserved word.
  • The case/esac pair should be subject to balanced-parenthesis logic, like do/done. (So esac is highlighted in red if not preceded by a case, etc.)
  • If the second word after case is not in, then it is a syntax error.

Guida contributor