mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
Adds idetools failure case for re"" being reported as a module.
This commit is contained in:
@@ -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+)=(.*)"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user