zsh-users/zsh-syntax-highlighting

Highlight case/esac

Open

#406 opened on Dec 29, 2016

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Shell (1,371 forks)batch import
Improvementgood first issue

Repository metrics

Stars
 (22,617 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide