[Github-comments] [geany/geany] syntax highlighting does not end comment in #!/bin/sh file (#1754)

deep-42-thought notifications at xxxxx
Mon Jan 29 15:12:23 UTC 2018


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.

-- 
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/1754
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180129/33b8e3a8/attachment.html>


More information about the Github-comments mailing list