Closed blackeyedpony closed 3 months ago
Regex is not used for f-strings, as I was told by @eitherys... Well it's also obvious from the source code.
@blackeyedpony There will be a fix for this but you will have to escape the >
character inside the outer <>
brackets, so instead of ->
it will have to be -\>
.
ah ok. I didn't look at your code yet. Nevertheless, the string formatting is a very handy addition, thanks Mario!
All the thanks goes to @eitherys who actually coded it :)
@blackeyedpony Try the latest commit!
This was fixed but that commit contained an error I didn't test; a new commit is on the way that also adds support explicitly for ->
without the use of an escape. So your original code compiles now on my end.
It would be nice if you could get this to work:
the precompiler fails to recognise the "->" keyword and stops the variable insertion at the first found ">" and logically comes up with: message("test slider value: " & sl - & " value>") Could you try changing the insertion regex to span to [^-]> ?