'main': Highlight reserved words following assignments as errors.

Fixes #461.
This commit is contained in:
Daniel Shahaf
2020-03-19 19:45:02 +00:00
parent f54d829f03
commit b44964c545
6 changed files with 18 additions and 7 deletions

View File

@@ -33,6 +33,5 @@ BUFFER=$'foo=bar (( foo ))'
expected_region_highlight=(
'1 7 assign' # foo=bar
'5 7 default' # bar
'9 10 unknown-token "issue #461"' # ((
'16 17 reserved-word' # ))
'9 17 unknown-token' # (( foo ))
)