summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/accept/run/tregex.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/accept/run/tregex.nim b/tests/accept/run/tregex.nim
index 43dc8f99c..882f98132 100755
--- a/tests/accept/run/tregex.nim
+++ b/tests/accept/run/tregex.nim
@@ -6,7 +6,8 @@ import
 

 if "keyA = valueA" =~ re"\s*(\w+)\s*\=\s*(\w+)":

   write(stdout, "key: ", matches[0])

-elif "# comment!" =~ re"\s*(\#.*)":

+elif "# comment!" =~ re.re"\s*(\#.*)": 

+  # test re.re"" syntax

   echo("comment: ", matches[0])

 else: 

   echo("Bug!")