33 flags = re.IGNORECASE | re.MULTILINE |
33 flags = re.IGNORECASE | re.MULTILINE |
34 |
34 |
35 flowControl = ( |
35 flowControl = ( |
36 'if', 'else', 'elseif', 'endif', 'for', 'endfor', 'strswitch', 'switch', |
36 'if', 'else', 'elseif', 'endif', 'for', 'endfor', 'strswitch', 'switch', |
37 'case', 'default', 'endswitch', 'do', 'while', 'try', 'catch', 'endtry', |
37 'case', 'default', 'endswitch', 'do', 'while', 'try', 'catch', 'endtry', |
38 'break', 'continue', 'return', |
38 'break', 'continue', 'return', 'AbortOnRTE', 'AbortOnValue' |
39 ) |
39 ) |
40 types = ( |
40 types = ( |
41 'variable', 'string', 'constant', 'strconstant', 'NVAR', 'SVAR', 'WAVE', |
41 'variable', 'string', 'constant', 'strconstant', 'NVAR', 'SVAR', 'WAVE', |
42 'STRUCT', 'dfref' |
42 'STRUCT', 'dfref', 'funcref', 'char', 'uchar', 'int16', 'uint16', 'int32', |
|
43 'uint32', 'float', 'double' |
43 ) |
44 ) |
44 keywords = ( |
45 keywords = ( |
45 'override', 'ThreadSafe', 'static', 'FuncFit', 'Proc', 'Picture', |
46 'override', 'ThreadSafe', 'MultiThread', 'static', 'Proc', |
46 'Prompt', 'DoPrompt', 'macro', 'window', 'graph', 'function', 'end', |
47 'Picture', 'Prompt', 'DoPrompt', 'macro', 'window', 'function', 'end', |
47 'Structure', 'EndStructure', 'EndMacro', 'Menu', 'SubMenu', |
48 'Structure', 'EndStructure', 'EndMacro', 'Menu', 'SubMenu' |
48 ) |
49 ) |
49 operations = ( |
50 operations = ( |
50 'Abort', 'AddFIFOData', 'AddFIFOVectData', 'AddMovieAudio', |
51 'Abort', 'AddFIFOData', 'AddFIFOVectData', 'AddMovieAudio', |
51 'AddMovieFrame', 'APMath', 'Append', 'AppendImage', |
52 'AddMovieFrame', 'APMath', 'Append', 'AppendImage', |
52 'AppendLayoutObject', 'AppendMatrixContour', 'AppendText', |
53 'AppendLayoutObject', 'AppendMatrixContour', 'AppendText', |
159 'chebyshevU', 'CheckName', 'cmplx', 'cmpstr', 'conj', 'ContourZ', 'cos', |
160 'chebyshevU', 'CheckName', 'cmplx', 'cmpstr', 'conj', 'ContourZ', 'cos', |
160 'cosh', 'cot', 'CountObjects', 'CountObjectsDFR', 'cpowi', |
161 'cosh', 'cot', 'CountObjects', 'CountObjectsDFR', 'cpowi', |
161 'CreationDate', 'csc', 'DataFolderExists', 'DataFolderRefsEqual', |
162 'CreationDate', 'csc', 'DataFolderExists', 'DataFolderRefsEqual', |
162 'DataFolderRefStatus', 'date2secs', 'datetime', 'DateToJulian', |
163 'DataFolderRefStatus', 'date2secs', 'datetime', 'DateToJulian', |
163 'Dawson', 'DDEExecute', 'DDEInitiate', 'DDEPokeString', 'DDEPokeWave', |
164 'Dawson', 'DDEExecute', 'DDEInitiate', 'DDEPokeString', 'DDEPokeWave', |
164 'DDERequestWave', 'DDEStatus', 'DDETerminate', 'deltax', 'digamma', |
165 'DDERequestWave', 'DDEStatus', 'DDETerminate', 'defined', 'deltax', 'digamma', |
165 'DimDelta', 'DimOffset', 'DimSize', 'ei', 'enoise', 'equalWaves', 'erf', |
166 'DimDelta', 'DimOffset', 'DimSize', 'ei', 'enoise', 'equalWaves', 'erf', |
166 'erfc', 'exists', 'exp', 'expInt', 'expNoise', 'factorial', 'fakedata', |
167 'erfc', 'exists', 'exp', 'expInt', 'expNoise', 'factorial', 'fakedata', |
167 'faverage', 'faverageXY', 'FindDimLabel', 'FindListItem', 'floor', |
168 'faverage', 'faverageXY', 'FindDimLabel', 'FindListItem', 'floor', |
168 'FontSizeHeight', 'FontSizeStringWidth', 'FresnelCos', 'FresnelSin', |
169 'FontSizeHeight', 'FontSizeStringWidth', 'FresnelCos', 'FresnelSin', |
169 'gamma', 'gammaInc', 'gammaNoise', 'gammln', 'gammp', 'gammq', 'Gauss', |
170 'gamma', 'gammaInc', 'gammaNoise', 'gammln', 'gammp', 'gammq', 'Gauss', |
221 'strlen', 'strsearch', 'StudentA', 'StudentT', 'sum', 'SVAR_Exists', |
222 'strlen', 'strsearch', 'StudentA', 'StudentT', 'sum', 'SVAR_Exists', |
222 'TagVal', 'tan', 'tanh', 'ThreadGroupCreate', 'ThreadGroupRelease', |
223 'TagVal', 'tan', 'tanh', 'ThreadGroupCreate', 'ThreadGroupRelease', |
223 'ThreadGroupWait', 'ThreadProcessorCount', 'ThreadReturnValue', 'ticks', |
224 'ThreadGroupWait', 'ThreadProcessorCount', 'ThreadReturnValue', 'ticks', |
224 'trunc', 'Variance', 'vcsr', 'WaveCRC', 'WaveDims', 'WaveExists', |
225 'trunc', 'Variance', 'vcsr', 'WaveCRC', 'WaveDims', 'WaveExists', |
225 'WaveMax', 'WaveMin', 'WaveRefsEqual', 'WaveType', 'WhichListItem', |
226 'WaveMax', 'WaveMin', 'WaveRefsEqual', 'WaveType', 'WhichListItem', |
226 'WinType', 'WNoise', 'x', 'x2pnt', 'xcsr', 'y', 'z', 'zcsr', 'ZernikeR', |
227 'WinType', 'WNoise', 'x2pnt', 'xcsr', 'zcsr', 'ZernikeR', |
227 ) |
228 ) |
228 functions += ( |
229 functions += ( |
229 'AddListItem', 'AnnotationInfo', 'AnnotationList', 'AxisInfo', |
230 'AddListItem', 'AnnotationInfo', 'AnnotationList', 'AxisInfo', |
230 'AxisList', 'CaptureHistory', 'ChildWindowList', 'CleanupName', |
231 'AxisList', 'CaptureHistory', 'ChildWindowList', 'CleanupName', |
231 'ContourInfo', 'ContourNameList', 'ControlNameList', 'CsrInfo', |
232 'ContourInfo', 'ContourNameList', 'ControlNameList', 'CsrInfo', |