| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							|  |  |  | " Language:	Motif UIL (User Interface Language) | 
					
						
							|  |  |  | " Maintainer:	Thomas Koehler <jean-luc@picard.franken.de> | 
					
						
							| 
									
										
										
										
											2016-09-06 22:12:34 +02:00
										 |  |  | "		Please be aware: I'm often slow to answer email due to a high | 
					
						
							|  |  |  | "		non-computer related workload (sometimes 4-8 weeks) | 
					
						
							|  |  |  | " Last Change:	2016 September 6 | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | " URL:		http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/uil.vim | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " quit when a syntax file was already loaded | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " A bunch of useful keywords | 
					
						
							|  |  |  | syn keyword uilType	arguments	callbacks	color | 
					
						
							|  |  |  | syn keyword uilType	compound_string	controls	end | 
					
						
							|  |  |  | syn keyword uilType	exported	file		include | 
					
						
							|  |  |  | syn keyword uilType	module		object		procedure | 
					
						
							|  |  |  | syn keyword uilType	user_defined	xbitmapfile | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword uilTodo contained	TODO | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-18 13:46:39 +02:00
										 |  |  | " String and Character constants | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Highlight special characters (those which have a backslash) differently | 
					
						
							|  |  |  | syn match   uilSpecial contained "\\\d\d\d\|\\." | 
					
						
							| 
									
										
										
										
											2012-05-18 13:46:39 +02:00
										 |  |  | syn region  uilString		start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=@Spell,uilSpecial | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | syn match   uilCharacter	"'[^\\]'" | 
					
						
							| 
									
										
										
										
											2013-06-01 14:50:56 +02:00
										 |  |  | syn region  uilString		start=+'+  skip=+\\\\\|\\'+  end=+'+  contains=@Spell,uilSpecial | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | syn match   uilSpecialCharacter	"'\\.'" | 
					
						
							| 
									
										
										
										
											2013-06-01 14:50:56 +02:00
										 |  |  | syn match   uilSpecialStatement	"Xm[^	 =(){}:;]*" | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | syn match   uilSpecialFunction	"MrmNcreateCallback" | 
					
						
							| 
									
										
										
										
											2013-06-01 14:50:56 +02:00
										 |  |  | syn match   uilRessource	"XmN[^	 =(){}:;]*" | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | syn match  uilNumber		"-\=\<\d*\.\=\d\+\(e\=f\=\|[uU]\=[lL]\=\)\>" | 
					
						
							| 
									
										
										
										
											2012-05-18 13:46:39 +02:00
										 |  |  | syn match  uilNumber		"0[xX]\x\+\>" | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-18 13:46:39 +02:00
										 |  |  | syn region uilComment		start="/\*"  end="\*/" contains=@Spell,uilTodo | 
					
						
							|  |  |  | syn match  uilComment		"!.*" contains=@Spell,uilTodo | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | syn match  uilCommentError	"\*/" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region uilPreCondit		start="^#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)"  skip="\\$"  end="$" contains=uilComment,uilString,uilCharacter,uilNumber,uilCommentError | 
					
						
							|  |  |  | syn match  uilIncluded contained "<[^>]*>" | 
					
						
							|  |  |  | syn match  uilInclude		"^#\s*include\s\+." contains=uilString,uilIncluded | 
					
						
							|  |  |  | syn match  uilLineSkip		"\\$" | 
					
						
							|  |  |  | syn region uilDefine		start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentError | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn sync ccomment uilComment | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting. | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " Only when an item doesn't have highlighting yet | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " The default highlighting. | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link uilCharacter		uilString | 
					
						
							|  |  |  | hi def link uilSpecialCharacter	uilSpecial | 
					
						
							|  |  |  | hi def link uilNumber		uilString | 
					
						
							|  |  |  | hi def link uilCommentError	uilError | 
					
						
							|  |  |  | hi def link uilInclude		uilPreCondit | 
					
						
							|  |  |  | hi def link uilDefine		uilPreCondit | 
					
						
							|  |  |  | hi def link uilIncluded		uilString | 
					
						
							|  |  |  | hi def link uilSpecialFunction	uilRessource | 
					
						
							|  |  |  | hi def link uilRessource		Identifier | 
					
						
							|  |  |  | hi def link uilSpecialStatement	Keyword | 
					
						
							|  |  |  | hi def link uilError		Error | 
					
						
							|  |  |  | hi def link uilPreCondit		PreCondit | 
					
						
							|  |  |  | hi def link uilType		Type | 
					
						
							|  |  |  | hi def link uilString		String | 
					
						
							|  |  |  | hi def link uilComment		Comment | 
					
						
							|  |  |  | hi def link uilSpecial		Special | 
					
						
							|  |  |  | hi def link uilTodo		Todo | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "uil" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " vim: ts=8 |