`Unresolved variable` inspection does not support `$''foo''` syntax
IDEA 2024.3.5 / BashSupport Pro 4.6.3.243 |
|---|
|
@5HT2 Thanks for reporting!
Similar to #200 , I couldn't find anything about $''...'' in the Zsh documentation. https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Shell-Grammar
I know about $'...', which suppports escaping in single quotes, but I haven't seen any use of double-single-quoted stings yet.
Is there any documentation you're aware of about this syntax? That would help to understand and support it. Thanks!
@5HT2 I was distracted by the $''...'' syntax and didn't notice your reference to the error "$fNew is referenced but not assigned" error.
If I paste the snippet you provided into a .zsh file, then I don't see the error. Does the snippet work for you too if you paste into a new file?
It's possible that the context of the original file around the copied snippet is breaking the parsing. If possible, could you provide more lines before and after the snippet to help me reproduce?