You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
I came across this answer's code snippet. In Golang, strings enclosed in backticks are taken as a raw string. It doesn't parse for escape sequences. The code formatter erroneously colors the rest of the code as if it were in a multi-line string literal.
This is true even if you explicitly specify the language as golang. Java's formatter gets it right. Java doesn't use backtick strings so it's not a fair comparison.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Originally posted on MetaSO.
I came across this answer's code snippet. In Golang, strings enclosed in backticks are taken as a raw string. It doesn't parse for escape sequences. The code formatter erroneously colors the rest of the code as if it were in a multi-line string literal.
This is true even if you explicitly specify the language as golang.
Java's formatter gets it right.Java doesn't use backtick strings so it's not a fair comparison.The text was updated successfully, but these errors were encountered: