Skip to content

Commit

Permalink
Give the tsAngleOpen token a name
Browse files Browse the repository at this point in the history
FIX: Fix a bug where some TypeScript `<` tokens didn't appear in the syntax tree.

Closes #43
  • Loading branch information
marijnh committed Dec 3, 2024
1 parent 30f42b3 commit d10ec79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/javascript.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ intersectionOp[@name=LogicOp] { "&" }

JSXText { ![<{]+ }

tsAngleOpen[@dialect=ts] { "<" }
tsAngleOpen[@dialect=ts,@name="<"] { "<" }
}

@external tokens insertSemicolon from "./tokens" { insertSemi }
Expand Down

0 comments on commit d10ec79

Please sign in to comment.