From 36cf87e6a97b300a65a986a494801860cc1d5991 Mon Sep 17 00:00:00 2001 From: JamesP Date: Wed, 14 Oct 2015 09:11:19 +1000 Subject: [PATCH] add {.pop.} for {.push debugger:off.} to balance push/pop --- lib/pure/strutils.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index a78fed4b91..b61df60861 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -22,6 +22,8 @@ import parseutils include "system/inclrtl" +{.pop.} + type CharSet* {.deprecated.} = set[char] # for compatibility with Nim {.deprecated: [TCharSet: CharSet].} @@ -1660,7 +1662,7 @@ when isMainModule: doAssert isAlpha("Rasp") doAssert isAlpha("Args") doAssert(not isAlpha("$Tomato")) - + doAssert isAlphaNumeric('3') doAssert isAlphaNumeric('R') doAssert(not isAlphaNumeric('!'))