Skip to content

Commit

Permalink
Fix code block indentation (#326)
Browse files Browse the repository at this point in the history
The code block has to be indented at the same level as the list
elements, otherwise Documenter won't parse it correctly.
  • Loading branch information
savq authored Jul 11, 2023
1 parent 3fe86d3 commit fc572f9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/src/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc572f9

Please sign in to comment.