summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-12-18 02:20:35 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-12-18 21:22:22 +0100
commitf46336ae8bdddb7f3a6da4904aae18f99bc34f6f (patch)
tree0541445d521f2b987261ba16bce49cbc6c3c0da6
parent543d6b3209b4f106e3ead63d5d88fda87db64de6 (diff)
downloadNim-f46336ae8bdddb7f3a6da4904aae18f99bc34f6f.tar.gz
Adds missing ``code-block`` to macros' docstrings.
-rw-r--r--lib/core/macros.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index d01d4ebee..5f0d60e5c 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -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
t <hut@lavabit.com> 2009-12-10 01:37:14 +0100 committer hut <hut@lavabit.com> 2009-12-10 01:37:14 +0100 Restructuration' href='/akspecs/ranger/commit/ranger/fm.py?h=v1.9.0b4&id=871c502d58055c7611f0763eaa71a7fafad7efdc'>871c502d ^
0c0b9489 ^




f8e96a97 ^

871c502d ^

6874e0ea ^
9506fb8e ^
f6910552 ^
9506fb8e ^
d88232a3 ^

9506fb8e ^
d88232a3 ^
871c502d ^





9506fb8e ^
d88232a3 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50