Skip to content

Ensure possible template tag is actually a template tag #1

@alexlafroscia

Description

@alexlafroscia

Like many people, I have an html template tag set up to highlight the literal it is attached to as HTML.

I happen to have a template string like this in my application:

const indexFile = `${publicPath}/index.html`;

The end of that file path, html, looks like the start of a tagged literal and is confusing vim-tagged-template into thinking that everything after the end of that string should be highlighted as HTML.

My thought is that this plugin should try to ensure that a possible template tag, like html, is actually being called as such; for example, it could ensure that it is not within a string before starting the highlighting logic.

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