DragonKnightOfBreeze / Paradox-Language-Support

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

Parameter of type scope in scripted effects breaks highlighting/does not get inferred by what is passed #45

Closed adriangaro closed 4 months ago

adriangaro commented 1 year ago

image

$from$ is a scope here passed so i can be easily passed and changed to correct scope. syntax highlighting breaks inside it.

DragonKnightOfBreeze commented 1 year ago

The logic to get the CWT config of $from$ is to be determined.

adriangaro commented 1 year ago

Well yes, but in this case $from$ is a parameter, not the scope from so it could be whatever is passed as to said parameter.

DragonKnightOfBreeze commented 12 months ago

We CANNOT get the actual config context in $from$ = {...} because $from$ can be anything, and I think it's unsuitable to infer what $from$ can be by checking all it's usages, to get the inferred config context.

adriangaro commented 8 months ago

Not necessarily to infer the scope type, but mostly fix the highlighting inside it, since no highlighting, nor autocomplete works inside the brackets if changing scope this way.

DragonKnightOfBreeze commented 8 months ago

Shall be reselved by inference from custom cwt configs, but never from usages.