'main': Don't highlight arithmetic expansions as command substitutions.

This is not perfect: we don't try to detect cases such as «$((ls); (ls))»,
which look like arithmetic expansions but are in fact command substitutions.

Fixes part of #607.

Introduces #704.
This commit is contained in:
Daniel Shahaf
2020-03-17 14:22:06 +00:00
parent 2e65bb6d7d
commit d237a60c9b
5 changed files with 99 additions and 12 deletions

View File

@@ -38,6 +38,13 @@
- Fix `echo >&2` highlighting the `2` as a filename if a file by that name happened to exist
[#694]
- Fix `: $((42))` being highlighted as a subshell.
[part of #607]
- Regress highlighting of `: $((ls); (ls))`: is a subshell, but will now be
incorrectly highlighted as an arithmetic expansion.
[#704]
# Changes in version 0.7.1
- Remove out-of-date information from the 0.7.0 changelog.