8000 Golang run-on string when backticks appear to be escaped · Issue #614 · googlearchive/code-prettify · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
Golang run-on string when backticks appear to be escaped #614
Open
@coreyog

Description

@coreyog

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.

snippet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0