| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							|  |  |  | " Language:	Model | 
					
						
							| 
									
										
										
										
											2023-08-13 10:33:05 +02:00
										 |  |  | " Maintainer:	The Vim Project <https://github.com/vim/vim> | 
					
						
							|  |  |  | " Last Change:	2023 Aug 10 | 
					
						
							|  |  |  | " Former Maintainer:	Bram Moolenaar <Bram@vim.org> | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " very basic things only (based on the vgrindefs file). | 
					
						
							| 
									
										
										
										
											2023-08-23 20:23:07 +01:00
										 |  |  | " If you use this language, please improve it, and send patches! | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 22:37:39 +00:00
										 |  |  | " Quit when a (custom) syntax file was already loaded | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " A bunch of keywords | 
					
						
							|  |  |  | syn keyword modelKeyword abs and array boolean by case cdnl char copied dispose | 
					
						
							|  |  |  | syn keyword modelKeyword div do dynamic else elsif end entry external FALSE false | 
					
						
							|  |  |  | syn keyword modelKeyword fi file for formal fortran global if iff ift in integer include | 
					
						
							|  |  |  | syn keyword modelKeyword inline is lbnd max min mod new NIL nil noresult not notin od of | 
					
						
							|  |  |  | syn keyword modelKeyword or procedure public read readln readonly record recursive rem rep | 
					
						
							|  |  |  | syn keyword modelKeyword repeat res result return set space string subscript such then TRUE | 
					
						
							|  |  |  | syn keyword modelKeyword true type ubnd union until varies while width | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Special keywords | 
					
						
							|  |  |  | syn keyword modelBlock beginproc endproc | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Comments | 
					
						
							|  |  |  | syn region modelComment start="\$" end="\$" end="$" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Strings | 
					
						
							|  |  |  | syn region modelString start=+"+ end=+"+ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Character constant (is this right?) | 
					
						
							|  |  |  | syn match modelString "'." | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting. | 
					
						
							| 
									
										
										
										
											2005-06-21 22:37:39 +00:00
										 |  |  | " Only used when an item doesn't have highlighting yet | 
					
						
							|  |  |  | hi def link modelKeyword	Statement | 
					
						
							|  |  |  | hi def link modelBlock		PreProc | 
					
						
							|  |  |  | hi def link modelComment	Comment | 
					
						
							|  |  |  | hi def link modelString		String | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "model" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " vim: ts=8 sw=2 |