Skip to content

JavaScript files still reject a bare \u/\x in tagged templates (String.raw\usepackage) #23

Open

Description

@inth3shadows

PR #22 fixed this for .ts/.tsx (our tree-sitter-typescript fork 7dbdfae, fork #15 / upstream tree-sitter-typescript#353). .js/.mjs/.cjs/.jsx still use upstream tree-sitter-javascript.wasm, so const a = String.raw\\usepackage`;` in a .js file parses with an ERROR inside the template_string and loses the String.raw call edge (found in PR #22 review). Fix would be the same template-only escape token in tree-sitter-javascript, or document the limit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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