mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Add highlighting for Igor Pro procedures
Available in pygments since 5ceb7533e214. Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
This commit is contained in:
@@ -996,6 +996,12 @@ IDL:
|
|||||||
- .pro
|
- .pro
|
||||||
- .dlm
|
- .dlm
|
||||||
|
|
||||||
|
IGOR Pro:
|
||||||
|
type: programming
|
||||||
|
lexer: Igor
|
||||||
|
extensions:
|
||||||
|
- .ipf
|
||||||
|
|
||||||
INI:
|
INI:
|
||||||
type: data
|
type: data
|
||||||
extensions:
|
extensions:
|
||||||
|
|||||||
38
samples/IGOR Pro/functions.ipf
Normal file
38
samples/IGOR Pro/functions.ipf
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
#pragma rtGlobals=3
|
||||||
|
|
||||||
|
Function FooBar()
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
|
Function FooBarSubType() : ButtonControl
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
|
Function/D FooBarVar()
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
|
static Function FooBarStatic()
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
|
threadsafe static Function FooBarStaticThreadsafe()
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
|
threadsafe Function FooBarThread()
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
|
Function CallOperationsAndBuiltInFuncs(string var)
|
||||||
|
|
||||||
|
string someDQString = "abcd"
|
||||||
|
|
||||||
|
Make/N=(1,2,3,4) myWave
|
||||||
|
Redimension/N=(-1,-1,-1,5) myWave
|
||||||
|
|
||||||
|
print strlen(someDQString)
|
||||||
|
|
||||||
|
return 0
|
||||||
|
End
|
||||||
|
|
||||||
21
samples/IGOR Pro/generic.ipf
Normal file
21
samples/IGOR Pro/generic.ipf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#pragma rtGlobals=3
|
||||||
|
|
||||||
|
StrConstant myConstString="abcd"
|
||||||
|
// some comment
|
||||||
|
constant myConst=123
|
||||||
|
|
||||||
|
Structure struct1
|
||||||
|
string str
|
||||||
|
variable var
|
||||||
|
EndStructure
|
||||||
|
|
||||||
|
static Structure struct2
|
||||||
|
string str
|
||||||
|
variable var
|
||||||
|
EndStructure
|
||||||
|
|
||||||
|
#include "someFile"
|
||||||
|
|
||||||
|
#ifdef NOT_DEFINED
|
||||||
|
// conditional compilation
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user