zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

Aberta

#237 aberto em 24 de nov. de 2015

 (4 comentários) (0 reação) (0 responsável)Shell (1.371 forks)batch import
Featuregood first issuesyntax:command-word

Métricas do repositório

Stars
 (22.617 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador