Closed stefanos82 closed 3 years ago
I think it is expected.
you need to use ##[[ ]]
syntax for multiline preprocess
Indeed; good catch @codehz
Indeed, however it doesn't need the ##
at the end, just ##[[ ]]
works¹, it follows the same rules as comments actually, so ##[==[ ]==]
can be used to avoid some [[ ]]
conflict²:
¹ https://nelua.io/overview/#preprocessor ² https://nelua.io/overview/#preprocessor-code-blocks
Bug description
When I place the closing parenthesis of
## print()
in a new line, it breaks.I'm trying to print the type(s) of nested
record
s and caused a bug by mistake.Code example
Provide minimal reproduction code to test the bug. Please, format the code properly and try to keep it as simple as possible, just focusing on the experienced bug.
The problematic code looks like this:
Expected behavior
It should print
Workaround
If you have already found a way to workaround the issue, then please share how you did it, this may help others with the same issue.
Environment
Provide relevant information about your environment:
Linux debian 5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux
gcc (Debian 10.2.1-6) 10.2.1 20210110