diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-12-10 17:47:44 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-12-10 17:47:44 (GMT) |
commit | f118aeff4651a6cd93c7ee346c45bcd1ce2a8905 (patch) | |
tree | c29e8756346b9017fe7dcf8700ee740cc69eec69 /ds9/parsers | |
parent | 3aeeb336be684f7a717ceff382e632ae21a84625 (diff) | |
download | blt-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.tac | 9 |
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} |