summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-07-06 20:20:58 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-07-06 20:20:58 +0200
commit2f0f1d0a3fcd462a5ff3273a6d414c6e8944d8ac (patch)
treeeac57c95d6ecb31c7b78fd962bfd7c77c3e29aff /tests
parentbaf4f8c9ebcf542fad62275f1513fd7ed62e777d (diff)
downloadNim-2f0f1d0a3fcd462a5ff3273a6d414c6e8944d8ac.tar.gz
Adds idetools failure case for re"" being reported as a module.
Diffstat (limited to 'tests')
-rw-r--r--tests/caas/idetools_api.nim3
-rw-r--r--tests/caas/idetools_api.txt5
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/caas/idetools_api.nim b/tests/caas/idetools_api.nim
index 7d27ffdf8..8f1061e27 100644
--- a/tests/caas/idetools_api.nim
+++ b/tests/caas/idetools_api.nim
@@ -1,4 +1,4 @@
-import unicode, sequtils, macros
+import unicode, sequtils, macros, re
 
 proc test_enums() =
   var o: Tfile
@@ -81,3 +81,4 @@ proc testMacro() =
     err()
 
 testMacro()
+let notAModule = re"(\w+)=(.*)"
diff --git a/tests/caas/idetools_api.txt b/tests/caas/idetools_api.txt
index 3a350f60b..035590dc3 100644
--- a/tests/caas/idetools_api.txt
+++ b/tests/caas/idetools_api.txt
@@ -52,3 +52,8 @@ def\tskLabel\t$MODULE.findVowelPosition.loops\t\t
 # Displaced macro usage by one character.
 > idetools --track:$TESTNIM,80,2 --def $SILENT
 def\tskMacro\t$MODULE.expect\tproc \(varargs\[expr\], stmt\): stmt\t
+
+# The syntax for extended raw string literals should not be returned as module
+# but as the proc re() inside the re module.
+> idetools --track:$TESTNIM,84,17 --def $SILENT
+!def\tskModule