Skip to content

Commit

Permalink
Update partial block grammar with captures
Browse files Browse the repository at this point in the history
Summary: These are already documented *and* implemented. We're simply updating the grammar to match reality.

Reviewed By: vitaut

Differential Revision: D69271420

fbshipit-source-id: 21a9d83c303da1a5c339b352bb8fd17777d27d68
  • Loading branch information
praihan authored and facebook-github-bot committed Feb 7, 2025
1 parent 9212e60 commit 7862103
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion third-party/thrift/src/thrift/doc/contributions/whisker.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,14 @@ Hello world!

```
partial-block → { partial-block-open ~ body* ~ partial-block-close }
partial-block-open → { "{{#" ~ "let" ~ partial-name-spec ~ partial-block-arguments? ~ "}}" }
partial-block-open → { "{{#" ~ "let" ~
partial-name-spec ~
partial-block-arguments? ~
partial-block-captures? ~
"}}" }
partial-name-spec → { "export"? ~ "partial" ~ identifier }
partial-block-arguments → { "|" ~ identifier+ ~ "|" }
partial-block-captures → { "as" ~ "|" ~ identifier+ ~ "|" }
partial-block-close → { "{{/" ~ "let" ~ "partial" ~ "}}" }
partial-statement → { "{{" ~ "#" ~ "partial" ~ expression ~ partial-argument* ~ "}}" }
Expand Down

0 comments on commit 7862103

Please sign in to comment.