Skip to content
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

Block with assignment with no command #854

Open
danielshahaf opened this issue Jan 31, 2022 · 1 comment
Open

Block with assignment with no command #854

danielshahaf opened this issue Jan 31, 2022 · 1 comment

Comments

@danielshahaf
Copy link
Member

@danielshahaf danielshahaf commented Jan 31, 2022

% tests/generate.zsh '{ a=42 }' main block-assignment-no-command
Set copyright year to 2022? y
BUFFER=$'{ a=42 }'

expected_region_highlight=(
  '1 1 reserved-word' # {
  '3 6 assign' # a=42
  '5 6 default' # 42
  '8 8 unknown-token' # }
)

That's a valid command so the final } should be a reserved-word.

@danielshahaf
Copy link
Member Author

@danielshahaf danielshahaf commented Jan 31, 2022

Test added.

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