vscode-language-renpy
vscode-language-renpy copied to clipboard
Incorrect syntax highlighting on string concatenation with text tags
Extension version
2.1.1
Issue description
As shown in the image, the + quip +
in both say
calls are highlighted as strings despite not being within quotation marks.
Scope inspector screenshots
Code
label test:
$ quip = "some quiplist choice"
$ renpy.say(m, "{cps=*3}" + quip + "{/cps}")
python:
renpy.say(m, "{cps=*3}" + quip + "{/cps})
return
Awesome, thanks for this. That makes the issue a lot more clear. I'm currently unable to check myself. Could you tell me if this also happens outside of python blocks/$ lines
Sure.
In this case the closing tag not being present is a typo, but we see the behaviour is still present, and will span multiple lines.
Thanks for the update. I'll look into it when I find the time :)