[Github-comments] [geany/geany] Bash - Shell Script Colorizer is Broken (#1549)

AdamDanischewski notifications at xxxxx
Wed Jul 19 23:36:54 UTC 2017


I've got a Bash script and it is using arrays (something the other shells don't have, maybe that's why this isn't more thoroughly tested?). It cannot handle nested parenthesis, I'm not sure if this problem is actually Scintilla. 

Here is how to reproduce, enter the following into a file t.bsh: 
```
#!/bin/bash 
declare -a MYARRAY

MYARRAY+=("intentional aor unintentional features")
MYARRAY+=("(intentional aor unintentional) features")
MYARRAY+=("((intentional) aor (unintentional)) errors")
MYARRAY+=("((intentionally) aor (unintentionally)) broken")

echo "this should not look this way" 
```
Then open it in Geany and have a look at the coloring. It breaks on the nested parenthesis in the third array element. 

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


More information about the Github-comments mailing list