Sample Header Ad - 728x90

nano highlighting fails in matching shell array brackets

0 votes
1 answer
157 views
The last two array expansions don't get proper highlighting: ![](https://i.sstatic.net/kaCE7.png) This is the setting in sh.nanorc that defines it: # More complicated variable names; handles braces and replacements and arrays. color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:space:]]*[[:alnum:]_]+[[:space:]]*|@)\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})" What do I have to fix in the regex to catch this miss?
Asked by Multifix (145 rep)
Jul 7, 2022, 07:56 AM
Last activity: Jul 7, 2022, 08:22 AM