I have a shell script, marked with `#!/bin/sh`, in which a `'` inside a comment confuses geany's syntax parser and makes it believe this comment does not end. The minimal example I can come up with is: ``` #!/bin/sh a=$( # ' echo 'Yo' ) echo 'not a comment!' ``` Note, that outside of `$(...)` the use of `# '` is treated correctly. This is with geany 1.32 (built on 2017-11-21 with GTK 2.24.31, GLib 2.54.0) on archlinux.
The highlighting is performed by the Scintilla editing widget Geany uses which is a separate [project](www.scintilla.org). Please report to their bugtracker so you can be directly linked to responses and queries. Please post a link to the bug here for tracking.
The bug here is actually that `#` is not recognized inside `$(…)`, and thus that the quote is considered never closed. But yeah should be fixed in Scintilla.
ok, done: [#1994](https://sourceforge.net/p/scintilla/bugs/1994/)
It seems this would also be solved by my changes submitted to Scintilla in https://sourceforge.net/p/scintilla/code/merge-requests/22.
github-comments@lists.geany.org