From fc572f95c250f802c6721f90061125b05422965e Mon Sep 17 00:00:00 2001 From: "Sergio A. Vargas" Date: Mon, 10 Jul 2023 23:27:22 -0500 Subject: [PATCH] Fix code block indentation (#326) The code block has to be indented at the same level as the list elements, otherwise Documenter won't parse it correctly. --- docs/src/design.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/src/design.md b/docs/src/design.md index 737dc31b..1644883c 100644 --- a/docs/src/design.md +++ b/docs/src/design.md @@ -327,16 +327,16 @@ parsing `key=val` pairs inside parentheses. * `let` bindings might be stored in a block, or they might not be, depending on special cases: - ``` - # Special cases not in a block - let x=1 ; end ==> (let (= x 1) (block)) - let x::1 ; end ==> (let (:: x 1) (block)) - let x ; end ==> (let x (block)) - - # In a block - let x=1,y=2 ; end ==> (let (block (= x 1) (= y 2) (block))) - let x+=1 ; end ==> (let (block (+= x 1)) (block)) - ``` + ```julia + # Special cases not in a block + let x=1 ; end # ==> (let (= x 1) (block)) + let x::1 ; end # ==> (let (:: x 1) (block)) + let x ; end # ==> (let x (block)) + + # In a block + let x=1,y=2 ; end # ==> (let (block (= x 1) (= y 2) (block))) + let x+=1 ; end # ==> (let (block (+= x 1)) (block)) + ``` * The `elseif` condition is always in a block but not the `if` condition. Presumably because of the need to add a line number node in the flisp parser