Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to correctly trigger highlighted code block in layout uniform variables. #187

Open
BlackdBlook opened this issue Jan 8, 2024 · 1 comment
Labels

Comments

@BlackdBlook
Copy link

Unable to correctly trigger highlighted code block in layout uniform variables.

Wrong highlighting behavior

image

I got a .vert file like this

#version 460 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;
layout (location = 2) in vec2 aTexCoords;

out vec3 FragPos;
out vec3 Normal;
out vec2 TexCoords;

uniform mat4 model;

layout (shared) uniform Matrices
{
    mat4 view;
    mat4 projection;
    mat4 lightSpaceMatrix;
};

void main()
{
    FragPos = vec3(model * vec4(aPos, 1.0));
    Normal = mat3(transpose(inverse(model))) * aNormal;
    TexCoords = aTexCoords;

    gl_Position = projection * view * vec4(FragPos, 1.0);
}

When I seleced the variable in Matrices, other reference code cannot be highlighted like the other normal uniform variable

Expected behavior

Selecting variables in the Matrices block in the editor, other reference codes are not highlighted correctly.
Expected bright results

Versions

  • IDE: JetBrains Rider 2023.3.2 #RD-233.13135.100
  • Plugin: 1.24

Is this a problem of rider ?

@BlackdBlook BlackdBlook added the bug label Jan 8, 2024
@Darkyenus
Copy link
Owner

Yeah, that looks like a bug in the plugin. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants