zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

Open

#237 创建于 2015年11月24日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Shell (22,617 star) (1,371 fork)batch import
Featuregood first issuesyntax:command-word

描述

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.

贡献者指南

Function definitions: highlight first command word · zsh-users/zsh-syntax-highlighting#237 | Good First Issue