Skip to content

String variable constants are not highlighted #140

Closed

Description

@wmysterio
{$CLEO .cs}
0000:

const

handle = 10@

my_strs1 = 20@s   
my_strs2 = s$str

my_strv1 = 6@v
my_strv2 = v$str

end

0A93: terminate_this_custom_script

Activity

  1. x87 commented on May 10, 2021

    @x87
    Collaborator

    @wmysterio Do you expect my_str* to be blue (as variables) or red (as strings)?

  2. wmysterio commented on May 10, 2021

    @wmysterio
    Author

    @x87 This is a report from Vital. As far as I understood, blue is expected. Color for variables, as in handle = 10@ case.

  3. VitalRus95 commented on May 10, 2021

    @VitalRus95

    Sorry for having @wmysterio send this report instead of me, I was rather busy and only got rid of some routine now.
    I may add that not only string constants, but also expressions constants are not highlighted, both in semantic and non-semantic modes. As for the colour, I expect it to follow the highlighting mode: if it's the semantic one, then strings should be the string colour if it's possible.

    How the issue looks in my case:
    изображение

  4. added
    priority:p3
    type:nice-to-have
    on May 10, 2021
  5. x87 commented on May 10, 2021

    @x87
    Collaborator

    @VitalRus95 try with this version (unzip to SB\lib)
    core.zip

    sanny should highlight them as variables (blue).

    expressions constants are not highlighted

    they probably should not. what color do you expect?

  6. VitalRus95 commented on May 10, 2021

    @VitalRus95

    @x87, thank you, that makes the highlighter see the string constants! Now I also can select them from the list (Ctrl+Space), and I wasn't able to before your fix.
    As for expressions constants, they are still not highlighted at all and not present in the pop-up list. If possible, I think the colour can match the class commands' colour. Thank you once again for your help!

    изображение

  7. added this to the v3.8.0 milestone on Jun 6, 2021
  8. x87 commented on Jun 9, 2021

    @x87
    Collaborator

    expressions constants, they are still not highlighted at all and not present in the pop-up list.

    to be fair, I think this is a quirk in the language and should be avoided. By no means actor.Angle(plr) is a constant.

  9. wmysterio commented on Jun 9, 2021

    @wmysterio
    Author

    By no means actor.Angle(plr) is a constant.

    This entry looks more like some kind of macro than a constant in the usual sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p3scope:IDEtype:nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions