From 2f0f1d0a3fcd462a5ff3273a6d414c6e8944d8ac Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Sat, 6 Jul 2013 20:20:58 +0200 Subject: [PATCH] Adds idetools failure case for re"" being reported as a module. --- tests/caas/idetools_api.nim | 3 ++- tests/caas/idetools_api.txt | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/caas/idetools_api.nim b/tests/caas/idetools_api.nim index 7d27ffdf82..8f1061e272 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 3a350f60ba..035590dc37 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