Skip to content

Encountered a highlighting error #7

@TerryLiu

Description

@TerryLiu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions