zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

Open

#237 ouverte le 24 nov. 2015

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Shell (1 371 forks)batch import
Featuregood first issuesyntax:command-word

Métriques du dépôt

Stars
 (22 617 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur