| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							|  |  |  | " Language:	SGML-linuxdoc (supported by old sgmltools-1.x) | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | " Maintainer:	SungHyun Nam <goweol@gmail.com> | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " Last Change:	2013 May 13 | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn case ignore | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " tags | 
					
						
							|  |  |  | syn region sgmllnxEndTag	start=+</+    end=+>+	contains=sgmllnxTagN,sgmllnxTagError | 
					
						
							|  |  |  | syn region sgmllnxTag	start=+<[^/]+ end=+>+	contains=sgmllnxTagN,sgmllnxTagError | 
					
						
							|  |  |  | syn match  sgmllnxTagN	contained +<\s*[-a-zA-Z0-9]\++ms=s+1	contains=sgmllnxTagName | 
					
						
							|  |  |  | syn match  sgmllnxTagN	contained +</\s*[-a-zA-Z0-9]\++ms=s+2	contains=sgmllnxTagName | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region sgmllnxTag2	start=+<\s*[a-zA-Z]\+/+ keepend end=+/+	contains=sgmllnxTagN2 | 
					
						
							|  |  |  | syn match  sgmllnxTagN2	contained +/.*/+ms=s+1,me=e-1 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region sgmllnxSpecial	oneline start="&" end=";" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " tag names | 
					
						
							|  |  |  | syn keyword sgmllnxTagName contained article author date toc title sect verb | 
					
						
							|  |  |  | syn keyword sgmllnxTagName contained abstract tscreen p itemize item enum | 
					
						
							|  |  |  | syn keyword sgmllnxTagName contained descrip quote htmlurl code ref | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | syn keyword sgmllnxTagName contained tt tag bf it url | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | syn match   sgmllnxTagName contained "sect\d\+" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Comments | 
					
						
							|  |  |  | syn region sgmllnxComment start=+<!--+ end=+-->+ | 
					
						
							|  |  |  | syn region sgmllnxDocType start=+<!doctype+ end=+>+ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting. | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " Only when an item doesn't have highlighting yet | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | hi def link sgmllnxTag2	    Function | 
					
						
							|  |  |  | hi def link sgmllnxTagN2	    Function | 
					
						
							|  |  |  | hi def link sgmllnxTag	    Special | 
					
						
							|  |  |  | hi def link sgmllnxEndTag	    Special | 
					
						
							|  |  |  | hi def link sgmllnxParen	    Special | 
					
						
							|  |  |  | hi def link sgmllnxEntity	    Type | 
					
						
							|  |  |  | hi def link sgmllnxDocEnt	    Type | 
					
						
							|  |  |  | hi def link sgmllnxTagName	    Statement | 
					
						
							|  |  |  | hi def link sgmllnxComment	    Comment | 
					
						
							|  |  |  | hi def link sgmllnxSpecial	    Special | 
					
						
							|  |  |  | hi def link sgmllnxDocType	    PreProc | 
					
						
							|  |  |  | hi def link sgmllnxTagError    Error | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "sgmllnx" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " vim:set tw=78 ts=8 sts=2 sw=2 noet: |