Skip to content

Invalid syntax highlighting for tagged template strings #242

@chocolateboy

Description

@chocolateboy

vim-javascript: 0.10.0 (e9709a9)
vim: 7.4.52
OS: Linux (Ubuntu 14.04.1)

Syntax highlighting doesn't seem to be handling tagged template strings correctly e.g.:

foo(test`foo`, "bar", baz);

- highlights everything up to the closing backtick correctly (i.e. the tag is green and the template and its delimiters are red), but everything after that is green (to the end of the line). This also breaks highlighting for other elements e.g.:

it('highlights tagged templates', function () {
    assert.equal(test`foo`, 'foo');
}); // <- closing curly bracket highlighted in red

- highlights the closing curly bracket as an error (red).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions