From 963259d6e3a2dc60762f05a0897fdb9aca5cd114 Mon Sep 17 00:00:00 2001 From: Wookey Date: Tue, 1 Jul 2014 02:26:26 +0100 Subject: [PATCH] Allow comma in starcommands (*,fix) (comma is default valid *set blank) --- parsers/survex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/survex.py b/parsers/survex.py index e5d6e5f..1450255 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -116,7 +116,7 @@ def RecursiveLoad(survexblock, survexfile, fin, textlines): continue # detect the star command - mstar = re.match('\s*\*\s*(\w+)\s*(.*?)\s*(?:;.*)?$', sline) + mstar = re.match('\s*\*[\s,]*(\w+)\s*(.*?)\s*(?:;.*)?$', sline) if not mstar: if "from" in stardata: LoadSurvexLineLeg(survexblock, stardata, sline, comment)