Skip to content

Extension unable to properly highlight terms after small edits to code #16

@pinecone69

Description

@pinecone69

Tested in visual studio version 17.11.5

In example:

load a Slang file in visual studio with the following code:

int add2(int a, int b) {
    return a + b;
}

int add1(int a, int b) {
    return a + b;
}

void test() {
    int x = 4;
    int y = 2;
    int a = add1(x, y);
}

Now cut out the test function with Ctrl+X, paste it back in any location which actually changes the layout of the code from its previous layout. The colors become all messed up for some terms. Edit a Slang file for a while and syntax highlighting becomes very jumbled.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions