| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " SiSU Vim syntax file | 
					
						
							|  |  |  | " SiSU Maintainer: Ralph Amissah <ralph@amissah.com> | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " SiSU Markup:     SiSU (sisu-4.0.9) | 
					
						
							|  |  |  | " Last Change:     2013-02-22 | 
					
						
							|  |  |  | " URL (sisu-4.1.0): <http://git.sisudoc.org/?p=code/sisu.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/syntax/sisu.vim;hb=HEAD> | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | "(originally looked at Ruby Vim by Mirko Nasato) | 
					
						
							| 
									
										
										
										
											2007-05-05 17:10:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | if version < 600 | 
					
						
							|  |  |  |   syntax clear | 
					
						
							|  |  |  | elseif exists("b:current_syntax") | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | let s:cpo_save = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Errors: | 
					
						
							| 
									
										
										
										
											2006-04-25 22:13:59 +00:00
										 |  |  | syn match sisu_error contains=sisu_link,sisu_error_wspace "<![^ei]\S\+!>" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Markers Identifiers: | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | if !exists("sisu_no_identifiers") | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  |   syn match   sisu_mark_endnote                                           "\~^" | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  |   syn match   sisu_break               contains=@NoSpell                  " \\\\\( \|$\)\|<br>\|<br />" | 
					
						
							|  |  |  |   syn match   sisu_control             contains=@NoSpell                  "^\(-\\\\-\|=\\\\=\|-\.\.-\|<:p[bn]>\)\s*$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  |   syn match   sisu_control             contains=@NoSpell                  "^<:\(bo\|---\)>\s*$" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  |   syn match   sisu_marktail                                               "[~-]#" | 
					
						
							|  |  |  |   syn match   sisu_control                                                "\"" | 
					
						
							|  |  |  |   syn match   sisu_underline                                              "\(^\| \)_[a-zA-Z0-9]\+_\([ .,]\|$\)" | 
					
						
							|  |  |  |   syn match   sisu_number              contains=@NoSpell                  "[0-9a-f]\{32\}\|[0-9a-f]\{64\}" | 
					
						
							|  |  |  |   syn match   sisu_link                contains=@NoSpell                  "\(_\?https\?://\|\.\.\/\)\S\+" | 
					
						
							|  |  |  |   syn match   sisu_link                                                   " \*\~\S\+" | 
					
						
							|  |  |  |   syn match   sisu_action                                                 "^<:insert\d\+>" | 
					
						
							|  |  |  |   syn match   sisu_require             contains=@NoSpell                  "^<<\s*[a-zA-Z0-9^._-]\+\.ss[it]$" | 
					
						
							|  |  |  |   syn match   sisu_require             contains=@NoSpell                  "^<<{[a-zA-Z0-9^._-]\+\.ss[it]}$" | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  |   syn match   sisu_structure                                              "^:A\~$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | "% "Document Sub Headers: | 
					
						
							|  |  |  |   syn match   sisu_sub_header_title                                       "^\s\+:\(subtitle\|short\|edition\|language\|lang_char\|note\):\s" "group=sisu_header_content | 
					
						
							|  |  |  |   syn match   sisu_sub_header_creator                                     "^\s\+:\(author\|editor\|contributor\|illustrator\|photographer\|translator\|digitized_by\|prepared_by\|audio\|video\):\s"                               " &hon &institution | 
					
						
							|  |  |  |   syn match   sisu_sub_header_rights                                      "^\s\+:\(copyright\|text\|translation\|illustrations\|photographs\|preparation\|digitization\|audio\|video\|license\|all\):\s"                   " access_rights license | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  |   syn match   sisu_sub_header_classify                                    "^\s\+:\(topic_register\|keywords\|subject\|dewey\|loc\):\s" | 
					
						
							|  |  |  |   syn match   sisu_sub_header_identifier                                  "^\s\+:\(oclc\|isbn\):\s" | 
					
						
							|  |  |  |   syn match   sisu_sub_header_date                                        "^\s\+:\(added_to_site\|available\|created\|issued\|modified\|published\|valid\|translated\|original_publication\):\s" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  |   syn match   sisu_sub_header_original                                    "^\s\+:\(publisher\|date\|language\|lang_char\|institution\|nationality\|source\):\s" | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  |   syn match   sisu_sub_header_make                                        "^\s\+:\(headings\|num_top\|breaks\|language\|italics\|bold\|emphasis\|substitute\|omit\|plaintext_wrap\|texpdf_font_mono\|texpdf_font\|stamp\|promo\|ad\|manpage\|home_button_text\|home_button_image\|cover_image\|footer\):\s" | 
					
						
							|  |  |  |   syn match   sisu_sub_header_notes                                       "^\s\+:\(description\|abstract\|comment\|coverage\|relation\|source\|history\|type\|format\|prefix\|prefix_[ab]\|suffix\):\s" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | "% "semantic markers: (ignore) | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  |   syn match   sisu_sem_marker                                             ";{\|};[a-z._]*[a-z]" | 
					
						
							|  |  |  |   syn match   sisu_sem_marker_block                                       "\([a-z][a-z._]*\|\):{\|}:[a-z._]*[a-z]" | 
					
						
							|  |  |  |   syn match   sisu_sem_ex_marker                                          ";\[\|\];[a-z._]*[a-z]" | 
					
						
							|  |  |  |   syn match   sisu_sem_ex_marker_block                                    "\([a-z][a-z._]*\|\):\[\|\]:[a-z._]*[a-z]" | 
					
						
							|  |  |  |   syn match   sisu_sem_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]*\):{[^}].\{-}}:\1" | 
					
						
							|  |  |  |   syn match   sisu_sem_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker ";{[^}].\{-}};[a-z]\+" | 
					
						
							|  |  |  |   syn match   sisu_sem_ex_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]*\):\[[^}].\{-}\]:\1" | 
					
						
							|  |  |  |   syn match   sisu_sem_ex_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker ";\[[^}].\{-}\];[a-z]\+" | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "URLs Numbers And ASCII Codes: | 
					
						
							| 
									
										
										
										
											2006-04-29 21:55:22 +00:00
										 |  |  | syn match   sisu_number                              "\<\(0x\x\+\|0b[01]\+\|0\o\+\|0\.\d\+\|0\|[1-9][\.0-9_]*\)\>" | 
					
						
							|  |  |  | syn match   sisu_number                              "?\(\\M-\\C-\|\\c\|\\C-\|\\M-\)\=\(\\\o\{3}\|\\x\x\{2}\|\\\=\w\)" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Tuned Error: (is error if not already matched) | 
					
						
							| 
									
										
										
										
											2006-04-29 21:55:22 +00:00
										 |  |  | syn match sisu_error             contains=sisu_error "[\~/\*!_]{\|}[\~/\*!_]" | 
					
						
							|  |  |  | syn match sisu_error             contains=sisu_error "<a href\|</a>]" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Simple Paired Enclosed Markup: | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | "url/link | 
					
						
							| 
									
										
										
										
											2006-04-25 22:13:59 +00:00
										 |  |  | syn region sisu_link contains=sisu_error,sisu_error_wspace matchgroup=sisu_action start="^<<\s*|[a-zA-Z0-9^._-]\+|@|[a-zA-Z0-9^._-]\+|"rs=s+2 end="$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | "% "Document Header: | 
					
						
							|  |  |  | " title | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_title matchgroup=sisu_header start="^[@]title:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " creator | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_creator matchgroup=sisu_header start="^[@]creator:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " dates | 
					
						
							|  |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_date matchgroup=sisu_header start="^[@]date:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							|  |  |  | " publisher | 
					
						
							|  |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_publisher matchgroup=sisu_header start="^[@]publisher:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							|  |  |  | " rights | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_rights matchgroup=sisu_header start="^[@]rights:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " classify document | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_classify matchgroup=sisu_header start="^[@]classify:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " identifier document | 
					
						
							|  |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_identifier matchgroup=sisu_header start="^[@]identifier:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " original language (depreciated) | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_original matchgroup=sisu_header start="^[@]original:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " notes | 
					
						
							|  |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_notes matchgroup=sisu_header start="^[@]notes:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							|  |  |  | " links of interest | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_linked,sisu_sub_header_links matchgroup=sisu_header start="^[@]links:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " make, processing instructions | 
					
						
							|  |  |  | syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_make matchgroup=sisu_header start="^[@]make:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "% "Headings: | 
					
						
							|  |  |  | syn region sisu_heading contains=sisu_mark_endnote,sisu_content_endnote,sisu_marktail,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_ocn,sisu_error,sisu_error_wspace matchgroup=sisu_structure start="^\([1-8]\|:\?[A-C]\)\~\(\S\+\|[^-]\)" end="$" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "% "Block Group Text: | 
					
						
							|  |  |  | " table | 
					
						
							|  |  |  | syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^table{.\+" end="}table" | 
					
						
							|  |  |  | " table | 
					
						
							|  |  |  | syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^{\(t\|table\)\(\~h\)\?\(\sc[0-9]\+;\)\?[0-9; ]*}" end="\n$" | 
					
						
							|  |  |  | " block, group, poem, alt | 
					
						
							|  |  |  | syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^\(block\|group\|poem\|alt\){" end="^}\(block\|group\|poem\|alt\)" | 
					
						
							|  |  |  | " code | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn region sisu_content_alt contains=sisu_error matchgroup=sisu_contain start="^code{" end="^}code" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | "% "Endnotes: | 
					
						
							|  |  |  | " regular endnote or asterisk or plus sign endnote | 
					
						
							|  |  |  | syn region sisu_content_endnote contains=sisu_link,sisu_strikeout,sisu_underline,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker matchgroup=sisu_mark_endnote start="\~{[*+]*" end="}\~" skip="\n" | 
					
						
							|  |  |  | " numbered asterisk or plus sign endnote | 
					
						
							|  |  |  | syn region sisu_content_endnote contains=sisu_link,sisu_strikeout,sisu_underline,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker matchgroup=sisu_mark_endnote start="\~\[[*+]*" end="\]\~" skip="\n" | 
					
						
							|  |  |  | " endnote content marker (for binary content marking) | 
					
						
							|  |  |  | syn region sisu_content_endnote contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_link,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break matchgroup=sisu_mark_endnote start="\^\~" end="\n$" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "% "Links And Images: | 
					
						
							|  |  |  | " image with url link (and possibly footnote of url) | 
					
						
							|  |  |  | syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_sem_block,sisu_error matchgroup=sisu_link start="{\(\~^\s\)\?" end="}\(https\?:/\/\|:\|\.\.\/\|#\)\S\+" oneline | 
					
						
							|  |  |  | " sisu outputs, short notation | 
					
						
							|  |  |  | syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_sem_block,sisu_error matchgroup=sisu_link start="{\(\~^\s\)\?" end="\[[1-5][sS]*\]}\S\+\.ss[tm]" oneline | 
					
						
							|  |  |  | " image | 
					
						
							|  |  |  | syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_link start="{" end="}image" oneline | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "% "Some Line Operations: | 
					
						
							|  |  |  | " bold line | 
					
						
							|  |  |  | syn region sisu_bold contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^!_ " end=" \\\\\|$" | 
					
						
							|  |  |  | " indent and bullet paragraph | 
					
						
							|  |  |  | syn region sisu_normal contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_\([1-9*]\|[1-9]\*\) " end="$" | 
					
						
							|  |  |  | " indent and bullet (bold start) paragraph | 
					
						
							|  |  |  | syn region sisu_bold contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_\([1-9*]\|[1-9]\*\)!_\? " end=" \\\\\|$" | 
					
						
							|  |  |  | " hanging indent paragraph [proposed] | 
					
						
							|  |  |  | syn region sisu_normal contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_[0-9]\?_[0-9] " end="$" | 
					
						
							|  |  |  | " hanging indent (bold start/ definition) paragraph [proposed] | 
					
						
							|  |  |  | syn region sisu_bold contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_[0-9]\?_[0-9]!_\? " end=" \\\\\|$" | 
					
						
							|  |  |  | " list numbering | 
					
						
							| 
									
										
										
										
											2006-04-29 21:55:22 +00:00
										 |  |  | syn region sisu_normal contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^\(#[ 1]\|_# \)" end="$" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | "% "Font Face Curly Brackets: | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | "syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_sem start="\S\+:{" end="}:[^<>,.!?:; ]\+" oneline | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " book index: | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | syn region sisu_index matchgroup=sisu_index_block start="^={" end="}" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " emphasis: | 
					
						
							|  |  |  | syn region sisu_bold contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\*{" end="}\*" | 
					
						
							|  |  |  | " bold: | 
					
						
							|  |  |  | syn region sisu_bold contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="!{" end="}!" | 
					
						
							|  |  |  | " underscore: | 
					
						
							|  |  |  | syn region sisu_underline contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="_{" end="}_" | 
					
						
							|  |  |  | " italics: | 
					
						
							|  |  |  | syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="/{" end="}/" | 
					
						
							|  |  |  | " added: | 
					
						
							|  |  |  | syn region sisu_underline contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="+{" end="}+" | 
					
						
							|  |  |  | " superscript: | 
					
						
							|  |  |  | syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\^{" end="}\^" | 
					
						
							|  |  |  | " subscript: | 
					
						
							|  |  |  | syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start=",{" end="}," | 
					
						
							|  |  |  | " monospace: | 
					
						
							|  |  |  | syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="#{" end="}#" | 
					
						
							|  |  |  | " strikethrough: | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | syn region sisu_strikeout contains=sisu_error matchgroup=sisu_fontface start="-{" end="}-" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | "% "Single Words Bold Italicise Etc: (depreciated) | 
					
						
							|  |  |  | syn region sisu_bold contains=sisu_error matchgroup=sisu_bold start="\([ (]\|^\)\*[^\|{\n\~\\]"hs=e-1 end="\*"he=e-0 skip="[a-zA-Z0-9']" oneline | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn region sisu_identifier contains=sisu_error matchgroup=sisu_content_alt start="\([ ]\|^\)/[^{ \|\n\\]"hs=e-1 end="/\[ \.\]" skip="[a-zA-Z0-9']" oneline | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | "misc | 
					
						
							| 
									
										
										
										
											2006-04-09 21:54:49 +00:00
										 |  |  | syn region sisu_identifier contains=sisu_error matchgroup=sisu_fontface start="\^[^ {\|\n\\]"rs=s+1 end="\^[ ,.;:'})\\\n]" skip="[a-zA-Z0-9']" oneline | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Expensive Mode: | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | if !exists("sisu_no_expensive") | 
					
						
							|  |  |  | else " not Expensive | 
					
						
							|  |  |  |   syn region  sisu_content_alt  matchgroup=sisu_control start="^\s*def\s" matchgroup=NONE end="[?!]\|\>" skip="\.\|\(::\)" oneline | 
					
						
							|  |  |  | endif " Expensive? | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Headers And Headings: (Document Instructions) | 
					
						
							| 
									
										
										
										
											2006-04-29 21:55:22 +00:00
										 |  |  | syn match sisu_control contains=sisu_error,sisu_error_wspace "4\~! \S\+" | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn region  sisu_markpara contains=sisu_error,sisu_error_wspace start="^=begin" end="^=end.*$" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Errors: | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn match sisu_error_wspace contains=sisu_error_wspace "^\s\+[^:]" | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn match sisu_error_wspace contains=sisu_error_wspace "\s\s\+" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | syn match sisu_error_wspace contains=sisu_error_wspace "\s\+$" | 
					
						
							| 
									
										
										
										
											2006-04-09 21:54:49 +00:00
										 |  |  | syn match sisu_error contains=sisu_error_wspace "\t\+" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | syn match sisu_error contains=sisu_error,sisu_error_wspace "\([^ (][_\\]\||[^ (}]\)https\?:\S\+" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "_\?https\?:\S\+[}><]" | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn match sisu_error contains=sisu_error "\([!*/_\+,^]\){\([^(\}\1)]\)\{-}\n$" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "^[\~]{[^{]\{-}\n$" | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn match sisu_error contains=sisu_error "\s\+.{{" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "^\~\s*$" | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn match sisu_error contains=sisu_error "^0\~.*" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "^[1-9]\~\s*$" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "^[1-9]\~\S\+\s*$" | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn match sisu_error contains=sisu_error "[^{]\~\^[^ \)]" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "\~\^\s\+\.\s*" | 
					
						
							| 
									
										
										
										
											2006-04-16 18:30:08 +00:00
										 |  |  | syn match sisu_error contains=sisu_error "{\~^\S\+" | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn match sisu_error contains=sisu_error "[_/\*!^]{[ .,:;?><]*}[_/\*!^]" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "[^ (\"'(\[][_/\*!]{\|}[_/\*!][a-zA-Z0-9)\]\"']" | 
					
						
							|  |  |  | syn match sisu_error contains=sisu_error "<dir>" | 
					
						
							| 
									
										
										
										
											2006-04-29 21:55:22 +00:00
										 |  |  | "errors for filetype sisu, though not error in 'metaverse': | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | syn match sisu_error contains=sisu_error,sisu_match,sisu_strikeout,sisu_contain,sisu_content_alt,sisu_mark,sisu_break,sisu_number "<[a-zA-Z\/]\+>" | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn match sisu_error  "/\?<\([biu]\)>[^(</\1>)]\{-}\n$" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Error Exceptions: | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn match sisu_control "\n$" "contains=ALL | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "syn match sisu_control " //" | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | syn match sisu_error   "%{" | 
					
						
							|  |  |  | syn match sisu_error   "<br>_\?https\?:\S\+\|_\?https\?:\S\+<br>" | 
					
						
							|  |  |  | syn match sisu_error   "[><]_\?https\?:\S\+\|_\?https\?:\S\+[><]" | 
					
						
							|  |  |  | syn match sisu_comment "^%\{1,2\}.\+" | 
					
						
							| 
									
										
										
										
											2008-06-24 20:19:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | "% "Definitions Default Highlighting: | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_normal                Normal | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_bold                  Statement | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_header                PreProc | 
					
						
							|  |  |  | hi def link sisu_header_content        Normal | 
					
						
							|  |  |  | hi def link sisu_sub_header_title      Statement | 
					
						
							|  |  |  | hi def link sisu_sub_header_creator    Statement | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_sub_header_date       Statement | 
					
						
							|  |  |  | hi def link sisu_sub_header_publisher  Statement | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_sub_header_rights     Statement | 
					
						
							|  |  |  | hi def link sisu_sub_header_classify   Statement | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | hi def link sisu_sub_header_identifier Statement | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_sub_header_original   Statement | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_sub_header_links      Statement | 
					
						
							|  |  |  | hi def link sisu_sub_header_notes      Statement | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_sub_header_make       Statement | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_heading               Title | 
					
						
							|  |  |  | hi def link sisu_structure             Operator | 
					
						
							|  |  |  | hi def link sisu_contain               Include | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_mark_endnote          Delimiter | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_require               NonText | 
					
						
							|  |  |  | hi def link sisu_link                  NonText | 
					
						
							|  |  |  | hi def link sisu_linked                String | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_fontface              Delimiter | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_strikeout             DiffDelete | 
					
						
							|  |  |  | hi def link sisu_content_alt           Special | 
					
						
							|  |  |  | hi def link sisu_sem_content           SpecialKey | 
					
						
							|  |  |  | hi def link sisu_sem_block             Special | 
					
						
							|  |  |  | hi def link sisu_sem_marker            Visual | 
					
						
							|  |  |  | "hi def link sisu_sem_marker            Structure | 
					
						
							|  |  |  | hi def link sisu_sem_marker_block      MatchParen | 
					
						
							|  |  |  | hi def link sisu_sem_ex_marker         FoldColumn | 
					
						
							|  |  |  | hi def link sisu_sem_ex_marker_block   Folded | 
					
						
							|  |  |  | hi def link sisu_sem_ex_content        Comment | 
					
						
							|  |  |  | "hi def link sisu_sem_ex_content        SpecialKey | 
					
						
							|  |  |  | hi def link sisu_sem_ex_block          Comment | 
					
						
							|  |  |  | hi def link sisu_index                 SpecialKey | 
					
						
							|  |  |  | hi def link sisu_index_block           Visual | 
					
						
							|  |  |  | hi def link sisu_content_endnote       Special | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | hi def link sisu_control               Delimiter | 
					
						
							| 
									
										
										
										
											2010-05-14 23:24:24 +02:00
										 |  |  | hi def link sisu_ocn                   Include | 
					
						
							|  |  |  | hi def link sisu_number                Number | 
					
						
							|  |  |  | hi def link sisu_identifier            Function | 
					
						
							|  |  |  | hi def link sisu_underline             Underlined | 
					
						
							|  |  |  | hi def link sisu_markpara              Include | 
					
						
							|  |  |  | hi def link sisu_marktail              Include | 
					
						
							|  |  |  | hi def link sisu_mark                  Identifier | 
					
						
							|  |  |  | hi def link sisu_break                 Structure | 
					
						
							|  |  |  | hi def link sisu_html                  Type | 
					
						
							|  |  |  | hi def link sisu_action                Identifier | 
					
						
							|  |  |  | hi def link sisu_comment               Comment | 
					
						
							|  |  |  | hi def link sisu_error_sem_marker      Error | 
					
						
							|  |  |  | hi def link sisu_error_wspace          Error | 
					
						
							|  |  |  | hi def link sisu_error                 Error | 
					
						
							| 
									
										
										
										
											2006-04-07 21:33:12 +00:00
										 |  |  | let b:current_syntax = "sisu" | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | let &cpo = s:cpo_save | 
					
						
							|  |  |  | unlet s:cpo_save |