ThirdParty/Pygments/pygments/lexers/idl.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
51 'binomial', 'bin_date', 'bit_ffs', 'bit_population', 51 'binomial', 'bin_date', 'bit_ffs', 'bit_population',
52 'blas_axpy', 'blk_con', 'box_cursor', 'breakpoint', 52 'blas_axpy', 'blk_con', 'box_cursor', 'breakpoint',
53 'broyden', 'butterworth', 'bytarr', 'byte', 'byteorder', 53 'broyden', 'butterworth', 'bytarr', 'byte', 'byteorder',
54 'bytscl', 'caldat', 'calendar', 'call_external', 54 'bytscl', 'caldat', 'calendar', 'call_external',
55 'call_function', 'call_method', 'call_procedure', 'canny', 55 'call_function', 'call_method', 'call_procedure', 'canny',
56 'catch', 'cd', 'cdf_\w*', 'ceil', 'chebyshev', 56 'catch', 'cd', r'cdf_\w*', 'ceil', 'chebyshev',
57 'check_math', 57 'check_math',
58 'chisqr_cvf', 'chisqr_pdf', 'choldc', 'cholsol', 'cindgen', 58 'chisqr_cvf', 'chisqr_pdf', 'choldc', 'cholsol', 'cindgen',
59 'cir_3pnt', 'close', 'cluster', 'cluster_tree', 'clust_wts', 59 'cir_3pnt', 'close', 'cluster', 'cluster_tree', 'clust_wts',
60 'cmyk_convert', 'colorbar', 'colorize_sample', 60 'cmyk_convert', 'colorbar', 'colorize_sample',
61 'colormap_applicable', 'colormap_gradient', 61 'colormap_applicable', 'colormap_gradient',
85 'dialog_read_image', 'dialog_write_image', 'digital_filter', 85 'dialog_read_image', 'dialog_write_image', 'digital_filter',
86 'dilate', 'dindgen', 'dissolve', 'dist', 'distance_measure', 86 'dilate', 'dindgen', 'dissolve', 'dist', 'distance_measure',
87 'dlm_load', 'dlm_register', 'doc_library', 'double', 87 'dlm_load', 'dlm_register', 'doc_library', 'double',
88 'draw_roi', 'edge_dog', 'efont', 'eigenql', 'eigenvec', 88 'draw_roi', 'edge_dog', 'efont', 'eigenql', 'eigenvec',
89 'ellipse', 'elmhes', 'emboss', 'empty', 'enable_sysrtn', 89 'ellipse', 'elmhes', 'emboss', 'empty', 'enable_sysrtn',
90 'eof', 'eos_\w*', 'erase', 'erf', 'erfc', 'erfcx', 90 'eof', r'eos_\w*', 'erase', 'erf', 'erfc', 'erfcx',
91 'erode', 'errorplot', 'errplot', 'estimator_filter', 91 'erode', 'errorplot', 'errplot', 'estimator_filter',
92 'execute', 'exit', 'exp', 'expand', 'expand_path', 'expint', 92 'execute', 'exit', 'exp', 'expand', 'expand_path', 'expint',
93 'extrac', 'extract_slice', 'factorial', 'fft', 'filepath', 93 'extrac', 'extract_slice', 'factorial', 'fft', 'filepath',
94 'file_basename', 'file_chmod', 'file_copy', 'file_delete', 94 'file_basename', 'file_chmod', 'file_copy', 'file_delete',
95 'file_dirname', 'file_expand_path', 'file_info', 95 'file_dirname', 'file_expand_path', 'file_info',
102 'fz_roots', 'f_cvf', 'f_pdf', 'gamma', 'gamma_ct', 102 'fz_roots', 'f_cvf', 'f_pdf', 'gamma', 'gamma_ct',
103 'gauss2dfit', 'gaussfit', 'gaussian_function', 'gaussint', 103 'gauss2dfit', 'gaussfit', 'gaussian_function', 'gaussint',
104 'gauss_cvf', 'gauss_pdf', 'gauss_smooth', 'getenv', 104 'gauss_cvf', 'gauss_pdf', 'gauss_smooth', 'getenv',
105 'getwindows', 'get_drive_list', 'get_dxf_objects', 105 'getwindows', 'get_drive_list', 'get_dxf_objects',
106 'get_kbrd', 'get_login_info', 'get_lun', 'get_screen_size', 106 'get_kbrd', 'get_login_info', 'get_lun', 'get_screen_size',
107 'greg2jul', 'grib_\w*', 'grid3', 'griddata', 107 'greg2jul', r'grib_\w*', 'grid3', 'griddata',
108 'grid_input', 'grid_tps', 'gs_iter', 108 'grid_input', 'grid_tps', 'gs_iter',
109 'h5[adfgirst]_\w*', 'h5_browser', 'h5_close', 109 r'h5[adfgirst]_\w*', 'h5_browser', 'h5_close',
110 'h5_create', 'h5_get_libversion', 'h5_open', 'h5_parse', 110 'h5_create', 'h5_get_libversion', 'h5_open', 'h5_parse',
111 'hanning', 'hash', 'hdf_\w*', 'heap_free', 111 'hanning', 'hash', r'hdf_\w*', 'heap_free',
112 'heap_gc', 'heap_nosave', 'heap_refcount', 'heap_save', 112 'heap_gc', 'heap_nosave', 'heap_refcount', 'heap_save',
113 'help', 'hilbert', 'histogram', 'hist_2d', 'hist_equal', 113 'help', 'hilbert', 'histogram', 'hist_2d', 'hist_equal',
114 'hls', 'hough', 'hqr', 'hsv', 'h_eq_ct', 'h_eq_int', 114 'hls', 'hough', 'hqr', 'hsv', 'h_eq_ct', 'h_eq_int',
115 'i18n_multibytetoutf8', 'i18n_multibytetowidechar', 115 'i18n_multibytetoutf8', 'i18n_multibytetowidechar',
116 'i18n_utf8tomultibyte', 'i18n_widechartomultibyte', 116 'i18n_utf8tomultibyte', 'i18n_widechartomultibyte',
154 'mesh_surfacearea', 'mesh_validate', 'mesh_volume', 154 'mesh_surfacearea', 'mesh_validate', 'mesh_volume',
155 'message', 'min', 'min_curve_surf', 'mk_html_help', 155 'message', 'min', 'min_curve_surf', 'mk_html_help',
156 'modifyct', 'moment', 'morph_close', 'morph_distance', 156 'modifyct', 'moment', 'morph_close', 'morph_distance',
157 'morph_gradient', 'morph_hitormiss', 'morph_open', 157 'morph_gradient', 'morph_hitormiss', 'morph_open',
158 'morph_thin', 'morph_tophat', 'multi', 'm_correlate', 158 'morph_thin', 'morph_tophat', 'multi', 'm_correlate',
159 'ncdf_\w*', 'newton', 'noise_hurl', 'noise_pick', 159 r'ncdf_\w*', 'newton', 'noise_hurl', 'noise_pick',
160 'noise_scatter', 'noise_slur', 'norm', 'n_elements', 160 'noise_scatter', 'noise_slur', 'norm', 'n_elements',
161 'n_params', 'n_tags', 'objarr', 'obj_class', 'obj_destroy', 161 'n_params', 'n_tags', 'objarr', 'obj_class', 'obj_destroy',
162 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid', 162 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid',
163 'online_help', 'on_error', 'open', 'oplot', 'oploterr', 163 'online_help', 'on_error', 'open', 'oplot', 'oploterr',
164 'parse_url', 'particle_trace', 'path_cache', 'path_sep', 164 'parse_url', 'particle_trace', 'path_cache', 'path_sep',
247 'xyouts', 'zoom', 'zoom_24') 247 'xyouts', 'zoom', 'zoom_24')
248 """Functions from: http://www.exelisvis.com/docs/routines-1.html""" 248 """Functions from: http://www.exelisvis.com/docs/routines-1.html"""
249 249
250 tokens = { 250 tokens = {
251 'root': [ 251 'root': [
252 (r'^\s*;.*?\n', Comment.Singleline), 252 (r'^\s*;.*?\n', Comment.Single),
253 (words(_RESERVED, prefix=r'\b', suffix=r'\b'), Keyword), 253 (words(_RESERVED, prefix=r'\b', suffix=r'\b'), Keyword),
254 (words(_BUILTIN_LIB, prefix=r'\b', suffix=r'\b'), Name.Builtin), 254 (words(_BUILTIN_LIB, prefix=r'\b', suffix=r'\b'), Name.Builtin),
255 (r'\+=|-=|\^=|\*=|/=|#=|##=|<=|>=|=', Operator), 255 (r'\+=|-=|\^=|\*=|/=|#=|##=|<=|>=|=', Operator),
256 (r'\+\+|--|->|\+|-|##|#|\*|/|<|>|&&|\^|~|\|\|\?|:', Operator), 256 (r'\+\+|--|->|\+|-|##|#|\*|/|<|>|&&|\^|~|\|\|\?|:', Operator),
257 (r'\b(mod=|lt=|le=|eq=|ne=|ge=|gt=|not=|and=|or=|xor=)', Operator), 257 (r'\b(mod=|lt=|le=|eq=|ne=|ge=|gt=|not=|and=|or=|xor=)', Operator),

eric ide

mercurial