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

Fix highlighting of multiline aliases #696

Conversation

danielshahaf
Copy link
Member

Exempt such aliases from the empty commands sanity check.

Does anyone see a downside to making this change? The argument is basically that it's not z-sy-h's job to lint the user's dotfiles, but I wonder if there's a counter-argument that I'm overlooking.

Fixes #677, which knowingly regressed in 0.7.0 compared to 0.6.0..

This didn't require converting ';' back to $'\n' in alias expansions after all.

@itchyny Please test/review.

@danielshahaf danielshahaf added this to the 0.8.0 milestone Mar 15, 2020
@danielshahaf danielshahaf force-pushed the aliases-multiline-exempt-empty-command-check-v1 branch from 1081952 to cf1d58e Compare May 22, 2020 04:50
@danielshahaf
Copy link
Member Author

Rebased due to b454b59.

The fix is to exempt such aliases from the empty commands sanity check.
@danielshahaf danielshahaf force-pushed the aliases-multiline-exempt-empty-command-check-v1 branch from cf1d58e to ade4b28 Compare May 22, 2020 04:54
@danielshahaf danielshahaf merged commit ade4b28 into zsh-users:master May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alias including a newline is not highlighted anymore
1 participant