summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-12-10 17:35:51 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-12-10 17:35:51 (GMT)
commit3aeeb336be684f7a717ceff382e632ae21a84625 (patch)
tree2d15dbfbb39b77ae154cb657a05e6d826dcc1fc2
parent0547b5a2812d3cb85b76c6ab53f4d54f1beaed95 (diff)
downloadblt-3aeeb336be684f7a717ceff382e632ae21a84625.zip
blt-3aeeb336be684f7a717ceff382e632ae21a84625.tar.gz
blt-3aeeb336be684f7a717ceff382e632ae21a84625.tar.bz2
add numeric to Contour Levels command
-rw-r--r--ds9/parsers/contourparser.tac7
1 files changed, 5 insertions, 2 deletions
diff --git a/ds9/parsers/contourparser.tac b/ds9/parsers/contourparser.tac
index 5366b40..3647f31 100644
--- a/ds9/parsers/contourparser.tac
+++ b/ds9/parsers/contourparser.tac
@@ -87,11 +87,14 @@ 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_ numeric {ContourCmdLevels $2}
+ | LEVELS_ levels
| GENERATE_ {ContourDialog; ContourGenerateDialog; UpdateContour}
;
+levels : STRING_ {ContourCmdLevels $1}
+ | numeric {ContourCmdLevels $1}
+ ;
+
load : STRING_ {ContourCmdLoad $1}
| LEVELS_ STRING_ {ContourCmdLoadLevels $2}
# backward compatibility