mirror of
				https://github.com/notepad-plus-plus/notepad-plus-plus.git
				synced 2025-10-31 11:34:05 +01:00 
			
		
		
		
	- added missing unittest for c - added further function lists for ada, fortran, fortran77, haskell from previous PR of MAPJe71_functionlist_update3 - added simple rust function list - unittest files from the internet probably no complex ones - added to installer Fix #9698, close #3393, close #9727
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8" ?>
 | |
| <!-- ==========================================================================\
 | |
| |
 | |
| |   To learn how to make your own language parser, please check the following
 | |
| |   link:
 | |
| |       https://npp-user-manual.org/docs/function-list/
 | |
| |
 | |
| \=========================================================================== -->
 | |
| <NotepadPlus>
 | |
| 	<functionList>
 | |
| 		<parser
 | |
| 			displayName="Fortran Fixed Form style - FORmula TRANslation"
 | |
| 			id         ="fortran_fixedform"
 | |
| 			commentExpr="(?x)                                               # free-spacing (see `RegEx - Pattern Modifiers`)
 | |
| 							(?m-s:(?:!|^[Cc*].*$)                           # Single Line Comment 1..3
 | |
| 						"
 | |
| 		>
 | |
| 			<function
 | |
| 				mainExpr="(?x)                                              # free-spacing (see `RegEx - Pattern Modifiers`)
 | |
| 						(?im-s)                                             # case-insensitive, ^ and $ match at line breaks, dot does not
 | |
| 						^\h*                                                # optional leading whitespace at start-of-line
 | |
| 						(?:FUNCTION|SUBROUTINE)\s+
 | |
| 						\K                                                  # discard text matched so far
 | |
| 						[A-Z]\w{0,62}                                       # valid character combination for identifiers
 | |
| 						(?:\s*\([^()]*\))?                                  # optional paramater list
 | |
| 					"
 | |
| 			>
 | |
| 				<!-- comment out the following node to display the method with its parameters -->
 | |
| 				<functionName>
 | |
| 					<nameExpr expr="\w+" />
 | |
| 				</functionName>
 | |
| 			</function>
 | |
| 		</parser>
 | |
| 	</functionList>
 | |
| </NotepadPlus> |