Closed sja closed 2 years ago
In the same vein: … := if …
throws off the parser, as well as one-liner if-else constructs. See here:
For reproduction:
export TEST1 := if os() == 'x' { 'y' } else { 'z' }
export TEST2 := if os() == 'x' { `echo a` } else { `echo b` }
Sorry to say, but in the plugin's current state we're better off with the GNU Makefile file type.
I bumped into this issue too w/ IDEA 2022.1.1
At first I thought it was an issue with just until I realized the file works but its the plugin that marks it as invalid 😅
Yes, it's a bug, and fixed already. I have uploaded a new version to JetBrains plugin marketplace, and it will be available in 1-2 days.
Example:
The parser gives an error here between
VAR_A
and+
:I'm using 0.2.1 with GoLand 2022.1.