Skip to content

grammar: vendor tree-sitter-typescript fork 7dbdfae (bare \x/\u template escapes) - #22

Merged
inth3shadows merged 2 commits into
mainfrom
grammar/fork-7dbdfae
Nov 7, 2026
Merged

inth3shadows merged 2 commits into
mainfrom
grammar/fork-7dbdfae

Conversation

@inth3shadows

Copy link
Copy Markdown
Owner

Vendors inth3shadows/tree-sitter-typescript 7dbdfae (fork PR #24, closes fork #15 / upstream colbymchenry#353) per docs/grammars/tree-sitter-typescript.md "Moving to a newer fork commit".

  • Template strings and template literal types accept a bare \x/\u: String.raw\\usepackage`parses;f<`\u`>(1)` is a call. Strings still reject it.
  • Differential: effect 3 -> 2 (Json5.test.ts agrees), total 3 -> 2, 0 new / 0 worse (baseline re-written).
  • Grammar tests (kernel parity, member ASI, variance, fork shapes): 52/52. Full suite: 11112 passed, 0 failed.
  • New shape tests pin the escape nodes, the String.raw call edge, f<\\u`>(1)` as a call, and strings still erroring.
  • build.rs comment hashes were stale since 9ce21f8; now match the vendored files.

…ate escapes)

Fork PR #24 (fork #15, upstream colbymchenry#353): template strings and template literal
types accept a bare \x or \u, so String.raw`\usepackage` parses and
f<`\u`>(1) stays a call. Strings still reject it.

Differential: effect 3 -> 2 (Json5.test.ts agrees), total 3 -> 2, 0 new / 0 worse.
Grammar tests 52/52 incl. kernel parity; full suite 11112 passed, 0 failed.
build.rs comment hashes were stale since 9ce21f8; now match the vendored files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant