Skip to content

Highlight escaped backticks in a interpolation string correctly #54

@ryyppy

Description

@ryyppy

Given following code:

let a = "abc"


let str = "aaa\"bbb"

Js.log(` \` ccc ${a} ddd  `)


Js.log(`a = ${a}`)

Js.log(``)

let b = 34

let parser = %raw(`
  
adsfadsfzz
`)

Will break the syntax highlighting:

image

We fixed this in rescript-vscode with a negative lookbehind that also matches escaped backticks, but we couldn't get it to work for vim yet.

@amiralies any idea how to solve this? Would be even greater to highlight the escaped backtick in a different color, like in common strings.

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