Attachment 'idl-1.3.5-1.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - idl Source Parser
4
5 Calling Sequence:
6 {{{#!idl
7 pro helloworld
8 print, 'hello world'
9 end
10 }}}
11
12 learned from cpluplus and pascal parser
13
14 @copyright: 2005 Reimar Bauer <R.Bauer@fz-juelich.de>
15 @license: GNU GPL, see COPYING for details.
16
17
18 """
19 import string
20 from MoinMoin.util.ParserBase import ParserBase
21
22 Dependencies = []
23
24 class Parser(ParserBase):
25
26 parsername = "ColorizedIdl"
27 extensions = ['.pro']
28 Dependencies = []
29
30 def __init__(self, raw, request, **kw):
31 ParserBase.__init__(self,raw,request,**kw)
32 self._ignore_case = 1
33
34 def setupRules(self):
35 ParserBase.setupRules(self)
36
37
38 self.addRule("Comment",";.*$")
39 #self.addRule("Char",r"'\\.'|'[^\\]'")
40 self.addRule("Number",r"[0-9](\.[0-9]*)?(eE[+-][0-9])?[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?")
41 #self.addRule("Preprc",r"^\s*#(.*\\\n)*(.*(?!\\))$")
42 self.addRule("ID","[a-zA-Z_][0-9a-zA-Z_]*")
43 #self.addRule("SPChar",r"[~!%^&*()+=|\[\]:,.<>/?{}-]")
44 self.addRule("SPChar",r"[&()|\[\]{}]")
45 self.addRulePair("String",'\'','\'')
46
47 reserved_words = ['axis','beep','blas_axpy','breakpoint','byteorder','catch','cd','cdf_attdelete','cdf_attget','cdf_attinq','cdf_attput',
48 'cdf_attrename','cdf_close','cdf_compression','cdf_control','cdf_delete','cdf_doc','cdf_epoch','cdf_lib_info','cdf_vardelete',
49 'cdf_varget','cdf_varget1','cdf_varput','cdf_varrename','choldc','close','color_convert','constrained_min','contour','copy_lun',
50 'cpu','cursor','decode_gif','decode_packbits','define_key','define_msgblk','defsysv','delvar','device','df24_addimage','df24_getimage',
51 'df24_readref','df24_restart','dfan_addfds','dfan_addfid','dfan_getdesc','dfan_getfds','dfan_getfid','dfan_getlabel','dfan_putdesc',
52 'dfan_putlabel','dfpmin','dfp_addpal','dfp_getpal','dfp_putpal','dfp_readref','dfp_restart','dfp_writeref','dfr8_addimage',
53 'dfr8_getimage','dfr8_putimage','dfr8_readref','dfr8_restart','dfr8_setpalette','dfsd_adddata','dfsd_dimget','dfsd_dimset',
54 'dfsd_endslice','dfsd_getdata','dfsd_getinfo','dfsd_getslice','dfsd_putslice','dfsd_readref','dfsd_setinfo','dfsd_startslice',
55 'dlm_load','dlm_register','draw_roi','dump','empty','enable_sysrtn','encode_gif','envi_autocorrelate','envi_class_majority',
56 'envi_nd_fill_image_24bit','envi_nd_fill_image_8bit','envi_resize_with_aggregate','envi_topo_feature','envi_topo_measure',
57 'erase','exit','file_chmod','file_copy','file_delete','file_link','file_mkdir','file_move','flush','forrd','forwrt','free_lun',
58 'fwident_acquire','fwident_gc','fwident_release','get_lun','grid_input','h5a_close','h5a_delete','h5a_write','h5d_close',
59 'h5d_extend','h5d_write','h5f_close','h5g_close','h5g_link','h5g_move','h5g_set_comment','h5g_unlink','h5s_close',
60 'h5s_offset_simple','h5s_select_all','h5s_select_elements','h5s_select_hyperslab','h5s_select_none','h5s_set_extent_none',
61 'h5s_set_extent_simple','h5t_close','h5t_commit','h5t_insert','h5_close','h5_open','handle_free','handle_move','handle_value',
62 'hdf_an_end','hdf_an_endaccess','hdf_close','hdf_deldd','hdf_df24_addimage','hdf_df24_getimage','hdf_df24_getinfo',
63 'hdf_df24_readref','hdf_df24_restart','hdf_dfan_addfds','hdf_dfan_addfid','hdf_dfan_getdesc','hdf_dfan_getfds','hdf_dfan_getfid',
64 'hdf_dfan_getlabel','hdf_dfan_putdesc','hdf_dfan_putlabel','hdf_dfp_addpal','hdf_dfp_getpal','hdf_dfp_putpal','hdf_dfp_readref',
65 'hdf_dfp_restart','hdf_dfp_writeref','hdf_dfr8_addimage','hdf_dfr8_getimage','hdf_dfr8_getinfo','hdf_dfr8_putimage','hdf_dfr8_readref',
66 'hdf_dfr8_restart','hdf_dfr8_setpalette','hdf_dfsd_adddata','hdf_dfsd_dimget','hdf_dfsd_dimset','hdf_dfsd_endslice',
67 'hdf_dfsd_getdata','hdf_dfsd_getinfo','hdf_dfsd_getslice','hdf_dfsd_putslice','hdf_dfsd_readref','hdf_dfsd_setinfo',
68 'hdf_dfsd_startslice','hdf_dupdd','hdf_gr_end','hdf_gr_endaccess','hdf_lib_info','hdf_sd_adddata','hdf_sd_attrinfo',
69 'hdf_sd_attrset','hdf_sd_dimget','hdf_sd_dimset','hdf_sd_end','hdf_sd_endaccess','hdf_sd_fileinfo','hdf_sd_getdata',
70 'hdf_sd_getinfo','hdf_sd_setcompress','hdf_sd_setextfile','hdf_sd_setinfo','hdf_unpackdata','hdf_vaddtagref','hdf_vdetach',
71 'hdf_vd_attrinfo','hdf_vd_attrset','hdf_vd_define','hdf_vd_detach','hdf_vd_fdefine','hdf_vd_get','hdf_vd_getinfo',
72 'hdf_vd_insert','hdf_vd_seek','hdf_vd_setinfo','hdf_vd_write','hdf_vfget','hdf_vget','hdf_vgettagref','hdf_vgettagrefs',
73 'hdf_vg_addtr','hdf_vg_detach','hdf_vg_getinfo','hdf_vg_gettr','hdf_vg_gettrs','hdf_vg_insert','hdf_vg_setinfo','hdf_vinsert',
74 'hdf_vsdetach','hdf_vsetclass','hdf_vsetname','hdf_vsfdefine','hdf_vsget','hdf_vsseek','hdf_vsset','hdf_vswrite','heap_free',
75 'heap_gc','heap_nosave','help','idlanroi::appenddata','idlanroi::cleanup','idlanroi::getproperty','idlanroi::removedata',
76 'idlanroi::replacedata','idlanroi::rotate','idlanroi::scale','idlanroi::setproperty','idlanroi::translate',
77 'idlanroigroup::add','idlanroigroup::cleanup','idlanroigroup::getproperty','idlanroigroup::rotate','idlanroigroup::scale',
78 'idlanroigroup::translate','idldbdatabase::cleanup','idldbdatabase::connect','idldbdatabase::executesql',
79 'idldbdatabase::getproperty','idldbdatabase::setproperty','idldbrecordset::addrecord','idldbrecordset::cleanup',
80 'idldbrecordset::deleterecord','idldbrecordset::getproperty','idldbrecordset::setfield','idldsmap::cleanup',
81 'idldsmap::insert','idldsmap::remove','idlffdicom::cleanup','idlffdicom::dumpelements','idlffdicom::reset',
82 'idlffdxf::cleanup','idlffdxf::getpalette','idlffdxf::putentity','idlffdxf::removeentity','idlffdxf::reset',
83 'idlffdxf::setpalette','idlffjpeg2000::cleanup','idlffjpeg2000::getproperty','idlffjpeg2000::gettileproperty',
84 'idlffjpeg2000::setdata','idlffjpeg2000::setproperty','idlffjpeg2000::setuuid','idlffmrsid::cleanup','idlffmrsid::getproperty',
85 'idlffshape::addattribute','idlffshape::cleanup','idlffshape::close','idlffshape::destroyentity','idlffshape::getproperty',
86 'idlffshape::putentity','idlffshape::setattributes','idlffxmldomattr::cleanup','idlffxmldomattr::setvalue',
87 'idlffxmldomcdatasection::cleanup','idlffxmldomcharacterdata::appenddata','idlffxmldomcharacterdata::cleanup',
88 'idlffxmldomcharacterdata::deletedata','idlffxmldomcharacterdata::insertdata','idlffxmldomcharacterdata::replacedata',
89 'idlffxmldomcharacterdata::setdata','idlffxmldomcomment::cleanup','idlffxmldomdocument::cleanup','idlffxmldomdocument::getproperty',
90 'idlffxmldomdocument::load','idlffxmldomdocument::save','idlffxmldomdocument::setproperty','idlffxmldomdocumentfragment::cleanup',
91 'idlffxmldomdocumenttype::cleanup','idlffxmldomelement::cleanup','idlffxmldomelement::removeattribute','return',
92 'idlffxmldomelement::setattribute','idlffxmldomentity::cleanup','idlffxmldomentityreference::cleanup',
93 'idlffxmldomnamednodemap::cleanup','idlffxmldomnode::cleanup','idlffxmldomnode::setnodevalue','idlffxmldomnodeiterator::cleanup',
94 'idlffxmldomnodelist::cleanup','idlffxmldomnotation::cleanup','idlffxmldomprocessinginstruction::cleanup',
95 'idlffxmldomprocessinginstruction::setdata','idlffxmldomtext::cleanup','idlffxmldomtreewalker::cleanup',
96 'idlffxmldomtreewalker::setcurrentnode','idlffxmlsax::attributedecl','idlffxmlsax::characters','idlffxmlsax::cleanup',
97 'idlffxmlsax::comment','idlffxmlsax::elementdecl','idlffxmlsax::endcdata','idlffxmlsax::enddocument',
98 'idlffxmlsax::enddtd','idlffxmlsax::endelement','idlffxmlsax::endentity','idlffxmlsax::endprefixmapping',
99 'idlffxmlsax::error','idlffxmlsax::externalentitydecl','idlffxmlsax::fatalerror','idlffxmlsax::getproperty',
100 'idlffxmlsax::ignorablewhitespace','idlffxmlsax::internalentitydecl','idlffxmlsax::notationdecl','idlffxmlsax::parsefile',
101 'idlffxmlsax::processinginstruction','idlffxmlsax::setdocumentlocator','idlffxmlsax::setproperty','idlffxmlsax::skippedentity',
102 'idlffxmlsax::startcdata','idlffxmlsax::startdocument','idlffxmlsax::startdtd','idlffxmlsax::startelement',
103 'idlffxmlsax::startentity','idlffxmlsax::startprefixmapping','idlffxmlsax::stopparsing','idlffxmlsax::unparsedentitydecl',
104 'idlffxmlsax::warning','idlfwbehavior::cleanup','idlfwbehavior::execute','idlfwbehavior::register',
105 'idlfwbehavior::restore','idlfwbehavior::setmessagestring','idlfwbehavior::unregister','idlfwdelayargbehav::cleanup',
106 'idlfwdelayargbehav::delayexecute','idlfwdelayargbehav::execute','idlfwdelaybehav::cleanup','idlfwdelaybehav::delayexecute',
107 'idlfwdelaybehav::execute','idlfwdelaybehav::restore','idlfwdelaybehav::setmethod','idlfwfuncbehav::cleanup',
108 'idlfwfuncbehav::execute','idlfwfuncbehav::restore','idlfwfuncbehav::setfunc','idlfwhasahandler::cleanup',
109 'idlfwhasahandler::restore','idlfwhasahandler::sethandler','idlfwmessage::cleanup','idlfwmessage::restore',
110 'idlfwmessage::send','idlfwmessage::setmessagestring','idlfwmessagehandler::addbehavior','idlfwmessagehandler::cleanup',
111 'idlfwmessagehandler::removebehavior','idlfwmessagehandler::restore','idlfwmessagehandler::scopemessage',
112 'idlfwmessagehandler::sendmessage','idlfwmessagehandler::unscopemessage','idlfwobjbehav::cleanup','idlfwobjbehav::execute',
113 'idlfwobjbehav::restore','idlfwobjbehav::setmethod','idlfwobjbehav::setobject','idlfwprocbehav::cleanup',
114 'idlfwprocbehav::execute','idlfwprocbehav::restore','idlfwprocbehav::setproc','idlfwquery::cleanup','idlfwquery::restore',
115 'idlfwquery::setresult','idlfwquerybehav::cleanup','idlfwquerybehav::execute','idlfwquerybehav::restore',
116 'idlfwquerybehav::setresponse','idlfwsaveable::cleanup','idlfwsaveable::dorestore','idlfwsaveable::resetrestored',
117 'idlfwsaveable::restore','idlfwsaveablerestorearray','idlgraxis::cleanup','idlgraxis::drawself','idlgraxis::getproperty',
118 'idlgraxis::setproperty','idlgrbuffer::cleanup','idlgrbuffer::getproperty','idlgrbuffer::setproperty',
119 'idlgrclipboard::cleanup','idlgrclipboard::draw','idlgrclipboard::erase','idlgrclipboard::getproperty',
120 'idlgrclipboard::setproperty','idlgrcomponent::cleanup','idlgrcomponent::getproperty','idlgrcomponent::setproperty',
121 'idlgrcontainer::add','idlgrcontainer::cleanup','idlgrcontainer::draw','idlgrcontainer::remove',
122 'idlgrcontour::adjustlabeloffsets','idlgrcontour::cleanup','idlgrcontour::drawself','idlgrcontour::getlabelinfo',
123 'idlgrcontour::getproperty','idlgrcontour::setproperty','idlgrdata::cleanup','idlgrfont::cleanup','idlgrfont::getproperty',
124 'idlgrfont::setproperty','idlgrgraphic::cleanup','idlgrgraphic::draw','idlgrgraphic::getproperty','idlgrgraphic::setproperty',
125 'idlgrimage::cleanup','idlgrimage::deletetiledata','idlgrimage::drawself','idlgrimage::getproperty','idlgrimage::setproperty',
126 'idlgrimage::settiledata','idlgrlight::cleanup','idlgrlight::drawself','idlgrlight::getproperty','idlgrlight::setproperty',
127 'idlgrmodel::add','idlgrmodel::cleanup','idlgrmodel::draw','idlgrmodel::drawself','idlgrmodel::getproperty',
128 'idlgrmodel::reset','idlgrmodel::rotate','idlgrmodel::scale','idlgrmodel::setproperty','idlgrmodel::translate',
129 'idlgrmpeg::cleanup','idlgrmpeg::getproperty','idlgrmpeg::put','idlgrmpeg::save','idlgrmpeg::setproperty',
130 'idlgrpalette::cleanup','idlgrpalette::getproperty','idlgrpalette::loadct','idlgrpalette::setproperty',
131 'idlgrpalette::setrgb','idlgrpattern::cleanup',
132 'idlgrpattern::getproperty','idlgrpattern::setproperty','idlgrplot::cleanup','idlgrplot::drawself','idlgrplot::getproperty',
133 'idlgrplot::setproperty','idlgrpolygon::cleanup','idlgrpolygon::drawself','idlgrpolygon::getproperty',
134 'idlgrpolygon::setproperty','idlgrpolyline::cleanup','idlgrpolyline::drawself','idlgrpolyline::getproperty',
135 'idlgrpolyline::setproperty','idlgrprinter::cleanup','idlgrprinter::draw','idlgrprinter::erase',
136 'idlgrprinter::getdeviceinfo','idlgrprinter::getproperty','idlgrprinter::newdocument','idlgrprinter::newpage',
137 'idlgrprinter::setproperty','idlgrroi::cleanup',
138 'idlgrroi::drawself','idlgrroi::getproperty','idlgrroi::setproperty','idlgrroigroup::add','idlgrroigroup::cleanup',
139 'idlgrroigroup::drawself','idlgrroigroup::getproperty','idlgrroigroup::setproperty','idlgrscene::add','idlgrscene::cleanup',
140 'idlgrscene::draw','idlgrscene::getproperty','idlgrscene::setproperty','idlgrsrcdest::cleanup','idlgrsrcdest::draw',
141 'idlgrsrcdest::erase','idlgrsrcdest::getdeviceinfo','idlgrsrcdest::getproperty','idlgrsrcdest::setproperty',
142 'idlgrsurface::cleanup','idlgrsurface::drawself','idlgrsurface::getproperty','idlgrsurface::setproperty',
143 'idlgrsymbol::cleanup','idlgrsymbol::getproperty',
144 'idlgrsymbol::setproperty','idlgrtessellator::addpolygon','idlgrtessellator::cleanup','idlgrtessellator::reset',
145 'idlgrtext::cleanup','idlgrtext::drawself','idlgrtext::getproperty','idlgrtext::setproperty','idlgrview::add',
146 'idlgrview::cleanup','idlgrview::draw','idlgrview::getproperty','idlgrview::setproperty','idlgrviewgroup::add',
147 'idlgrviewgroup::cleanup','idlgrviewgroup::draw','idlgrvolume::cleanup','idlgrvolume::computebounds','idlgrvolume::drawself',
148 'idlgrvolume::extractslice','idlgrvolume::getproperty','idlgrvolume::setproperty','idlgrvrml::cleanup','idlgrvrml::draw',
149 'idlgrvrml::erase','idlgrvrml::getproperty','idlgrvrml::setproperty','idlgrwindow::cleanup','idlgrwindow::getproperty',
150 'idlgrwindow::iconify','idlgrwindow::setcurrentcursor','idlgrwindow::setcurrentzoom','idlgrwindow::setproperty',
151 'idlgrwindow::show','idlgrwindow::zoomin','idlgrwindow::zoomout','idlitcomponent::cleanup','idlitcomponent::getproperty',
152 'idlitcomponent::getpropertyattribute','idlitcomponent::registerproperty','idlitcomponent::restore',
153 'idlitcomponent::sendonnotify','idlitcomponent::setproperty','idlitcomponent::setpropertyattribute',
154 'idlitcomponent::setpropertybyidentifier','idlitcomponent::updatecomponentversion','idlitparameterdescriptor::cleanup',
155 'idlitparameterdescriptor::getproperty','idlitparameterdescriptor::registerpropertydescriptor',
156 'idlitparameterdescriptor::setproperty','idlitpropertydescriptor::cleanup','idlitpropertydescriptor::getproperty',
157 'idlitpropertydescriptor::registerproperty','idlitpropertydescriptor::registerpropertydescriptor',
158 'idlitpropertydescriptor::setproperty','idlitpropertyvalue::cleanup','idlitpropertyvalue::getproperty',
159 'idlitpropertyvalue::setproperty','idlitpropertyvalue::setpropertybyidentifier','idlitwindow::add',
160 'idlitwindow::addwindoweventobserver','idlitwindow::cleanup','idlitwindow::clearselections',
161 'idlitwindow::getproperty','idlitwindow::onenter','idlitwindow::onexit','idlitwindow::onexpose',
162 'idlitwindow::onkeyboard','idlitwindow::onmanipulatorchange','idlitwindow::onmousedown','idlitwindow::onmousemotion',
163 'idlitwindow::onmouseup','idlitwindow::onresize','idlitwindow::onscroll','idlitwindow::ontimer',
164 'idlitwindow::remove','idlitwindow::removewindoweventobserver','idlitwindow::setcurrentview',
165 'idlitwindow::setcurrentzoom','idlitwindow::seteventmask','idlitwindow::setmanipulatormanager',
166 'idlitwindow::setproperty','idlitwindow::settimerinterval','idlitwindow::zoomin','idlitwindow::zoomout',
167 'idl_container::add','idl_container::cleanup','idl_container::move','idl_container::remove',
168 'idl_savefile::cleanup','idl_savefile::restore','image_statistics','interval_volume','isocontour',
169 'isosurface','journal','label_plots','la_choldc','la_ludc','la_svd','la_tridc','la_triql',
170 'la_trired','linkimage','loadct','lubksb','ludc','ludcmp','make_dll','map_clip_set','map_proj_gctp_forinit',
171 'map_proj_gctp_revinit','message','mprove','mrqmin','ncdf_attdel','ncdf_attget','ncdf_attput','ncdf_attrename',
172 'ncdf_close','ncdf_control','ncdf_diminq','ncdf_dimrename','ncdf_varget','ncdf_varget1','ncdf_varput','ncdf_varrename',
173 'nr_choldc','nr_dfpmin','nr_powell','nr_tqli','nr_tred2','nr__svdfit','obj_destroy','online_help','on_error','openr',
174 'openu','openw','oplot','particle_trace','path_cache','plot','plots','plot_io','plot_oi','plot_oo','point_lun','polyfill',
175 'powell','pref_commit','pref_set','print','printf','profiler','ptr_free','qhull','query_event_mask','read','readf',
176 'reads','readu','read_jpeg','register_cursor','replicate_inplace','resolve_routine','restore','riemann','save','setenv',
177 'set_plot','set_shading','shade_surf','shade_volume','shmmap','shmunmap','skip_lun','socket','spawn','strput',
178 'struct_assign','struct_hide','surface','svbksb','svd','svdc','tek_color','tqli','tred2','triangulate','tridag','triql',
179 'triql_novec','trired','truncate_lun','tv','tvcrs','tvdelete','tvlct','tvrdc','tvscl','tvset','tvshow',
180 'tvwindow','usersym','wait','wdelete','widget_control','widget_displaycontextmenu','widget_olh',
181 'widget_process_events','widget_set_resource','window','writeu','write_jpeg','write_png','write_tiff',
182 'wset','wshow','xyouts','zroots']
183
184
185
186 reserved_words2 = ['abs','acos','alog','alog10','app_user_dir','app_user_dir_query','arg_present','array_equal','asin','assoc','atan',
187 'beseli','beselj','beselk','besely','bindgen','bit_ffs','bit_population','broyden','bytarr','byte','bytscl','call_external',
188 'call_vms','cdf_attcreate','cdf_attexists','cdf_attnum','cdf_create','cdf_encode_epoch','cdf_error','cdf_inquire','cdf_open',
189 'cdf_parse_epoch','cdf_varcreate','cdf_varinq','cdf_varnum','ceil','check_math','cholsol','cindgen','color_quan',
190 'command_line_args','complex','complexarr','compute_mesh_normals','conj','convert_coord','convol','cos','cosh','create_struct',
191 'dblarr','db_exists','dcindgen','dcomplex','dcomplexarr','dfan_lablist','dfan_lastref','dfp_lastref','dfp_npals','dfr8_lastref',
192 'dfr8_nimages','diag_matrix','dialog_dbconnect','dialog_message','dialog_pickfile','dialog_printersetup','dialog_printjob',
193 'dilate','dindgen','double','elmhes','envi_gctp_for_init','envi_gctp_for_trans','envi_gctp_rev_init','envi_gctp_rev_trans',
194 'eof','eos_eh_convang','eos_eh_getversion','eos_eh_idinfo','eos_gd_attach','eos_gd_attrinfo','eos_gd_blksomoffset',
195 'eos_gd_close','eos_gd_compinfo','eos_gd_create','eos_gd_defboxregion','eos_gd_defcomp','eos_gd_defdim','eos_gd_deffield',
196 'eos_gd_deforigin','eos_gd_defpixreg','eos_gd_defproj','eos_gd_deftile','eos_gd_deftimeperiod','eos_gd_defvrtregion',
197 'eos_gd_detach','eos_gd_diminfo','eos_gd_dupregion','eos_gd_extractregion','eos_gd_fieldinfo','eos_gd_getfillvalue',
198 'eos_gd_getpixels','eos_gd_getpixvalues','eos_gd_gridinfo','eos_gd_inqattrs','eos_gd_inqdims','eos_gd_inqfields',
199 'eos_gd_inqgrid','eos_gd_interpolate','eos_gd_nentries','eos_gd_open','eos_gd_origininfo','eos_gd_pixreginfo',
200 'eos_gd_projinfo','eos_gd_readattr','eos_gd_readfield','eos_gd_readtile','eos_gd_regioninfo','eos_gd_setfillvalue',
201 'eos_gd_settilecache','eos_gd_tileinfo','eos_gd_writeattr','eos_gd_writefield','eos_gd_writefieldmeta',
202 'eos_gd_writetile','eos_pt_attach','eos_pt_attrinfo','eos_pt_bcklinkinfo','eos_pt_close','eos_pt_create',
203 'eos_pt_defboxregion','eos_pt_deflevel','eos_pt_deflinkage','eos_pt_deftimeperiod','eos_pt_defvrtregion',
204 'eos_pt_detach','eos_pt_extractperiod','eos_pt_extractregion','eos_pt_fwdlinkinfo','eos_pt_getlevelname',
205 'eos_pt_getrecnums','eos_pt_inqattrs','eos_pt_inqpoint','eos_pt_levelindx','eos_pt_levelinfo','eos_pt_nfields',
206 'eos_pt_nlevels','eos_pt_nrecs','eos_pt_open','eos_pt_periodinfo','eos_pt_periodrecs','eos_pt_readattr',
207 'eos_pt_readlevel','eos_pt_regioninfo','eos_pt_regionrecs','eos_pt_sizeof','eos_pt_updatelevel','eos_pt_writeattr',
208 'eos_pt_writelevel','eos_sw_attach','eos_sw_attrinfo','eos_sw_close','eos_sw_compinfo','eos_sw_create',
209 'eos_sw_defboxregion','eos_sw_defcomp','eos_sw_defdatafield','eos_sw_defdim','eos_sw_defdimmap','eos_sw_defgeofield',
210 'eos_sw_defidxmap','eos_sw_deftimeperiod','eos_sw_defvrtregion','eos_sw_detach','eos_sw_diminfo','eos_sw_dupregion',
211 'eos_sw_extractperiod','eos_sw_extractregion','eos_sw_fieldinfo','eos_sw_getfillvalue','eos_sw_idxmapinfo',
212 'eos_sw_inqattrs','eos_sw_inqdatafields','eos_sw_inqdims','eos_sw_inqgeofields','eos_sw_inqidxmaps',
213 'eos_sw_inqmaps','eos_sw_inqswath','eos_sw_mapinfo','eos_sw_nentries','eos_sw_open','eos_sw_periodinfo',
214 'eos_sw_readattr','eos_sw_readfield','eos_sw_regioninfo','eos_sw_setfillvalue','eos_sw_writeattr',
215 'eos_sw_writedatameta','eos_sw_writefield','eos_sw_writegeometa','erf','erfc','erfcx','erode','errorf',
216 'execute','exp','expand_path','expint','fft','file_basename','file_dirname','file_expand_path','file_info',
217 'file_lines','file_poll_input','file_readlink','file_same','file_search','file_test','findfile','findgen',
218 'finite','fix','float','floor','fltarr','format_axis_values','fstat','fulstr','fz_roots','gaussint','getenv',
219 'get_drive_list','get_fwident','get_kbrd','get_login_info','grid3','griddata','grid_tps','h5a_create',
220 'h5a_get_name','h5a_get_num_attrs','h5a_get_space','h5a_get_type','h5a_open_idx','h5a_open_name','h5a_read',
221 'h5d_create','h5d_get_space','h5d_get_storage_size','h5d_get_type','h5d_open','h5d_read','h5f_create','h5f_is_hdf5',
222 'h5f_open','h5g_create','h5g_get_comment','h5g_get_linkval','h5g_get_member_name','h5g_get_nmembers',
223 'h5g_get_num_objs','h5g_get_objinfo','h5g_get_obj_name_by_idx','h5g_open','h5i_get_file_id','h5i_get_type',
224 'h5r_create','h5r_dereference','h5r_get_object_type','h5r_get_region','h5s_copy','h5s_create_scalar',
225 'h5s_create_simple','h5s_get_select_bounds','h5s_get_select_elem_npoints','h5s_get_select_elem_pointlist',
226 'h5s_get_select_hyper_blocklist','h5s_get_select_hyper_nblocks','h5s_get_select_npoints',
227 'h5s_get_simple_extent_dims','h5s_get_simple_extent_ndims','h5s_get_simple_extent_npoints',
228 'h5s_get_simple_extent_type','h5s_is_simple','h5s_select_valid','h5t_array_create','h5t_committed',
229 'h5t_copy','h5t_equal','h5t_get_array_dims','h5t_get_array_ndims','h5t_get_class','h5t_get_cset',
230 'h5t_get_ebias','h5t_get_fields','h5t_get_inpad','h5t_get_member_class','h5t_get_member_name',
231 'h5t_get_member_offset','h5t_get_member_type','h5t_get_nmembers','h5t_get_norm','h5t_get_offset',
232 'h5t_get_order','h5t_get_pad','h5t_get_precision','h5t_get_sign','h5t_get_size','h5t_get_strpad',
233 'h5t_get_super','h5t_idltype','h5t_idl_create','h5t_memtype','h5t_open','h5t_reference_create',
234 'h5_get_libversion','handle_create','handle_info','handle_new','hdf_an_annlen','hdf_an_annlist',
235 'hdf_an_atype2tag','hdf_an_create','hdf_an_createf','hdf_an_fileinfo','hdf_an_get_tagref',
236 'hdf_an_id2tagref','hdf_an_numann','hdf_an_readann','hdf_an_select','hdf_an_start',
237 'hdf_an_tag2atype','hdf_an_tagref2id','hdf_an_writeann','hdf_df24_lastref','hdf_df24_nimages',
238 'hdf_dfan_lablist','hdf_dfan_lastref','hdf_dfp_lastref','hdf_dfp_npals','hdf_dfr8_lastref',
239 'hdf_dfr8_nimages','hdf_gr_attrinfo','hdf_gr_create','hdf_gr_fileinfo','hdf_gr_findattr','hdf_gr_getattr',
240 'hdf_gr_getchunkinfo','hdf_gr_getiminfo','hdf_gr_getlutid','hdf_gr_getlutinfo','hdf_gr_idtoref',
241 'hdf_gr_luttoref','hdf_gr_nametoindex','hdf_gr_readimage','hdf_gr_readlut','hdf_gr_reftoindex',
242 'hdf_gr_select','hdf_gr_setattr','hdf_gr_setchunk','hdf_gr_setchunkcache','hdf_gr_setcompress',
243 'hdf_gr_setexternalfile','hdf_gr_start','hdf_gr_writeimage','hdf_gr_writelut','hdf_hdf2idltype',
244 'hdf_idl2hdftype','hdf_ishdf','hdf_newref','hdf_number','hdf_open','hdf_packdata','hdf_sd_attrfind',
245 'hdf_sd_create','hdf_sd_dimgetid','hdf_sd_idtoref','hdf_sd_iscoordvar','hdf_sd_nametoindex',
246 'hdf_sd_reftoindex','hdf_sd_select','hdf_sd_start','hdf_vattach','hdf_vd_attach','hdf_vd_attrfind',
247 'hdf_vd_fexist','hdf_vd_find','hdf_vd_getid','hdf_vd_getnext','hdf_vd_isattr','hdf_vd_isvd','hdf_vd_isvg',
248 'hdf_vd_lone','hdf_vd_nattrs','hdf_vd_read','hdf_vgetid','hdf_vgetnext','hdf_vg_attach',
249 'hdf_vg_getid','hdf_vg_getnext','hdf_vg_inqtr','hdf_vg_isvd','hdf_vg_isvg','hdf_vg_lone','hdf_vg_number',
250 'hdf_vinqtagref','hdf_visvg','hdf_visvs','hdf_vlone','hdf_vntagrefs','hdf_vsattach','hdf_vsfexist',
251 'hdf_vsfind','hdf_vsgetid','hdf_vslone','hdf_vsread','heap_save','histogram','hough','hqr',
252 'idlanroi::computegeometry','idlanroi::computemask','idlanroi::containspoints','idlanroi::init',
253 'idlanroigroup::computemask','idlanroigroup::computemesh','idlanroigroup::containspoints',
254 'idlanroigroup::init','idldbdatabase::getdatasources','idldbdatabase::gettables','idldbdatabase::init',
255 'idldbrecordset::currentrecord','idldbrecordset::getfield','idldbrecordset::getrecord','idldbrecordset::init',
256 'idldbrecordset::movecursor','idldbrecordset::nfields','idldsmap::getdata','idldsmap::getkeys',
257 'idldsmap::getsize','idldsmap::init','idldsmap::keyexists','idlffdicom::getchildren','idlffdicom::getdescription',
258 'idlffdicom::getelement','idlffdicom::getgroup','idlffdicom::getlength','idlffdicom::getparent','idlffdicom::getpreamble',
259 'idlffdicom::getreference','idlffdicom::getvalue','idlffdicom::getvr','idlffdicom::init','idlffdicom::read',
260 'idlffdxf::getcontents','idlffdxf::getentity','idlffdxf::init','idlffdxf::read','idlffdxf::write',
261 'idlffjpeg2000::getdata','idlffjpeg2000::getuuid','idlffjpeg2000::init','idlffmrsid::getdimsatlevel',
262 'idlffmrsid::getimagedata','idlffmrsid::init','idlffshape::getattributes','idlffshape::getentity','idlffshape::init',
263 'idlffshape::open','idlffxmldomattr::getname','idlffxmldomattr::getspecified','idlffxmldomattr::getvalue',
264 'idlffxmldomattr::init','idlffxmldomcdatasection::init','idlffxmldomcharacterdata::getdata',
265 'idlffxmldomcharacterdata::getlength','idlffxmldomcharacterdata::init','idlffxmldomcharacterdata::substringdata',
266 'idlffxmldomcomment::init','idlffxmldomdocument::createattribute','idlffxmldomdocument::createcdatasection',
267 'idlffxmldomdocument::createcomment','idlffxmldomdocument::createdocumentfragment',
268 'idlffxmldomdocument::createelement','idlffxmldomdocument::createentityreference',
269 'idlffxmldomdocument::createnodeiterator','idlffxmldomdocument::createprocessinginstruction',
270 'idlffxmldomdocument::createtextnode','idlffxmldomdocument::createtreewalker','idlffxmldomdocument::getdoctype',
271 'idlffxmldomdocument::getdocumentelement','idlffxmldomdocument::getelementsbytagname','idlffxmldomdocument::getimplementation',
272 'idlffxmldomdocument::init','idlffxmldomdocumentfragment::init','idlffxmldomdocumenttype::getentities',
273 'idlffxmldomdocumenttype::getname','idlffxmldomdocumenttype::getnotations','idlffxmldomdocumenttype::init',
274 'idlffxmldomelement::getattribute','idlffxmldomelement::getattributenode','idlffxmldomelement::getelementsbytagname',
275 'idlffxmldomelement::gettagname','idlffxmldomelement::init','idlffxmldomelement::removeattributenode',
276 'idlffxmldomelement::setattributenode','idlffxmldomentity::getnotationname','idlffxmldomentity::getpublicid',
277 'idlffxmldomentity::getsystemid','idlffxmldomentity::init','idlffxmldomentityreference::init','idlffxmldomnamednodemap::getlength',
278 'idlffxmldomnamednodemap::getnameditem','idlffxmldomnamednodemap::init','idlffxmldomnamednodemap::item',
279 'idlffxmldomnamednodemap::removenameditem','idlffxmldomnamednodemap::setnameditem','idlffxmldomnode::appendchild',
280 'idlffxmldomnode::clonenode','idlffxmldomnode::getattributes','idlffxmldomnode::getchildnodes','idlffxmldomnode::getfirstchild',
281 'idlffxmldomnode::getlastchild','idlffxmldomnode::getnextsibling','idlffxmldomnode::getnodename','idlffxmldomnode::getnodetype',
282 'idlffxmldomnode::getnodevalue','idlffxmldomnode::getownerdocument','idlffxmldomnode::getparentnode',
283 'idlffxmldomnode::getprevioussibling','idlffxmldomnode::haschildnodes','idlffxmldomnode::init','idlffxmldomnode::insertbefore',
284 'idlffxmldomnode::removechild','idlffxmldomnode::replacechild','idlffxmldomnodeiterator::init',
285 'idlffxmldomnodeiterator::nextnode','idlffxmldomnodeiterator::previousnode','idlffxmldomnodelist::getlength',
286 'idlffxmldomnodelist::init','idlffxmldomnodelist::item','idlffxmldomnotation::getpublicid',
287 'idlffxmldomnotation::getsystemid','idlffxmldomnotation::init','idlffxmldomprocessinginstruction::getdata',
288 'idlffxmldomprocessinginstruction::gettarget','idlffxmldomprocessinginstruction::init','idlffxmldomtext::init',
289 'idlffxmldomtext::isignorablewhitespace','idlffxmldomtext::splittext','idlffxmldomtreewalker::firstchild',
290 'idlffxmldomtreewalker::getcurrentnode','idlffxmldomtreewalker::init','idlffxmldomtreewalker::lastchild',
291 'idlffxmldomtreewalker::nextnode','idlffxmldomtreewalker::nextsibling','idlffxmldomtreewalker::parentnode',
292 'idlffxmldomtreewalker::previousnode','idlffxmldomtreewalker::previoussibling','idlffxmlsax::init','idlfwbehavior::init',
293 'idlfwbehavior::isregistered','idlfwbehavior::messagestring','idlfwdelayargbehav::init','idlfwdelaybehav::init',
294 'idlfwfuncbehav::func','idlfwfuncbehav::init','idlfwhasahandler::handler','idlfwhasahandler::init','idlfwmessage::init',
295 'idlfwmessage::messagestring','idlfwmessagehandler::behaviors','idlfwmessagehandler::init','idlfwmessagehandler::isscoped',
296 'idlfwmessagehandler::scopedmessages','idlfwobjbehav::init','idlfwobjbehav::method','idlfwobjbehav::object',
297 'idlfwprocbehav::init','idlfwprocbehav::proc','idlfwquery::init','idlfwquery::result','idlfwquery::sendquery',
298 'idlfwquerybehav::init','idlfwquerybehav::response','idlfwsaveable::init','idlgraxis::init','idlgrbuffer::init',
299 'idlgrbuffer::restore','idlgrclipboard::init','idlgrclipboard::pickdata','idlgrclipboard::read','idlgrclipboard::restore',
300 'idlgrclipboard::select','idlgrcomponent::init','idlgrcontainer::getbyname','idlgrcontainer::init',
301 'idlgrcontour::getdataxyzrange','idlgrcontour::getvertexdata','idlgrcontour::init','idlgrfont::init','idlgrgraphic::getctm',
302 'idlgrgraphic::getdataxyzrange','idlgrgraphic::init','idlgrimage::init','idlgrlight::init','idlgrmodel::getctm',
303 'idlgrmodel::getxyzrange','idlgrmodel::init','idlgrmpeg::init','idlgrpalette::getrgb','idlgrpalette::init',
304 'idlgrpalette::nearestcolor','idlgrpattern::init','idlgrplot::getdataxyzrange','idlgrplot::init','idlgrpolygon::init',
305 'idlgrpolyline::init','idlgrprinter::init','idlgrprinter::pickdata','idlgrprinter::read','idlgrprinter::restore',
306 'idlgrprinter::select','idlgrroi::init','idlgrroi::pickvertex','idlgrroigroup::init','idlgrroigroup::pickregion',
307 'idlgrscene::init','idlgrsrcdest::getcontiguouspixels','idlgrsrcdest::getfontnames','idlgrsrcdest::gettextdimensions',
308 'idlgrsrcdest::init','idlgrsrcdest::pickdata','idlgrsrcdest::queryrequiredtiles','idlgrsrcdest::read','idlgrsrcdest::select',
309 'idlgrsurface::init','idlgrsymbol::init','idlgrtessellator::init','idlgrtessellator::tessellate','idlgrtext::init',
310 'idlgrview::init','idlgrviewgroup::init','idlgrvolume::init','idlgrvolume::pickvoxel','idlgrvrml::init','idlgrvrml::pickdata',
311 'idlgrvrml::queryrequiredtiles','idlgrvrml::read','idlgrvrml::restore','idlgrvrml::select','idlgrwindow::getdimensions',
312 'idlgrwindow::init','idlgrwindow::restore','idlitcomponent::edituserdefproperty','idlitcomponent::getfullidentifier',
313 'idlitcomponent::getpropertybyidentifier','idlitcomponent::init','idlitcomponent::queryproperty',
314 'idlitcomponent::_getallpropertydescriptors','idlitparameterdescriptor::init','idlitpropertydescriptor::init',
315 'idlitpropertydescriptor::querypropertydescriptor','idlitpropertyvalue::getpropertybyidentifier','idlitpropertyvalue::init',
316 'idlitwindow::dohittest','idlitwindow::getcurrentview','idlitwindow::geteventmask','idlitwindow::getscene',
317 'idlitwindow::getselecteditems','idlitwindow::init','idlitwindow::restore','idl_container::count',
318 'idl_container::get','idl_container::init','idl_container::iscontained','idl_igamma','idl_savefile::contents',
319 'idl_savefile::init','idl_savefile::names','idl_savefile::size','idl_validname','imaginary','indgen',
320 'intarr','interpolate','invert','ioctl','isadxf','ishft','keyword_set','l64indgen','label_region','la_cholmprove',
321 'la_cholsol','la_eigenproblem','la_eigenql','la_eigenvec','la_elmhes','la_gm_linear_model','la_hqr','la_invert',
322 'la_least_squares','la_least_square_equality','la_lumprove','la_lusol','la_trimprove','la_trisol','legendre',
323 'linbcg','lindgen','lmgr','lngamma','lnp_test','locale_get','logical_and','logical_or','logical_true','lon64arr',
324 'lonarr','long','long64','lsode','lumprove','lusol','machar','make_array','make_event_mask','map_proj_forward',
325 'map_proj_inverse','matrix_multiply','max','median','memory','mesh_clip','mesh_decimate','mesh_issolid','mesh_merge',
326 'mesh_numtriangles','mesh_smooth','mesh_surfacearea','mesh_validate','mesh_volume','min','morph_distance','ncdf_attcopy',
327 'ncdf_attinq','ncdf_attname','ncdf_create','ncdf_dimdef','ncdf_dimid','ncdf_inquire','ncdf_open','ncdf_vardef',
328 'ncdf_varid','ncdf_varinq','newton','nr_beta','nr_broydn','nr_cholsl','nr_expint','nr_fulstr','nr_gamma','nr_invert',
329 'nr_linbcg','nr_machar','nr_newt','nr_qromb','nr_qromo','nr_qsimp','nr_rk4','nr_spline','nr_splint','nr_sprsab',
330 'nr_sprsax','nr_sprstp','nr_tridag','nr_wtn','nr_zroots','n_elements','n_params','n_tags','objarr','obj_class','obj_hasmethod',
331 'obj_isa','obj_new','obj_valid','polyfillv','polyshade','poly_2d','pref_get','product','ptrarr','ptr_new','ptr_valid','qgrid3',
332 'qromb','qromo','qsimp','query_jpeg','query_png','query_tiff','radon','randomn','randomu','read_png','read_tiff','rebin',
333 'recall_commands','reform','replicate','rk4','roberts','rollover_fwident','rotate','round','routine_info','routine_names',
334 'scope_level','scope_traceback','scope_varfetch','scope_varname','shift','shmdebug','shmvar','simplex','sin','sindgen',
335 'sinh','size','smooth','sobel','sort','spl_init','spl_interp','sprsab','sprsax','sprsin','sprstp','sqrt','strarr','strcmp',
336 'strcompress','stregex','string','strjoin','strlen','strlowcase','strmatch','strmessage','strmid','strpos','strtok',
337 'strsplit','strtrim','strupcase','svsol','systime','tag_names','tan','tanh','temporary','tetra_clip','tetra_surface','tetra_volume',
338 'thin','total','transpose','trigrid','trisol','tvrd','uindgen','uint','uintarr','ul64indgen','ulindgen','ulon64arr',
339 'ulonarr','ulong','ulong64','value_locate','vax_float','voigt','voxel_proj','watershed','where','widget_base',
340 'widget_button','widget_combobox','widget_draw','widget_droplist','widget_event','widget_get_resource','widget_info',
341 'widget_label','widget_list','widget_message','widget_propertysheet','widget_slider','widget_stub','widget_tab',
342 'widget_table','widget_text','widget_tree','wmenu','wtn','wv_dwt','wv_pwt']
343
344
345 constant_words = ['lt', 'le','gt', 'ge', 'eq', 'ne']
346
347 special_words = ['function','pro','continue',
348 'not','if','endif','else','endelse','for','endfor','while','endwhile','break','case','endcase','switch',
349 'endswitch','repeat','until',
350 'endrep','begin','end','goto','do','then']
351
352
353 self.addWords(reserved_words,'Special')
354
355 self.addReserved(special_words)
356 self.addWords(reserved_words2,'ResWord2')
357
358 self.addConstant(constant_words)
359
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.