renpy / vscode-language-renpy

Ren'Py extension for Visual Studio Code
Other
106 stars 22 forks source link

Persistent variables containing underscores are not properly detected sometimes #451

Open m-from-space opened 2 months ago

m-from-space commented 2 months ago

Here is an example of the issue:

persistent_bug

default persistent.VARIABLE = True
default persistent.SOME_VARIABLE = True
default persistent.SOME_OTHER_VARIABLE = True

label start:

    $ v = persistent.VARIABLE

    $ v = persistent.SOME_VARIABLE

    $ v = persistent.SOME_OTHER_VARIABLE

    $ v = (persistent.SOME_OTHER_VARIABLE)

    $ persistent.SOME_OTHER_VARIABLE = False

    $ persistent.NON_EXISTENT = False

    return