summary refs log tree commit diff stats
path: root/compiler/parser.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-16 21:40:54 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-16 21:40:54 +0100
commit2e71bd50b26e6165121a3076f7dc70175e9f1f55 (patch)
treeb52a9f1361323889b31b8289ae5b6138aacca09d /compiler/parser.nim
parent2910096ccec456aa6493d06c9cc36bb70acd2988 (diff)
downloadNim-2e71bd50b26e6165121a3076f7dc70175e9f1f55.tar.gz
implements multi-line-comments; pounds are stripped from the doc comments
Diffstat (limited to 'compiler/parser.nim')
-rw-r--r--compiler/parser.nim7
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index eb0ef071d..c4681a5cd 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -112,12 +112,7 @@ proc rawSkipComment(p: var TParser, node: PNode) =
   if p.tok.tokType == tkComment:
     if node != nil:
       if node.comment == nil: node.comment = ""
-      if p.tok.literal == "[]":
-        node.flags.incl nfIsCursor
-        #echo "parser: "
-        #debug node
-      else:
-        add(node.comment, p.tok.literal)
+      add(node.comment, p.tok.literal)
     else:
       parMessage(p, errInternal, "skipComment")
     getTok(p)