Changeset: 82f1737a0541 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=82f1737a0541
Modified Files:
        testing/malcheck.py
Branch: Oct2014
Log Message:

Remove comments from MAL files before processing.


diffs (11 lines):

diff --git a/testing/malcheck.py b/testing/malcheck.py
--- a/testing/malcheck.py
+++ b/testing/malcheck.py
@@ -50,6 +50,7 @@ pdecls = {}
 def process(f):
     data = open(f).read()
     if f.endswith('.mal'):
+        data = re.sub(r'[ \t]*#.*', '', data) # remove comments
         res = comreg.search(data)
         while res is not None:
             malf, args, rets, func = res.groups()
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to