Skip to content

Commit

Permalink
README: clarify caveat for declare
Browse files Browse the repository at this point in the history
Closes #858.
  • Loading branch information
mvdan committed Sep 29, 2024
1 parent a5e1d24 commit 8a6585b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $ echo '$((foo); (bar))' | shfmt
1:1: reached ) without matching $(( with ))
```

* Some builtins like `export` and `let` are parsed as keywords.
* `export`, `let`, and `declare` are parsed as keywords.
This allows statically building their syntax tree,
as opposed to keeping the arguments as a slice of words.
It is also required to support `declare foo=(bar)`.
Expand Down

0 comments on commit 8a6585b

Please sign in to comment.