| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							|  |  |  | " This is a GENERATED FILE. Please always refer to source file at the URI below. | 
					
						
							|  |  |  | " Language: Web2C TeX texmf.cnf configuration file | 
					
						
							|  |  |  | " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> | 
					
						
							|  |  |  | " Last Change: 2001-05-13 | 
					
						
							|  |  |  | " URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Setup | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " quit when a syntax file was already loaded | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							|  |  |  |   finish | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn case match | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Comments | 
					
						
							|  |  |  | syn match texmfComment "%..\+$" contains=texmfTodo | 
					
						
							|  |  |  | syn match texmfComment "%\s*$" contains=texmfTodo | 
					
						
							|  |  |  | syn keyword texmfTodo TODO FIXME XXX NOT contained | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Constants and parameters | 
					
						
							|  |  |  | syn match texmfPassedParameter "[-+]\=%\w\W" | 
					
						
							|  |  |  | syn match texmfPassedParameter "[-+]\=%\w$" | 
					
						
							|  |  |  | syn match texmfNumber "\<\d\+\>" | 
					
						
							|  |  |  | syn match texmfVariable "\$\(\w\k*\|{\w\k*}\)" | 
					
						
							|  |  |  | syn match texmfSpecial +\\"\|\\$+ | 
					
						
							|  |  |  | syn region texmfString start=+"+ end=+"+ skip=+\\"\\\\+ contains=texmfVariable,texmfSpecial,texmfPassedParameter | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Assignments | 
					
						
							|  |  |  | syn match texmfLHSStart "^\s*\w\k*" nextgroup=texmfLHSDot,texmfEquals | 
					
						
							|  |  |  | syn match texmfLHSVariable "\w\k*" contained nextgroup=texmfLHSDot,texmfEquals | 
					
						
							|  |  |  | syn match texmfLHSDot "\." contained nextgroup=texmfLHSVariable | 
					
						
							|  |  |  | syn match texmfEquals "\s*=" contained | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Specialities | 
					
						
							|  |  |  | syn match texmfComma "," contained | 
					
						
							|  |  |  | syn match texmfColons ":\|;" | 
					
						
							|  |  |  | syn match texmfDoubleExclam "!!" contained | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Catch errors caused by wrong parenthesization | 
					
						
							|  |  |  | syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparent | 
					
						
							|  |  |  | syn match texmfBraceError "}" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfComment Comment | 
					
						
							|  |  |  | hi def link texmfTodo Todo | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfPassedParameter texmfVariable | 
					
						
							|  |  |  | hi def link texmfVariable Identifier | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfNumber Number | 
					
						
							|  |  |  | hi def link texmfString String | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfLHSStart texmfLHS | 
					
						
							|  |  |  | hi def link texmfLHSVariable texmfLHS | 
					
						
							|  |  |  | hi def link texmfLHSDot texmfLHS | 
					
						
							|  |  |  | hi def link texmfLHS Type | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfEquals Normal | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfBraceBrace texmfDelimiter | 
					
						
							|  |  |  | hi def link texmfComma texmfDelimiter | 
					
						
							|  |  |  | hi def link texmfColons texmfDelimiter | 
					
						
							|  |  |  | hi def link texmfDelimiter Preproc | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfDoubleExclam Statement | 
					
						
							|  |  |  | hi def link texmfSpecial Special | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link texmfBraceError texmfError | 
					
						
							|  |  |  | hi def link texmfError Error | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "texmf" |