Adds missing `code-block` to macros' docstrings.
This commit is contained in:
parent
543d6b3209
commit
f46336ae8b
1 changed files with 4 additions and 0 deletions
|
|
@ -268,6 +268,8 @@ proc quote*(bl: stmt, op = "``"): PNimrodNode {.magic: "QuoteAst".}
|
|||
##
|
||||
## Example:
|
||||
##
|
||||
## .. code-block:: nimrod
|
||||
##
|
||||
## macro check(ex: expr): stmt =
|
||||
## # this is a simplified version of the check macro from the
|
||||
## # unittest module.
|
||||
|
|
@ -290,6 +292,8 @@ template emit*(e: expr[string]): stmt =
|
|||
## that should be inserted verbatim in the program
|
||||
## Example:
|
||||
##
|
||||
## .. code-block:: nimrod
|
||||
##
|
||||
## emit("echo " & '"' & "hello world".toUpper & '"')
|
||||
##
|
||||
eval: result = e.parseStmt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue