DragonKnightOfBreeze / Paradox-Language-Support

IDEA Plugin: Paradox Language Support.
https://windea.icu/Paradox-Language-Support
MIT License
36 stars 4 forks source link

Single quotes strings seem to not be accepted by the plugin as valid, while the game does not mind them #65

Closed adriangaro closed 3 months ago

adriangaro commented 4 months ago

Some examples

image

image

Usecase is passing nested blocks of code/triggers that might contain themselves other quoted strings, since escaping quotes does not always work when passed through multiple layers of inlines.

DragonKnightOfBreeze commented 4 months ago

I even do not known thst single quotes can also be used to quote strings, are you tested in real game?

adriangaro commented 4 months ago

Yeah I have tested in game and no errors appeared in logs, and the logic seems to have worked/triggered in game, which i assume means it is valid xD

To be frank i had the same assumption as you, as they were never used in vanilla, but seems to work and makes my life easier to escape quote escaping hell.

isd-1 commented 4 months ago

in scripted_effects ?

adriangaro commented 4 months ago

Seems to work in inlines at least, unsure about scripted_effects, but can check and test.

adriangaro commented 3 months ago

An late update to this, this ticket can probably be closed, as it seems to not be consistent and in some cases cause crashes if using single quotes.