summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/cmapparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-23 17:34:57 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-23 17:34:57 (GMT)
commit59ccc64f5baf0ecae38e99d21c338b9106125cad (patch)
treef418543771f838ff2f41072f48350f80cb7eb4ae /ds9/parsers/cmapparser.tac
parente27a7c45807da42ffd5cba644f415956672b13ab (diff)
downloadblt-59ccc64f5baf0ecae38e99d21c338b9106125cad.zip
blt-59ccc64f5baf0ecae38e99d21c338b9106125cad.tar.gz
blt-59ccc64f5baf0ecae38e99d21c338b9106125cad.tar.bz2
update ds9 parsers
Diffstat (limited to 'ds9/parsers/cmapparser.tac')
-rw-r--r--ds9/parsers/cmapparser.tac5
1 files changed, 4 insertions, 1 deletions
diff --git a/ds9/parsers/cmapparser.tac b/ds9/parsers/cmapparser.tac
index 5327ff6..66eb2c1 100644
--- a/ds9/parsers/cmapparser.tac
+++ b/ds9/parsers/cmapparser.tac
@@ -31,16 +31,19 @@ command : cmap
cmap : STRING_ {CmapCmd $1}
| OPEN_ {ColormapDialog}
| CLOSE_ {ColormapDestroyDialog}
+
# backward compatibility
| MATCH_ {MatchColorCurrent}
-# backward compatibility
| LOCK_ yesno {global colorbar; set colorbar(lock) $2; LockColorCurrent}
+
| LOAD_ cmapLoad
# backward compatibility
| FILE_ cmapLoad
+
| SAVE_ STRING_ {SaveColormapFile $2; FileLast colormapfbox $2}
| INVERT_ yesno {global colorbar; set colorbar(invert) $2; InvertColorbar}
| TAG_ cmapTag
+
| numeric numeric {CmapValueCmd $1 $2}
# backward compatibility
| VALUE_ numeric numeric {CmapValueCmd $2 $3}