[Github-comments] [geany/geany] false continuation of comment following " \ " (#2715)

RayAndrews56 notifications at xxxxx
Wed Dec 30 20:34:49 UTC 2020


It's debatable and I think you can make a case either way.  If you think of it as commenting out a logical line, then of course the wrapped logical line should be commented, but if you think of it as a physical line then only the physical line should be commented.  Consider this:
```
[ "$int" = "$highlight" ] && zcurses attr "$win" +reverse\
			  || zcurses attr "$win" -reverse
```
I break the line for pleasing visuals.  Ah! But I have an improvement:

```
# Edit: use 'var' not 'int':
#[ "$int" = "$highlight" ] && zcurses attr "$win" +reverse\
[ "$var" = "$highlight" ] && zcurses attr "$win" +reverse\
			  || zcurses attr "$win" -reverse
```
... now, just hacking along like we do, I'm saving the original and then editing the first line and I'm not expecting that this is going to turn the whole code into a comment, am I?  

You can argue it either way, but the FACT is that zsh, bash and sh (at least) all have the 'physical line' point of view, so the highlighting should follow the facts not the theory.

Seems weird that this wouldn't have been noticed before tho, so maybe Scintilla doesn't care.


-- 
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-752750025
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201230/be2d10d3/attachment.htm>


More information about the Github-comments mailing list