zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

Open

#237 aperta il 24 nov 2015

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Shell (1371 fork)batch import
Featuregood first issuesyntax:command-word

Metriche repository

Star
 (22.617 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor