summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-12-10 17:47:44 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-12-10 17:47:44 (GMT)
commitf118aeff4651a6cd93c7ee346c45bcd1ce2a8905 (patch)
treec29e8756346b9017fe7dcf8700ee740cc69eec69 /ds9/parsers
parent3aeeb336be684f7a717ceff382e632ae21a84625 (diff)
downloadblt-f118aeff4651a6cd93c7ee346c45bcd1ce2a8905.zip
blt-f118aeff4651a6cd93c7ee346c45bcd1ce2a8905.tar.gz
blt-f118aeff4651a6cd93c7ee346c45bcd1ce2a8905.tar.bz2
add numeric to Contour Levels command
Diffstat (limited to 'ds9/parsers')
-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}