Skip to content

[BUG] Golang lexer doesn't recognize backtick raw string literals (`) #16609

@etcetra7n

Description

@etcetra7n

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Notepad++ syntax highlighter and doesn't recognize backtick raw string literals in golang

Steps To Reproduce

  1. Write a code in golang. For example:
package main
import "fmt"
func main() {
    fmt.Println("Hello world")
    fmt.Println(`Hello world`)
}

Current Behavior

You will see that the Hello world is not highlighted:
demonstration

Notepad++ thinks the function has ended in this case:
demonstration

Expected Behavior

There should be highlighting as in normal double quote strings in go

Debug Information

not needed

Anything else?

You can make this situation worse be using } inside a backtick string and Notepad++ will think the function as already ended. 😞

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-supportIssues or PRs related to programming languages (also e.g. in styles, themes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions