This update adds some zsh support to LexBash, specifically zsh #-related highlighting glitches. Turns out there are a multitude of cases where zsh uses the # character not as a comment line start. The recent Scintilla list discussion was unhelpful in the sense that a zsh proponent should have properly idenfitied and catalogued the various zsh syntax before suggesting solutions.
(a) Improved highlighting for zsh [#base] and [##base] syntax in arithmetic expressions
(b) Support for zsh #name, ##x and ##^A syntax in arithmetic expressions
(c) Support the use of the # character in zsh glob syntax using a heuristic
The changes does not appear to be too disruptive to bash highlighting, hopefully folks don't put comment lines in those places or such fashion. Attached LexBash.cxx and some test cases.
Log in to post a comment.