Skip to content

Conversation

@danielshahaf
Copy link
Member

Fixes #511.

@danielshahaf danielshahaf requested a review from phy1729 October 22, 2018 16:01
Copy link
Member

@phy1729 phy1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also test assignment before the !.

case $res in
reserved) # reserved word
style=reserved-word
if [[ $arg == '!' && $this_word != *':start_of_pipeline:'* ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not put this in the case statement following?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

style=assign
in_array_assignment=false
next_word+=':start:'
next_word+=':start::start_of_pipeline:'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

foo=(bar) ! false is a parse error here, so I think this is incorrect.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@phy1729 phy1729 added this to the 0.7.0 milestone Oct 23, 2018
@danielshahaf
Copy link
Member Author

Added tests and addressed the comments. Thanks for the review.

@danielshahaf danielshahaf merged commit 44b89f3 into zsh-users:master Oct 23, 2018
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.

2 participants