Commit b38aa73
Add :> (unchecked cast) operator to tree-sitter grammar
Summary:
The eqwalizer unchecked cast macro expands to (Expr :> Type), but tree-sitter
did not recognize :> as a valid token, causing parse errors. This extends
ann_var to accept choice('::', ':>') so both checked and unchecked casts parse
correctly.
Reviewed By: alanz
Differential Revision: D100770553
fbshipit-source-id: a14f816f75128377a34c7f0b8df101e17d78a75e1 parent c60f720 commit b38aa73
6 files changed
Lines changed: 21947 additions & 21900 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments