Skip to content

Bug: Macro variables are coloured inconsistently  #5

Open

Description

@DorkOrc

What type of issues are you dealing with?

No response

What happened?

The colour of macro $(variables) is different depending on what kind of text they are embedded in.
In my example, the former will appear blue and cyan, and the latter will appear orange and green.

Which text editors are you seeing the problem on?

VSCode

Include a code snippet

$scoreboard players get $(name) home_$(home)_x

Activity

  1. rx-dev commented on Jan 23, 2024

    @rx-dev
    Collaborator

    Somehow missed this but I'll say this is pretty tricky to solve since macros are just string replacements. Since they can appear in the middle of any token, It's basically impossible for me to consider that unless I use some sort of nested syntax definitions similar to jinja templates

  2. reopened this on Jun 28, 2024
  3. rx-dev commented on Jun 28, 2024

    @rx-dev
    Collaborator

    i changed my mind, i might have special highlighting within $macro lines

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions