From 999f71de1bd7d51c2e2df7f258504009c11514c5 Mon Sep 17 00:00:00 2001 From: Pranjal Raihan Date: Sun, 22 Dec 2024 20:22:30 -0800 Subject: [PATCH] Minor fixes to the doc Summary: Formatting + missing grammar Reviewed By: createdbysk Differential Revision: D67586022 fbshipit-source-id: 3dc68b472a5c4349dfef8feb4f97336bd046dc91 --- .../thrift/src/thrift/doc/contributions/whisker.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/third-party/thrift/src/thrift/doc/contributions/whisker.md b/third-party/thrift/src/thrift/doc/contributions/whisker.md index 17ac0fa2abd3e..147706e65168d 100644 --- a/third-party/thrift/src/thrift/doc/contributions/whisker.md +++ b/third-party/thrift/src/thrift/doc/contributions/whisker.md @@ -193,8 +193,8 @@ Every `expression` produces an `object`. However, not all `object`s are *printab ``` -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)*) } @@ -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+) } ```