zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

開放

#237 建立於 2015年11月24日

 (4 則留言) (0 個反應) (0 位負責人)Shell (1,371 個分叉)batch import
Featuregood first issuesyntax:command-word

倉庫指標

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

描述

In f() foo bar, highlight foo as a command word.

This should be simpler than #223, which is about highlighting f: that issue requires (arbitrary far) lookahead, this issue does not.

As discussed in #223:

  • f g h() {} works only when MULTI_FUNC_DEF is set.
  • The syntax function f [g h…] { } also exists.

貢獻者指南