zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

オープン

#237 opened on 2015/11/24

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Shell (1,371 件のフォーク)batch import
Featuregood first issuesyntax:command-word

Repository metrics

Stars
 (22,617 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド