summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorThomas Braun <thomas.braun@byte-physics.de>2015-01-22 17:28:44 +0100
committerThomas Braun <thomas.braun@byte-physics.de>2015-01-22 17:28:44 +0100
commitd294783f8714e3bc8f59f83affe5f02edf3dbd3f (patch)
treea01f64bcd880052cbea3aa37821e9c0d45da7a86 /pygments
parentfe72d20b50c75089fa1262b9f03fcb29c9e49282 (diff)
downloadpygments-d294783f8714e3bc8f59f83affe5f02edf3dbd3f.tar.gz
Igor Pro syntax
Add forgotten AbortOnRTE and AbortOnValue flowcontrol keywords. Add missing builtin types Changed keywords: - Removed Graph and FuncFit as these are function subtypes which are not highlighted. - Added MultiThread Changed operations: - Added defined - Removed the single character operations x, y, z as normal variables are easily misinterpreted for them.pygmentize -f html -O full,style=igor -o test.html test.ipf
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/igor.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/pygments/lexers/igor.py b/pygments/lexers/igor.py
index f558b80a..b0eaf6aa 100644
--- a/pygments/lexers/igor.py
+++ b/pygments/lexers/igor.py
@@ -35,16 +35,17 @@ class IgorLexer(RegexLexer):
flowControl = (
'if', 'else', 'elseif', 'endif', 'for', 'endfor', 'strswitch', 'switch',
'case', 'default', 'endswitch', 'do', 'while', 'try', 'catch', 'endtry',
- 'break', 'continue', 'return',
+ 'break', 'continue', 'return', 'AbortOnRTE', 'AbortOnValue'
)
types = (
'variable', 'string', 'constant', 'strconstant', 'NVAR', 'SVAR', 'WAVE',
- 'STRUCT', 'dfref'
+ 'STRUCT', 'dfref', 'funcref', 'char', 'uchar', 'int16', 'uint16', 'int32',
+ 'uint32', 'float', 'double'
)
keywords = (
- 'override', 'ThreadSafe', 'static', 'FuncFit', 'Proc', 'Picture',
- 'Prompt', 'DoPrompt', 'macro', 'window', 'graph', 'function', 'end',
- 'Structure', 'EndStructure', 'EndMacro', 'Menu', 'SubMenu',
+ 'override', 'ThreadSafe', 'MultiThread', 'static', 'Proc',
+ 'Picture', 'Prompt', 'DoPrompt', 'macro', 'window', 'function', 'end',
+ 'Structure', 'EndStructure', 'EndMacro', 'Menu', 'SubMenu'
)
operations = (
'Abort', 'AddFIFOData', 'AddFIFOVectData', 'AddMovieAudio',
@@ -161,7 +162,7 @@ class IgorLexer(RegexLexer):
'CreationDate', 'csc', 'DataFolderExists', 'DataFolderRefsEqual',
'DataFolderRefStatus', 'date2secs', 'datetime', 'DateToJulian',
'Dawson', 'DDEExecute', 'DDEInitiate', 'DDEPokeString', 'DDEPokeWave',
- 'DDERequestWave', 'DDEStatus', 'DDETerminate', 'deltax', 'digamma',
+ 'DDERequestWave', 'DDEStatus', 'DDETerminate', 'defined', 'deltax', 'digamma',
'DimDelta', 'DimOffset', 'DimSize', 'ei', 'enoise', 'equalWaves', 'erf',
'erfc', 'exists', 'exp', 'expInt', 'expNoise', 'factorial', 'fakedata',
'faverage', 'faverageXY', 'FindDimLabel', 'FindListItem', 'floor',
@@ -223,7 +224,7 @@ class IgorLexer(RegexLexer):
'ThreadGroupWait', 'ThreadProcessorCount', 'ThreadReturnValue', 'ticks',
'trunc', 'Variance', 'vcsr', 'WaveCRC', 'WaveDims', 'WaveExists',
'WaveMax', 'WaveMin', 'WaveRefsEqual', 'WaveType', 'WhichListItem',
- 'WinType', 'WNoise', 'x', 'x2pnt', 'xcsr', 'y', 'z', 'zcsr', 'ZernikeR',
+ 'WinType', 'WNoise', 'x2pnt', 'xcsr', 'zcsr', 'ZernikeR',
)
functions += (
'AddListItem', 'AnnotationInfo', 'AnnotationList', 'AxisInfo',