Skip to content

Commit

Permalink
Minor fixes to the doc
Browse files Browse the repository at this point in the history
Summary: Formatting + missing grammar

Reviewed By: createdbysk

Differential Revision: D67586022

fbshipit-source-id: 3dc68b472a5c4349dfef8feb4f97336bd046dc91
  • Loading branch information
praihan authored and facebook-github-bot committed Dec 23, 2024
1 parent f4117b2 commit dc682e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions thrift/doc/contributions/whisker.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ Every `expression` produces an `object`. However, not all `object`s are *printab
<Grammar>

```
interpolation → "{{" ~ expression ~ "}}"
expression → { literal | variable | function-call }
interpolation → { "{{" ~ expression ~ "}}" }
expression → { literal | variable | function-call }
literal → { string-literal | i64-literal | boolean-literal | null-literal }
variable → { "." | (identifier ~ ("." ~ identifier)*) }
Expand Down Expand Up @@ -232,7 +232,9 @@ keyword → {
id_prefix → { alpha | | '_' | '$' }
id_suffix → { alpha | digits | '_' | '$' | '-' | '+' | ':' | '?' | '/' }
builtin-call → { ("not" ~ expression) | (("and" | "or") ~ expression ~ expression ~ expression*) }
builtin-call → {
("not" ~ expression) |
(("and" | "or") ~ expression ~ expression+) }
```

</Grammar>
Expand Down

0 comments on commit dc682e9

Please sign in to comment.