Skip to content

Highlight: Anonymous functions #194

@danielshahaf

Description

@danielshahaf

() { echo hello world } should consider echo a command word.

This is related to:

  • () echo hello world (single-statement anonymous functions)
  • f() { echo hello world } (normal function)
  • f g h () { echo hello world } (with MULTI_FUNC_DEFS)
  • { echo hello world } | … (inline blocks) (which are related to subshells: issue subshells highlighted as incorrect syntax #166)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions