From 5059c081ac624ede925d5256885509ddd17181c6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 30 Dec 2018 23:58:47 -0800 Subject: Auto-upgraded code. --- tools/test.nom | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/test.nom') diff --git a/tools/test.nom b/tools/test.nom index 0202675..1e135db 100755 --- a/tools/test.nom +++ b/tools/test.nom @@ -13,7 +13,12 @@ for $filename in $(COMMAND LINE ARGS).extras: use $filename $tests = {: for $s = $t in $TESTS: add (=lua "Source:from_string(\$s)") = $t} for $filename in $(COMMAND LINE ARGS).extras: $file = (read file $filename) - $version = ($file, matching "#![^\n]* nomsu %-V[ ]*([^\n]*)") + $version = + $file, matching (" + #![^ + ]* nomsu %-V[ ]*([^ + ]*) + ") $file_tests = [] for $src = $test in $tests: if ($src.filename == $filename): -- cgit v1.2.3