vscode-language-renpy icon indicating copy to clipboard operation
vscode-language-renpy copied to clipboard

Missing highlighting for custom keywords

Open multimokia opened this issue 1 year ago • 2 comments

Extension version

2.1.2

Issue description

Custom defined expressions don't have highlighting for their keyword, nor associated keywords (i.e. expression), for example: image

Where jarg is a variation on jump which allows args, it'd be nice if custom expressions were consistent with builtins for how they're highlighted.

Scope inspector screenshots

image image image

Code

Definition code here: https://github.com/Monika-After-Story/MonikaModDev/pull/9413/files#diff-625c1ad3cf06b07c6a42d812c5faa1df8443d2bd22d8270fdc0e61d735021f02

For the in-rpy view:

label test:
    call expression "dev_unit_test_jump_with_args_depth_2" pass ("a", "b")
    jarg expression "dev_unit_test_jump_with_args_depth_2" pass ("brand_new_foo_value", "brand_new_bar_value")

multimokia avatar Sep 20 '22 16:09 multimokia

"jarg" is not a valid RenPy keyword. Is it a creator defined statement? The extension doesn't have a lot of support for those yet.

rdurfee avatar Sep 20 '22 16:09 rdurfee

Yes, that is what I meant by custom keyword, I guess in a sense this is more of a feature req, my mistake

multimokia avatar Sep 21 '22 05:09 multimokia