diff options
Diffstat (limited to 'ds9/parsers/contourparser.tac')
-rw-r--r-- | ds9/parsers/contourparser.tac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ds9/parsers/contourparser.tac b/ds9/parsers/contourparser.tac index 11384f2..417b06b 100644 --- a/ds9/parsers/contourparser.tac +++ b/ds9/parsers/contourparser.tac @@ -87,10 +87,19 @@ contour : yesno {ProcessCmdSet contour view $1 UpdateContour} | MODE_ modes | SCOPE_ scope {ContourCmdMode scope $2} | LIMITS_ numeric numeric {ContourCmdLimits $2 $3} - | LEVELS_ STRING_ {ContourCmdLevels $2} + | LEVELS_ levels | GENERATE_ {ContourDialog; ContourGenerateDialog; UpdateContour} ; +levels : numerics {ContourCmdLevels $1} +# backward compatible + | STRING_ {ContourCmdLevels $1} + ; + +numerics : numerics numeric {append _ " $2"} + | numeric + ; + load : STRING_ {ContourCmdLoad $1} | LEVELS_ STRING_ {ContourCmdLoadLevels $2} # backward compatibility |