A certain Neil Hodgson seems to have looked at this but I have no idea what he's saying:
- Description has changed: Diff: ~~~~ --- old +++ new @@ -1,4 +1,4 @@ -~~~ +~~~zsh function test2 { ~~~~ - **Comment**: A simpler example is: ~~~bash # comment \ echo "not a comment" ~~~ which displays `not a comment` when run with zsh or bash. There are separate elements in the zsh documentation for continuation and comments with no information on priority. http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html#Quoting : > A character may be quoted (that is, made to stand for itself) by preceding > it with a ‘\’. ‘\’ followed by a newline is ignored. http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html#Comments : > a word beginning with the third character of the histchars parameter (‘#’ by > default) causes that word and all the following characters up to a newline to > be ignored. --- ** [bugs:#2226] zsh 5.8 on Debian Stretch.** **Status:** open-accepted **Group:** Bug **Labels:** lexilla lexer bash zsh **Created:** Wed Dec 30, 2020 12:59 AM UTC by Ray Andrews **Last Updated:** Wed Dec 30, 2020 09:38 PM UTC **Owner:** nobody ~~~zsh function test2 { # this is a comment\ is this a comment continued on the next line? } ~~~ zsh treats the second line as code, but it highlights as a continuation of the comment. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2715#issuecomment-752775301