summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/contourparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/contourparser.tac')
-rw-r--r--ds9/parsers/contourparser.tac9
1 files changed, 7 insertions, 2 deletions
diff --git a/ds9/parsers/contourparser.tac b/ds9/parsers/contourparser.tac
index 3647f31..417b06b 100644
--- a/ds9/parsers/contourparser.tac
+++ b/ds9/parsers/contourparser.tac
@@ -91,8 +91,13 @@ contour : yesno {ProcessCmdSet contour view $1 UpdateContour}
| GENERATE_ {ContourDialog; ContourGenerateDialog; UpdateContour}
;
-levels : STRING_ {ContourCmdLevels $1}
- | numeric {ContourCmdLevels $1}
+levels : numerics {ContourCmdLevels $1}
+# backward compatible
+ | STRING_ {ContourCmdLevels $1}
+ ;
+
+numerics : numerics numeric {append _ " $2"}
+ | numeric
;
load : STRING_ {ContourCmdLoad $1}