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

Broken highlights in go files when using raw string literal in some cases #33

Open
alexr00 opened this issue Jun 8, 2022 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Jun 8, 2022

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Open an empty Go file
  2. Paste this code:
package main

import (
	"fmt"
)

func main() {
	var a interface{} = []byte(`{"a": "When only 1 line it's ok."}`)
	fmt.Println(a)
	var b interface{} = []byte(`{
		"b": "But when multiple lines highlighting is broken."
	}`)
	fmt.Println(b)
	// And only one more ` will stop it...
}

Github highlights it correctly but here's how VS Code does it:

image

Originally from @DimaGashko in microsoft/vscode#141360

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

No branches or pull requests

1 participant