Skip to content

Encountered a highlighting error #3764

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

Open
TerryLiu opened this issue May 9, 2025 · 1 comment
Open

Encountered a highlighting error #3764

TerryLiu opened this issue May 9, 2025 · 1 comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@TerryLiu
Copy link

TerryLiu commented May 9, 2025

Image

I have the following code and encountered a highlighting error:

func FilterSQL(oldStr string) string {
mg:= map[string]string{
`'`:"",
`\`:"",
}
for key, val := range mg {
oldStr = strings.ReplaceAll(oldStr, key, val)

}

return oldStr;

}


`'`:"" Syntax highlighting error on this line, change it to "\\":"" syntax highlighting will work, please fix it. Thanks!

My "Go" plugin version:
0.46.1
Last Updated
2025-03-31, 13:44:00

My "vscode-go-syntax" plugin version:
0.0.18
Last Updated
2023-12-05, 10:36:37

@gopherbot gopherbot added this to the Untriaged milestone May 9, 2025
@h9jiang
Copy link
Member

h9jiang commented May 16, 2025

Thank you for raising this issue.

If I have both the extension installed, then I can see the error you are observing. See screenshot

Image

However, if I uninstall the vscode-go-syntax extension, the highlighting come back to normal.

Image

So I think it's the vscode-go-syntax extension's issue. I suggest you can uninstall that extension and try to see if the issue persist.

@h9jiang h9jiang added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants