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

Support the arithmetic for loop #709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielshahaf
Copy link
Member

@phy1729 This could benefit from the arithmetic expressions highlighter you wrote yesterday :)

@danielshahaf danielshahaf added this to the 0.8.0 milestone Mar 19, 2020
@@ -1033,6 +1043,9 @@ _zsh_highlight_main_highlighter_highlight_list()
fi
elif _zsh_highlight_main__type "$arg"; [[ $REPLY == 'global alias' ]]; then # $arg is a global alias that isn't in command position
style=global-alias
elif [[ $this_word == *':arithmetic_for:'* && $arg == $'\x28\x28' ]]; then # arithmetic for loop
braces_stack='4'"$braces_stack"
style=reserved-word
Copy link
Member Author

Choose a reason for hiding this comment

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

See if we can use #714 here, as it was just merged.

@phy1729 phy1729 modified the milestones: 0.8.0, 0.8.1 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants