Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/idl
File: idl.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others
[0] Fix | Delete
// Distributed under an MIT license: http://codemirror.net/LICENSE
[1] Fix | Delete
[2] Fix | Delete
(function(mod) {
[3] Fix | Delete
if (typeof exports == "object" && typeof module == "object") // CommonJS
[4] Fix | Delete
mod(require("../../lib/codemirror"));
[5] Fix | Delete
else if (typeof define == "function" && define.amd) // AMD
[6] Fix | Delete
define(["../../lib/codemirror"], mod);
[7] Fix | Delete
else // Plain browser env
[8] Fix | Delete
mod(CodeMirror);
[9] Fix | Delete
})(function(CodeMirror) {
[10] Fix | Delete
"use strict";
[11] Fix | Delete
[12] Fix | Delete
function wordRegexp(words) {
[13] Fix | Delete
return new RegExp('^((' + words.join(')|(') + '))\\b', 'i');
[14] Fix | Delete
};
[15] Fix | Delete
[16] Fix | Delete
var builtinArray = [
[17] Fix | Delete
'a_correlate', 'abs', 'acos', 'adapt_hist_equal', 'alog',
[18] Fix | Delete
'alog2', 'alog10', 'amoeba', 'annotate', 'app_user_dir',
[19] Fix | Delete
'app_user_dir_query', 'arg_present', 'array_equal', 'array_indices',
[20] Fix | Delete
'arrow', 'ascii_template', 'asin', 'assoc', 'atan',
[21] Fix | Delete
'axis', 'axis', 'bandpass_filter', 'bandreject_filter', 'barplot',
[22] Fix | Delete
'bar_plot', 'beseli', 'beselj', 'beselk', 'besely',
[23] Fix | Delete
'beta', 'biginteger', 'bilinear', 'bin_date', 'binary_template',
[24] Fix | Delete
'bindgen', 'binomial', 'bit_ffs', 'bit_population', 'blas_axpy',
[25] Fix | Delete
'blk_con', 'boolarr', 'boolean', 'boxplot', 'box_cursor',
[26] Fix | Delete
'breakpoint', 'broyden', 'bubbleplot', 'butterworth', 'bytarr',
[27] Fix | Delete
'byte', 'byteorder', 'bytscl', 'c_correlate', 'calendar',
[28] Fix | Delete
'caldat', 'call_external', 'call_function', 'call_method',
[29] Fix | Delete
'call_procedure', 'canny', 'catch', 'cd', 'cdf', 'ceil',
[30] Fix | Delete
'chebyshev', 'check_math', 'chisqr_cvf', 'chisqr_pdf', 'choldc',
[31] Fix | Delete
'cholsol', 'cindgen', 'cir_3pnt', 'clipboard', 'close',
[32] Fix | Delete
'clust_wts', 'cluster', 'cluster_tree', 'cmyk_convert', 'code_coverage',
[33] Fix | Delete
'color_convert', 'color_exchange', 'color_quan', 'color_range_map',
[34] Fix | Delete
'colorbar', 'colorize_sample', 'colormap_applicable',
[35] Fix | Delete
'colormap_gradient', 'colormap_rotation', 'colortable',
[36] Fix | Delete
'comfit', 'command_line_args', 'common', 'compile_opt', 'complex',
[37] Fix | Delete
'complexarr', 'complexround', 'compute_mesh_normals', 'cond', 'congrid',
[38] Fix | Delete
'conj', 'constrained_min', 'contour', 'contour', 'convert_coord',
[39] Fix | Delete
'convol', 'convol_fft', 'coord2to3', 'copy_lun', 'correlate',
[40] Fix | Delete
'cos', 'cosh', 'cpu', 'cramer', 'createboxplotdata',
[41] Fix | Delete
'create_cursor', 'create_struct', 'create_view', 'crossp', 'crvlength',
[42] Fix | Delete
'ct_luminance', 'cti_test', 'cursor', 'curvefit', 'cv_coord',
[43] Fix | Delete
'cvttobm', 'cw_animate', 'cw_animate_getp', 'cw_animate_load',
[44] Fix | Delete
'cw_animate_run', 'cw_arcball', 'cw_bgroup', 'cw_clr_index',
[45] Fix | Delete
'cw_colorsel', 'cw_defroi', 'cw_field', 'cw_filesel', 'cw_form',
[46] Fix | Delete
'cw_fslider', 'cw_light_editor', 'cw_light_editor_get',
[47] Fix | Delete
'cw_light_editor_set', 'cw_orient', 'cw_palette_editor',
[48] Fix | Delete
'cw_palette_editor_get', 'cw_palette_editor_set', 'cw_pdmenu',
[49] Fix | Delete
'cw_rgbslider', 'cw_tmpl', 'cw_zoom', 'db_exists',
[50] Fix | Delete
'dblarr', 'dcindgen', 'dcomplex', 'dcomplexarr', 'define_key',
[51] Fix | Delete
'define_msgblk', 'define_msgblk_from_file', 'defroi', 'defsysv',
[52] Fix | Delete
'delvar', 'dendro_plot', 'dendrogram', 'deriv', 'derivsig',
[53] Fix | Delete
'determ', 'device', 'dfpmin', 'diag_matrix', 'dialog_dbconnect',
[54] Fix | Delete
'dialog_message', 'dialog_pickfile', 'dialog_printersetup',
[55] Fix | Delete
'dialog_printjob', 'dialog_read_image',
[56] Fix | Delete
'dialog_write_image', 'dictionary', 'digital_filter', 'dilate', 'dindgen',
[57] Fix | Delete
'dissolve', 'dist', 'distance_measure', 'dlm_load', 'dlm_register',
[58] Fix | Delete
'doc_library', 'double', 'draw_roi', 'edge_dog', 'efont',
[59] Fix | Delete
'eigenql', 'eigenvec', 'ellipse', 'elmhes', 'emboss',
[60] Fix | Delete
'empty', 'enable_sysrtn', 'eof', 'eos', 'erase',
[61] Fix | Delete
'erf', 'erfc', 'erfcx', 'erode', 'errorplot',
[62] Fix | Delete
'errplot', 'estimator_filter', 'execute', 'exit', 'exp',
[63] Fix | Delete
'expand', 'expand_path', 'expint', 'extrac', 'extract_slice',
[64] Fix | Delete
'f_cvf', 'f_pdf', 'factorial', 'fft', 'file_basename',
[65] Fix | Delete
'file_chmod', 'file_copy', 'file_delete', 'file_dirname',
[66] Fix | Delete
'file_expand_path', 'file_gunzip', 'file_gzip', 'file_info',
[67] Fix | Delete
'file_lines', 'file_link', 'file_mkdir', 'file_move',
[68] Fix | Delete
'file_poll_input', 'file_readlink', 'file_same',
[69] Fix | Delete
'file_search', 'file_tar', 'file_test', 'file_untar', 'file_unzip',
[70] Fix | Delete
'file_which', 'file_zip', 'filepath', 'findgen', 'finite',
[71] Fix | Delete
'fix', 'flick', 'float', 'floor', 'flow3',
[72] Fix | Delete
'fltarr', 'flush', 'format_axis_values', 'forward_function', 'free_lun',
[73] Fix | Delete
'fstat', 'fulstr', 'funct', 'function', 'fv_test',
[74] Fix | Delete
'fx_root', 'fz_roots', 'gamma', 'gamma_ct', 'gauss_cvf',
[75] Fix | Delete
'gauss_pdf', 'gauss_smooth', 'gauss2dfit', 'gaussfit',
[76] Fix | Delete
'gaussian_function', 'gaussint', 'get_drive_list', 'get_dxf_objects',
[77] Fix | Delete
'get_kbrd', 'get_login_info',
[78] Fix | Delete
'get_lun', 'get_screen_size', 'getenv', 'getwindows', 'greg2jul',
[79] Fix | Delete
'grib', 'grid_input', 'grid_tps', 'grid3', 'griddata',
[80] Fix | Delete
'gs_iter', 'h_eq_ct', 'h_eq_int', 'hanning', 'hash',
[81] Fix | Delete
'hdf', 'hdf5', 'heap_free', 'heap_gc', 'heap_nosave',
[82] Fix | Delete
'heap_refcount', 'heap_save', 'help', 'hilbert', 'hist_2d',
[83] Fix | Delete
'hist_equal', 'histogram', 'hls', 'hough', 'hqr',
[84] Fix | Delete
'hsv', 'i18n_multibytetoutf8',
[85] Fix | Delete
'i18n_multibytetowidechar', 'i18n_utf8tomultibyte',
[86] Fix | Delete
'i18n_widechartomultibyte',
[87] Fix | Delete
'ibeta', 'icontour', 'iconvertcoord', 'idelete', 'identity',
[88] Fix | Delete
'idl_base64', 'idl_container', 'idl_validname',
[89] Fix | Delete
'idlexbr_assistant', 'idlitsys_createtool',
[90] Fix | Delete
'idlunit', 'iellipse', 'igamma', 'igetcurrent', 'igetdata',
[91] Fix | Delete
'igetid', 'igetproperty', 'iimage', 'image', 'image_cont',
[92] Fix | Delete
'image_statistics', 'image_threshold', 'imaginary', 'imap', 'indgen',
[93] Fix | Delete
'int_2d', 'int_3d', 'int_tabulated', 'intarr', 'interpol',
[94] Fix | Delete
'interpolate', 'interval_volume', 'invert', 'ioctl', 'iopen',
[95] Fix | Delete
'ir_filter', 'iplot', 'ipolygon', 'ipolyline', 'iputdata',
[96] Fix | Delete
'iregister', 'ireset', 'iresolve', 'irotate', 'isa',
[97] Fix | Delete
'isave', 'iscale', 'isetcurrent', 'isetproperty', 'ishft',
[98] Fix | Delete
'isocontour', 'isosurface', 'isurface', 'itext', 'itranslate',
[99] Fix | Delete
'ivector', 'ivolume', 'izoom', 'journal', 'json_parse',
[100] Fix | Delete
'json_serialize', 'jul2greg', 'julday', 'keyword_set', 'krig2d',
[101] Fix | Delete
'kurtosis', 'kw_test', 'l64indgen', 'la_choldc', 'la_cholmprove',
[102] Fix | Delete
'la_cholsol', 'la_determ', 'la_eigenproblem', 'la_eigenql', 'la_eigenvec',
[103] Fix | Delete
'la_elmhes', 'la_gm_linear_model', 'la_hqr', 'la_invert',
[104] Fix | Delete
'la_least_square_equality', 'la_least_squares', 'la_linear_equation',
[105] Fix | Delete
'la_ludc', 'la_lumprove', 'la_lusol',
[106] Fix | Delete
'la_svd', 'la_tridc', 'la_trimprove', 'la_triql', 'la_trired',
[107] Fix | Delete
'la_trisol', 'label_date', 'label_region', 'ladfit', 'laguerre',
[108] Fix | Delete
'lambda', 'lambdap', 'lambertw', 'laplacian', 'least_squares_filter',
[109] Fix | Delete
'leefilt', 'legend', 'legendre', 'linbcg', 'lindgen',
[110] Fix | Delete
'linfit', 'linkimage', 'list', 'll_arc_distance', 'lmfit',
[111] Fix | Delete
'lmgr', 'lngamma', 'lnp_test', 'loadct', 'locale_get',
[112] Fix | Delete
'logical_and', 'logical_or', 'logical_true', 'lon64arr', 'lonarr',
[113] Fix | Delete
'long', 'long64', 'lsode', 'lu_complex', 'ludc',
[114] Fix | Delete
'lumprove', 'lusol', 'm_correlate', 'machar', 'make_array',
[115] Fix | Delete
'make_dll', 'make_rt', 'map', 'mapcontinents', 'mapgrid',
[116] Fix | Delete
'map_2points', 'map_continents', 'map_grid', 'map_image', 'map_patch',
[117] Fix | Delete
'map_proj_forward', 'map_proj_image', 'map_proj_info',
[118] Fix | Delete
'map_proj_init', 'map_proj_inverse',
[119] Fix | Delete
'map_set', 'matrix_multiply', 'matrix_power', 'max', 'md_test',
[120] Fix | Delete
'mean', 'meanabsdev', 'mean_filter', 'median', 'memory',
[121] Fix | Delete
'mesh_clip', 'mesh_decimate', 'mesh_issolid',
[122] Fix | Delete
'mesh_merge', 'mesh_numtriangles',
[123] Fix | Delete
'mesh_obj', 'mesh_smooth', 'mesh_surfacearea',
[124] Fix | Delete
'mesh_validate', 'mesh_volume',
[125] Fix | Delete
'message', 'min', 'min_curve_surf', 'mk_html_help', 'modifyct',
[126] Fix | Delete
'moment', 'morph_close', 'morph_distance',
[127] Fix | Delete
'morph_gradient', 'morph_hitormiss',
[128] Fix | Delete
'morph_open', 'morph_thin', 'morph_tophat', 'multi', 'n_elements',
[129] Fix | Delete
'n_params', 'n_tags', 'ncdf', 'newton', 'noise_hurl',
[130] Fix | Delete
'noise_pick', 'noise_scatter', 'noise_slur', 'norm', 'obj_class',
[131] Fix | Delete
'obj_destroy', 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid',
[132] Fix | Delete
'objarr', 'on_error', 'on_ioerror', 'online_help', 'openr',
[133] Fix | Delete
'openu', 'openw', 'oplot', 'oploterr', 'orderedhash',
[134] Fix | Delete
'p_correlate', 'parse_url', 'particle_trace', 'path_cache', 'path_sep',
[135] Fix | Delete
'pcomp', 'plot', 'plot3d', 'plot', 'plot_3dbox',
[136] Fix | Delete
'plot_field', 'ploterr', 'plots', 'polar_contour', 'polar_surface',
[137] Fix | Delete
'polyfill', 'polyshade', 'pnt_line', 'point_lun', 'polarplot',
[138] Fix | Delete
'poly', 'poly_2d', 'poly_area', 'poly_fit', 'polyfillv',
[139] Fix | Delete
'polygon', 'polyline', 'polywarp', 'popd', 'powell',
[140] Fix | Delete
'pref_commit', 'pref_get', 'pref_set', 'prewitt', 'primes',
[141] Fix | Delete
'print', 'printf', 'printd', 'pro', 'product',
[142] Fix | Delete
'profile', 'profiler', 'profiles', 'project_vol', 'ps_show_fonts',
[143] Fix | Delete
'psafm', 'pseudo', 'ptr_free', 'ptr_new', 'ptr_valid',
[144] Fix | Delete
'ptrarr', 'pushd', 'qgrid3', 'qhull', 'qromb',
[145] Fix | Delete
'qromo', 'qsimp', 'query_*', 'query_ascii', 'query_bmp',
[146] Fix | Delete
'query_csv', 'query_dicom', 'query_gif', 'query_image', 'query_jpeg',
[147] Fix | Delete
'query_jpeg2000', 'query_mrsid', 'query_pict', 'query_png', 'query_ppm',
[148] Fix | Delete
'query_srf', 'query_tiff', 'query_video', 'query_wav', 'r_correlate',
[149] Fix | Delete
'r_test', 'radon', 'randomn', 'randomu', 'ranks',
[150] Fix | Delete
'rdpix', 'read', 'readf', 'read_ascii', 'read_binary',
[151] Fix | Delete
'read_bmp', 'read_csv', 'read_dicom', 'read_gif', 'read_image',
[152] Fix | Delete
'read_interfile', 'read_jpeg', 'read_jpeg2000', 'read_mrsid', 'read_pict',
[153] Fix | Delete
'read_png', 'read_ppm', 'read_spr', 'read_srf', 'read_sylk',
[154] Fix | Delete
'read_tiff', 'read_video', 'read_wav', 'read_wave', 'read_x11_bitmap',
[155] Fix | Delete
'read_xwd', 'reads', 'readu', 'real_part', 'rebin',
[156] Fix | Delete
'recall_commands', 'recon3', 'reduce_colors', 'reform', 'region_grow',
[157] Fix | Delete
'register_cursor', 'regress', 'replicate',
[158] Fix | Delete
'replicate_inplace', 'resolve_all',
[159] Fix | Delete
'resolve_routine', 'restore', 'retall', 'return', 'reverse',
[160] Fix | Delete
'rk4', 'roberts', 'rot', 'rotate', 'round',
[161] Fix | Delete
'routine_filepath', 'routine_info', 'rs_test', 's_test', 'save',
[162] Fix | Delete
'savgol', 'scale3', 'scale3d', 'scatterplot', 'scatterplot3d',
[163] Fix | Delete
'scope_level', 'scope_traceback', 'scope_varfetch',
[164] Fix | Delete
'scope_varname', 'search2d',
[165] Fix | Delete
'search3d', 'sem_create', 'sem_delete', 'sem_lock', 'sem_release',
[166] Fix | Delete
'set_plot', 'set_shading', 'setenv', 'sfit', 'shade_surf',
[167] Fix | Delete
'shade_surf_irr', 'shade_volume', 'shift', 'shift_diff', 'shmdebug',
[168] Fix | Delete
'shmmap', 'shmunmap', 'shmvar', 'show3', 'showfont',
[169] Fix | Delete
'signum', 'simplex', 'sin', 'sindgen', 'sinh',
[170] Fix | Delete
'size', 'skewness', 'skip_lun', 'slicer3', 'slide_image',
[171] Fix | Delete
'smooth', 'sobel', 'socket', 'sort', 'spawn',
[172] Fix | Delete
'sph_4pnt', 'sph_scat', 'spher_harm', 'spl_init', 'spl_interp',
[173] Fix | Delete
'spline', 'spline_p', 'sprsab', 'sprsax', 'sprsin',
[174] Fix | Delete
'sprstp', 'sqrt', 'standardize', 'stddev', 'stop',
[175] Fix | Delete
'strarr', 'strcmp', 'strcompress', 'streamline', 'streamline',
[176] Fix | Delete
'stregex', 'stretch', 'string', 'strjoin', 'strlen',
[177] Fix | Delete
'strlowcase', 'strmatch', 'strmessage', 'strmid', 'strpos',
[178] Fix | Delete
'strput', 'strsplit', 'strtrim', 'struct_assign', 'struct_hide',
[179] Fix | Delete
'strupcase', 'surface', 'surface', 'surfr', 'svdc',
[180] Fix | Delete
'svdfit', 'svsol', 'swap_endian', 'swap_endian_inplace', 'symbol',
[181] Fix | Delete
'systime', 't_cvf', 't_pdf', 't3d', 'tag_names',
[182] Fix | Delete
'tan', 'tanh', 'tek_color', 'temporary', 'terminal_size',
[183] Fix | Delete
'tetra_clip', 'tetra_surface', 'tetra_volume', 'text', 'thin',
[184] Fix | Delete
'thread', 'threed', 'tic', 'time_test2', 'timegen',
[185] Fix | Delete
'timer', 'timestamp', 'timestamptovalues', 'tm_test', 'toc',
[186] Fix | Delete
'total', 'trace', 'transpose', 'tri_surf', 'triangulate',
[187] Fix | Delete
'trigrid', 'triql', 'trired', 'trisol', 'truncate_lun',
[188] Fix | Delete
'ts_coef', 'ts_diff', 'ts_fcast', 'ts_smooth', 'tv',
[189] Fix | Delete
'tvcrs', 'tvlct', 'tvrd', 'tvscl', 'typename',
[190] Fix | Delete
'uindgen', 'uint', 'uintarr', 'ul64indgen', 'ulindgen',
[191] Fix | Delete
'ulon64arr', 'ulonarr', 'ulong', 'ulong64', 'uniq',
[192] Fix | Delete
'unsharp_mask', 'usersym', 'value_locate', 'variance', 'vector',
[193] Fix | Delete
'vector_field', 'vel', 'velovect', 'vert_t3d', 'voigt',
[194] Fix | Delete
'volume', 'voronoi', 'voxel_proj', 'wait', 'warp_tri',
[195] Fix | Delete
'watershed', 'wdelete', 'wf_draw', 'where', 'widget_base',
[196] Fix | Delete
'widget_button', 'widget_combobox', 'widget_control',
[197] Fix | Delete
'widget_displaycontextmenu', 'widget_draw',
[198] Fix | Delete
'widget_droplist', 'widget_event', 'widget_info',
[199] Fix | Delete
'widget_label', 'widget_list',
[200] Fix | Delete
'widget_propertysheet', 'widget_slider', 'widget_tab',
[201] Fix | Delete
'widget_table', 'widget_text',
[202] Fix | Delete
'widget_tree', 'widget_tree_move', 'widget_window',
[203] Fix | Delete
'wiener_filter', 'window',
[204] Fix | Delete
'window', 'write_bmp', 'write_csv', 'write_gif', 'write_image',
[205] Fix | Delete
'write_jpeg', 'write_jpeg2000', 'write_nrif', 'write_pict', 'write_png',
[206] Fix | Delete
'write_ppm', 'write_spr', 'write_srf', 'write_sylk', 'write_tiff',
[207] Fix | Delete
'write_video', 'write_wav', 'write_wave', 'writeu', 'wset',
[208] Fix | Delete
'wshow', 'wtn', 'wv_applet', 'wv_cwt', 'wv_cw_wavelet',
[209] Fix | Delete
'wv_denoise', 'wv_dwt', 'wv_fn_coiflet',
[210] Fix | Delete
'wv_fn_daubechies', 'wv_fn_gaussian',
[211] Fix | Delete
'wv_fn_haar', 'wv_fn_morlet', 'wv_fn_paul',
[212] Fix | Delete
'wv_fn_symlet', 'wv_import_data',
[213] Fix | Delete
'wv_import_wavelet', 'wv_plot3d_wps', 'wv_plot_multires',
[214] Fix | Delete
'wv_pwt', 'wv_tool_denoise',
[215] Fix | Delete
'xbm_edit', 'xdisplayfile', 'xdxf', 'xfont', 'xinteranimate',
[216] Fix | Delete
'xloadct', 'xmanager', 'xmng_tmpl', 'xmtool', 'xobjview',
[217] Fix | Delete
'xobjview_rotate', 'xobjview_write_image',
[218] Fix | Delete
'xpalette', 'xpcolor', 'xplot3d',
[219] Fix | Delete
'xregistered', 'xroi', 'xsq_test', 'xsurface', 'xvaredit',
[220] Fix | Delete
'xvolume', 'xvolume_rotate', 'xvolume_write_image',
[221] Fix | Delete
'xyouts', 'zlib_compress', 'zlib_uncompress', 'zoom', 'zoom_24'
[222] Fix | Delete
];
[223] Fix | Delete
var builtins = wordRegexp(builtinArray);
[224] Fix | Delete
[225] Fix | Delete
var keywordArray = [
[226] Fix | Delete
'begin', 'end', 'endcase', 'endfor',
[227] Fix | Delete
'endwhile', 'endif', 'endrep', 'endforeach',
[228] Fix | Delete
'break', 'case', 'continue', 'for',
[229] Fix | Delete
'foreach', 'goto', 'if', 'then', 'else',
[230] Fix | Delete
'repeat', 'until', 'switch', 'while',
[231] Fix | Delete
'do', 'pro', 'function'
[232] Fix | Delete
];
[233] Fix | Delete
var keywords = wordRegexp(keywordArray);
[234] Fix | Delete
[235] Fix | Delete
CodeMirror.registerHelper("hintWords", "idl", builtinArray.concat(keywordArray));
[236] Fix | Delete
[237] Fix | Delete
var identifiers = new RegExp('^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*', 'i');
[238] Fix | Delete
[239] Fix | Delete
var singleOperators = /[+\-*&=<>\/@#~$]/;
[240] Fix | Delete
var boolOperators = new RegExp('(and|or|eq|lt|le|gt|ge|ne|not)', 'i');
[241] Fix | Delete
[242] Fix | Delete
function tokenBase(stream) {
[243] Fix | Delete
// whitespaces
[244] Fix | Delete
if (stream.eatSpace()) return null;
[245] Fix | Delete
[246] Fix | Delete
// Handle one line Comments
[247] Fix | Delete
if (stream.match(';')) {
[248] Fix | Delete
stream.skipToEnd();
[249] Fix | Delete
return 'comment';
[250] Fix | Delete
}
[251] Fix | Delete
[252] Fix | Delete
// Handle Number Literals
[253] Fix | Delete
if (stream.match(/^[0-9\.+-]/, false)) {
[254] Fix | Delete
if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
[255] Fix | Delete
return 'number';
[256] Fix | Delete
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
[257] Fix | Delete
return 'number';
[258] Fix | Delete
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
[259] Fix | Delete
return 'number';
[260] Fix | Delete
}
[261] Fix | Delete
[262] Fix | Delete
// Handle Strings
[263] Fix | Delete
if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; }
[264] Fix | Delete
if (stream.match(/^'([^']|(''))*'/)) { return 'string'; }
[265] Fix | Delete
[266] Fix | Delete
// Handle words
[267] Fix | Delete
if (stream.match(keywords)) { return 'keyword'; }
[268] Fix | Delete
if (stream.match(builtins)) { return 'builtin'; }
[269] Fix | Delete
if (stream.match(identifiers)) { return 'variable'; }
[270] Fix | Delete
[271] Fix | Delete
if (stream.match(singleOperators) || stream.match(boolOperators)) {
[272] Fix | Delete
return 'operator'; }
[273] Fix | Delete
[274] Fix | Delete
// Handle non-detected items
[275] Fix | Delete
stream.next();
[276] Fix | Delete
return null;
[277] Fix | Delete
};
[278] Fix | Delete
[279] Fix | Delete
CodeMirror.defineMode('idl', function() {
[280] Fix | Delete
return {
[281] Fix | Delete
token: function(stream) {
[282] Fix | Delete
return tokenBase(stream);
[283] Fix | Delete
}
[284] Fix | Delete
};
[285] Fix | Delete
});
[286] Fix | Delete
[287] Fix | Delete
CodeMirror.defineMIME('text/x-idl', 'idl');
[288] Fix | Delete
});
[289] Fix | Delete
[290] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function