You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Hello, any workaround to clue the syntax highlighter to ignore the issue? I have some large zsh scripts using variable expansion and correct highlighting would be really nice.
I see that this issue is from 2018, pretty surprised that it has not been fixed yet especially since zsh is now the default shell on macOS. I am using Atom version 1.58 on macOS and the syntax highlighting for shell scripts with zsh breaks after I use the "${(%):-%x}" command. I expected maybe there would be a separate language plugin for zsh but that does not seem to be the case either. Kinda hard to believe that all these macOS Atom users are just living with busted syntax highlighting... is there some solution that has not been mentioned?
Activity
rsese commentedon Dec 5, 2018
Thanks for the report! Reproduced on macOS 10.12.6 with 1.35.0-nightly2.
robobenklein commentedon Jan 28, 2019
Just another update for Atom 1.34.0: still broken but seemingly in a different way:
(source code still from zsh project robobenklein/p10k)
Most of the problem appears around ZSH's variable expansion flags, so perhaps there's an indicator around where the problem lies.
${(t)variable}where (t) is the flag.winstliu commentedon Jan 28, 2019
@robobenklein the variable expansion you're describing - is that a feature in regular sh/bash as well?
robobenklein commentedon Jan 28, 2019
I don't think bash or sh have variable expansion flags like this.
jspv commentedon May 7, 2020
Hello, any workaround to clue the syntax highlighter to ignore the issue? I have some large zsh scripts using variable expansion and correct highlighting would be really nice.
stevekm commentedon Feb 4, 2022
I see that this issue is from 2018, pretty surprised that it has not been fixed yet especially since
zshis now the default shell on macOS. I am using Atom version 1.58 on macOS and the syntax highlighting for shell scripts with zsh breaks after I use the"${(%):-%x}"command. I expected maybe there would be a separate language plugin for zsh but that does not seem to be the case either. Kinda hard to believe that all these macOS Atom users are just living with busted syntax highlighting... is there some solution that has not been mentioned?