Skip to content

Highlight: Anonymous functions #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danielshahaf opened this issue Sep 10, 2015 · 0 comments
Closed

Highlight: Anonymous functions #194

danielshahaf opened this issue Sep 10, 2015 · 0 comments

Comments

@danielshahaf
Copy link
Member

() { 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant