mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge pull request #1376 from t-b/add-igor-pro
Add highlighting for Igor Pro procedures
This commit is contained in:
		| @@ -1001,6 +1001,12 @@ IDL: | ||||
|   - .pro | ||||
|   - .dlm | ||||
|  | ||||
| IGOR Pro: | ||||
|   type: programming | ||||
|   lexer: Igor | ||||
|   extensions: | ||||
|   - .ipf | ||||
|  | ||||
| INI: | ||||
|   type: data | ||||
|   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