Closed timlyo closed 2 months ago
@timlyo it was caused by Flex during token analysis. Now it's hard for me to fix this problem, and I should rewrite flex logic for this case. Now you should add space, and sorry for this trouble.
thingy := if `true` { `ls` } else { "ls" }
thingy := if `true` { `ls` } else { "ls" }
thingy := if `true` { `ls` } else { "ls" }
thingy := if `true` { `ls` } else { "ls" }
# also not highlighted until next valid block
thingy := if `true` { `ls` } else { "ls" }
# Is highlighted
Lex rewrite with version 0.5.2, please check it.
Just updated, looks like it's fixed. Thankyou.
I've noticed that missing spaces around if/else blocks cause the rest of the file to not be parsed correctly. I've done some experimenting with the line that breaks it and found a minimal setup that replicates, as shown in the image.
I'm on
PyCharm 2023.1.3
and using plugin version0.3.6
.Here's the above in text in case it helps to replicate