zsh-users/zsh-syntax-highlighting

Function definitions: highlight first command word

Open

#237 geöffnet am 24. Nov. 2015

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Shell (1.371 Forks)batch import
Featuregood first issuesyntax:command-word

Repository-Metriken

Stars
 (22.617 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide