summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-11-10 15:29:53 +0100
committerAraq <rumpf_a@web.de>2015-11-10 15:31:21 +0100
commit2aff71613464a27558c9e90cf85f038c240babb2 (patch)
treec248fb8aa2bad7f9f72f337b1155b31e36947ad9 /compiler/vmgen.nim
parent81f876040b3f301eff1cc49fcc3812c040086664 (diff)
downloadNim-2aff71613464a27558c9e90cf85f038c240babb2.tar.gz
os.walkDir is available at compile time
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 97c6a5580..2a16406e7 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -1604,7 +1604,8 @@ proc matches(s: PSym; x: string): bool =
   var s = s
   var L = y.len-1
   while L >= 0:
-    if s == nil or y[L].cmpIgnoreStyle(s.name.s) != 0: return false
+    if s == nil or (y[L].cmpIgnoreStyle(s.name.s) != 0 and y[L] != "*"):
+      return false
     s = s.owner
     dec L
   result = true
@@ -1613,7 +1614,8 @@ proc matches(s: PSym; y: varargs[string]): bool =
   var s = s
   var L = y.len-1
   while L >= 0:
-    if s == nil or y[L].cmpIgnoreStyle(s.name.s) != 0: return false
+    if s == nil or (y[L].cmpIgnoreStyle(s.name.s) != 0 and y[L] != "*"):
+      return false
     s = if sfFromGeneric in s.flags: s.owner.owner else: s.owner
     dec L
   result = true