zsh-users/zsh-syntax-highlighting

Highlight case/esac

開放

#406 建立於 2016年12月29日

 (0 則留言) (1 個反應) (0 位負責人)Shell (1,371 個分叉)batch import
Improvementgood first issue

倉庫指標

星標
 (22,617 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南