3356
|
1 " SiSU Vim syntax file
|
|
2 " SiSU Maintainer: Ralph Amissah <ralph@amissah.com>
|
|
3 " SiSU Markup: SiSU (sisu-3.1.0)
|
|
4 " Last Change: 2011-10-03
|
|
5 " URL: <http://git.sisudoc.org/?p=code/sisu.git;a=blob;f=data/sisu/v3/conf/editor-syntax-etc/vim/syntax/sisu.vim;hb=HEAD>
|
1618
|
6 "(originally looked at Ruby Vim by Mirko Nasato)
|
1118
|
7
|
822
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 else
|
|
13 endif
|
3356
|
14 let s:cpo_save = &cpo
|
|
15 set cpo&vim
|
1618
|
16
|
3356
|
17 "% "Errors:
|
843
|
18 syn match sisu_error contains=sisu_link,sisu_error_wspace "<![^ei]\S\+!>"
|
1618
|
19
|
3356
|
20 "% "Markers Identifiers:
|
822
|
21 if !exists("sisu_no_identifiers")
|
1618
|
22 syn match sisu_mark_endnote "\~^"
|
3356
|
23 syn match sisu_break contains=@NoSpell " \\\\\( \|$\)"
|
1618
|
24 syn match sisu_break contains=@NoSpell "<br>\|<br />"
|
3356
|
25 syn match sisu_control contains=@NoSpell "^<:p[bn]>\s*$"
|
|
26 "syn match sisu_control contains=@NoSpell "^<\(br\)\?:\(pg\|pgn\|pn\)>\s*$"
|
|
27 "syn match sisu_control contains=@NoSpell "^\[\(br\)\?:\(pg\|pgn\|pn\)\]\s*$"
|
|
28 syn match sisu_control contains=@NoSpell "^<:\(bo\|---\)>\s*$"
|
|
29 "syn match sisu_control contains=@NoSpell "^<\(br\)\?:\(pr\|o\)>\s*$"
|
|
30 "syn match sisu_control contains=@NoSpell "^\[\(br\)\?:\(pr\|o\)\]\s*$"
|
1618
|
31 syn match sisu_marktail "[~-]#"
|
|
32 syn match sisu_control "\""
|
|
33 syn match sisu_underline "\(^\| \)_[a-zA-Z0-9]\+_\([ .,]\|$\)"
|
|
34 syn match sisu_number contains=@NoSpell "[0-9a-f]\{32\}\|[0-9a-f]\{64\}"
|
|
35 syn match sisu_link contains=@NoSpell "\(_\?https\?://\|\.\.\/\)\S\+"
|
|
36 syn match sisu_link " \*\~\S\+"
|
|
37 syn match sisu_action "^<:insert\d\+>"
|
|
38 syn match sisu_require contains=@NoSpell "^<<\s*[a-zA-Z0-9^._-]\+\.ss[it]$"
|
|
39 syn match sisu_require contains=@NoSpell "^<<{[a-zA-Z0-9^._-]\+\.ss[it]}$"
|
2152
|
40 syn match sisu_structure "^:A\~$"
|
3356
|
41
|
|
42 "% "Document Sub Headers:
|
|
43 syn match sisu_sub_header_title "^\s\+:\(subtitle\|short\|edition\|language\|lang_char\|note\):\s" "group=sisu_header_content
|
|
44 syn match sisu_sub_header_creator "^\s\+:\(author\|editor\|contributor\|illustrator\|photographer\|translator\|digitized_by\|prepared_by\|audio\|video\):\s" " &hon &institution
|
|
45 syn match sisu_sub_header_rights "^\s\+:\(copyright\|text\|translation\|illustrations\|photographs\|preparation\|digitization\|audio\|video\|license\|all\):\s" " access_rights license
|
|
46 syn match sisu_sub_header_classify "^\s\+:\(topic_register\|coverage\|format\|identifier\|keywords\|relation\|subject\|type\|dewey\|loc\|oclc\|pg\|isbn\):\s"
|
|
47 syn match sisu_sub_header_date "^\s\+:\(added_to_site\|available\|created\|issued\|modified\|published\|valid\|translated\|original_publication\):\s"
|
|
48 syn match sisu_sub_header_original "^\s\+:\(publisher\|date\|language\|lang_char\|institution\|nationality\|source\):\s"
|
|
49 syn match sisu_sub_header_make "^\s\+:\(headings\|num_top\|breaks\|language\|italics\|bold\|emphasis\|plaintext_wrap\|texpdf_font_mono\|texpdf_font\|skin\|stamp\|promo\|ad\|manpage\):\s"
|
|
50 syn match sisu_sub_header_notes "^\s\+:\(abstract\|comment\|description\|history\|prefix\|prefix_[ab]\|suffix\):\s"
|
|
51
|
|
52 "% "semantic markers: (ignore)
|
1618
|
53 syn match sisu_sem_marker ";{\|};[a-z._]*[a-z]"
|
|
54 syn match sisu_sem_marker_block "\([a-z][a-z._]*\|\):{\|}:[a-z._]*[a-z]"
|
|
55 syn match sisu_sem_ex_marker ";\[\|\];[a-z._]*[a-z]"
|
|
56 syn match sisu_sem_ex_marker_block "\([a-z][a-z._]*\|\):\[\|\]:[a-z._]*[a-z]"
|
|
57 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"
|
|
58 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]\+"
|
|
59 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"
|
|
60 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]\+"
|
822
|
61 endif
|
1618
|
62
|
3356
|
63 "% "URLs Numbers And ASCII Codes:
|
852
|
64 syn match sisu_number "\<\(0x\x\+\|0b[01]\+\|0\o\+\|0\.\d\+\|0\|[1-9][\.0-9_]*\)\>"
|
|
65 syn match sisu_number "?\(\\M-\\C-\|\\c\|\\C-\|\\M-\)\=\(\\\o\{3}\|\\x\x\{2}\|\\\=\w\)"
|
1618
|
66
|
3356
|
67 "% "Tuned Error: (is error if not already matched)
|
852
|
68 syn match sisu_error contains=sisu_error "[\~/\*!_]{\|}[\~/\*!_]"
|
|
69 syn match sisu_error contains=sisu_error "<a href\|</a>]"
|
1618
|
70
|
3356
|
71 "% "Simple Paired Enclosed Markup:
|
1618
|
72 "url/link
|
843
|
73 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="$"
|
3356
|
74
|
|
75 "% "Document Header:
|
|
76 " title
|
2152
|
77 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$"
|
3356
|
78 " creator
|
2152
|
79 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$"
|
3356
|
80 " dates
|
|
81 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$"
|
|
82 " publisher
|
|
83 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$"
|
|
84 " rights
|
2152
|
85 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$"
|
3356
|
86 " classify document
|
2152
|
87 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$"
|
3356
|
88 " original language (depreciated)
|
|
89 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$"
|
|
90 " notes
|
2152
|
91 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$"
|
3356
|
92 " links of interest
|
2152
|
93 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$"
|
3356
|
94 " make, processing instructions
|
|
95 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$"
|
|
96
|
|
97 "% "Headings:
|
|
98 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="$"
|
|
99
|
|
100 "% "Block Group Text:
|
|
101 " table
|
|
102 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"
|
|
103 " table
|
|
104 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$"
|
|
105 " block, group, poem, alt
|
|
106 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\)"
|
|
107 " code
|
822
|
108 syn region sisu_content_alt contains=sisu_error matchgroup=sisu_contain start="^code{" end="^}code"
|
3356
|
109
|
|
110 "% "Endnotes:
|
|
111 " regular endnote or asterisk or plus sign endnote
|
|
112 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"
|
|
113 " numbered asterisk or plus sign endnote
|
|
114 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"
|
|
115 " endnote content marker (for binary content marking)
|
|
116 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$"
|
|
117
|
|
118 "% "Links And Images:
|
|
119 " image with url link (and possibly footnote of url)
|
|
120 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
|
|
121 " sisu outputs, short notation
|
|
122 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
|
|
123 " image
|
|
124 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
|
|
125
|
|
126 "% "Some Line Operations:
|
|
127 " bold line
|
|
128 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=" \\\\\|$"
|
|
129 " indent and bullet paragraph
|
|
130 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="$"
|
|
131 " indent and bullet (bold start) paragraph
|
|
132 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=" \\\\\|$"
|
|
133 " hanging indent paragraph [proposed]
|
|
134 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="$"
|
|
135 " hanging indent (bold start/ definition) paragraph [proposed]
|
|
136 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=" \\\\\|$"
|
|
137 " list numbering
|
852
|
138 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="$"
|
3356
|
139
|
|
140 "% "Font Face Curly Brackets:
|
1618
|
141 "syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_sem start="\S\+:{" end="}:[^<>,.!?:; ]\+" oneline
|
3356
|
142 " book index:
|
2034
|
143 syn region sisu_index matchgroup=sisu_index_block start="^={" end="}"
|
3356
|
144 " emphasis:
|
|
145 syn region sisu_bold contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\*{" end="}\*"
|
|
146 " bold:
|
|
147 syn region sisu_bold contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="!{" end="}!"
|
|
148 " underscore:
|
|
149 syn region sisu_underline contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="_{" end="}_"
|
|
150 " italics:
|
|
151 syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="/{" end="}/"
|
|
152 " added:
|
|
153 syn region sisu_underline contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="+{" end="}+"
|
|
154 " superscript:
|
|
155 syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\^{" end="}\^"
|
|
156 " subscript:
|
|
157 syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start=",{" end="},"
|
|
158 " monospace:
|
|
159 syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="#{" end="}#"
|
|
160 " strikethrough:
|
1618
|
161 syn region sisu_strikeout contains=sisu_error matchgroup=sisu_fontface start="-{" end="}-"
|
3356
|
162
|
|
163 "% "Single Words Bold Italicise Etc: (depreciated)
|
|
164 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
|
822
|
165 syn region sisu_identifier contains=sisu_error matchgroup=sisu_content_alt start="\([ ]\|^\)/[^{ \|\n\\]"hs=e-1 end="/\[ \.\]" skip="[a-zA-Z0-9']" oneline
|
1618
|
166 "misc
|
824
|
167 syn region sisu_identifier contains=sisu_error matchgroup=sisu_fontface start="\^[^ {\|\n\\]"rs=s+1 end="\^[ ,.;:'})\\\n]" skip="[a-zA-Z0-9']" oneline
|
1618
|
168
|
3356
|
169 "% "Expensive Mode:
|
822
|
170 if !exists("sisu_no_expensive")
|
|
171 else " not Expensive
|
|
172 syn region sisu_content_alt matchgroup=sisu_control start="^\s*def\s" matchgroup=NONE end="[?!]\|\>" skip="\.\|\(::\)" oneline
|
|
173 endif " Expensive?
|
1618
|
174
|
3356
|
175 "% "Headers And Headings: (Document Instructions)
|
852
|
176 syn match sisu_control contains=sisu_error,sisu_error_wspace "4\~! \S\+"
|
822
|
177 syn region sisu_markpara contains=sisu_error,sisu_error_wspace start="^=begin" end="^=end.*$"
|
1618
|
178
|
3356
|
179 "% "Errors:
|
2152
|
180 syn match sisu_error_wspace contains=sisu_error_wspace "^\s\+[^:]"
|
822
|
181 syn match sisu_error_wspace contains=sisu_error_wspace "\s\s\+"
|
3356
|
182 syn match sisu_error_wspace contains=sisu_error_wspace "\s\+$"
|
824
|
183 syn match sisu_error contains=sisu_error_wspace "\t\+"
|
1618
|
184 syn match sisu_error contains=sisu_error,sisu_error_wspace "\([^ (][_\\]\||[^ (}]\)https\?:\S\+"
|
|
185 syn match sisu_error contains=sisu_error "_\?https\?:\S\+[}><]"
|
2152
|
186 syn match sisu_error contains=sisu_error "\([!*/_\+,^]\){\([^(\}\1)]\)\{-}\n$"
|
|
187 syn match sisu_error contains=sisu_error "^[\~]{[^{]\{-}\n$"
|
822
|
188 syn match sisu_error contains=sisu_error "\s\+.{{"
|
|
189 syn match sisu_error contains=sisu_error "^\~\s*$"
|
2152
|
190 syn match sisu_error contains=sisu_error "^0\~.*"
|
|
191 syn match sisu_error contains=sisu_error "^[1-9]\~\s*$"
|
|
192 syn match sisu_error contains=sisu_error "^[1-9]\~\S\+\s*$"
|
822
|
193 syn match sisu_error contains=sisu_error "[^{]\~\^[^ \)]"
|
|
194 syn match sisu_error contains=sisu_error "\~\^\s\+\.\s*"
|
834
|
195 syn match sisu_error contains=sisu_error "{\~^\S\+"
|
822
|
196 syn match sisu_error contains=sisu_error "[_/\*!^]{[ .,:;?><]*}[_/\*!^]"
|
|
197 syn match sisu_error contains=sisu_error "[^ (\"'(\[][_/\*!]{\|}[_/\*!][a-zA-Z0-9)\]\"']"
|
|
198 syn match sisu_error contains=sisu_error "<dir>"
|
852
|
199 "errors for filetype sisu, though not error in 'metaverse':
|
822
|
200 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\/]\+>"
|
2152
|
201 syn match sisu_error "/\?<\([biu]\)>[^(</\1>)]\{-}\n$"
|
1618
|
202
|
3356
|
203 "% "Error Exceptions:
|
2152
|
204 syn match sisu_control "\n$" "contains=ALL
|
3356
|
205 "syn match sisu_control " //"
|
2152
|
206 syn match sisu_error "%{"
|
|
207 syn match sisu_error "<br>_\?https\?:\S\+\|_\?https\?:\S\+<br>"
|
|
208 syn match sisu_error "[><]_\?https\?:\S\+\|_\?https\?:\S\+[><]"
|
|
209 syn match sisu_comment "^%\{1,2\}.\+"
|
1618
|
210
|
3356
|
211 "% "Definitions Default Highlighting:
|
2152
|
212 hi def link sisu_normal Normal
|
3356
|
213 hi def link sisu_bold Statement
|
2152
|
214 hi def link sisu_header PreProc
|
|
215 hi def link sisu_header_content Normal
|
|
216 hi def link sisu_sub_header_title Statement
|
|
217 hi def link sisu_sub_header_creator Statement
|
3356
|
218 hi def link sisu_sub_header_date Statement
|
|
219 hi def link sisu_sub_header_publisher Statement
|
2152
|
220 hi def link sisu_sub_header_rights Statement
|
|
221 hi def link sisu_sub_header_classify Statement
|
3356
|
222 hi def link sisu_sub_header_original Statement
|
2152
|
223 hi def link sisu_sub_header_links Statement
|
|
224 hi def link sisu_sub_header_notes Statement
|
3356
|
225 hi def link sisu_sub_header_make Statement
|
2152
|
226 hi def link sisu_heading Title
|
|
227 hi def link sisu_structure Operator
|
|
228 hi def link sisu_contain Include
|
3356
|
229 hi def link sisu_mark_endnote Delimiter
|
2152
|
230 hi def link sisu_require NonText
|
|
231 hi def link sisu_link NonText
|
|
232 hi def link sisu_linked String
|
3356
|
233 hi def link sisu_fontface Delimiter
|
2152
|
234 hi def link sisu_strikeout DiffDelete
|
|
235 hi def link sisu_content_alt Special
|
|
236 hi def link sisu_sem_content SpecialKey
|
|
237 hi def link sisu_sem_block Special
|
|
238 hi def link sisu_sem_marker Visual
|
|
239 "hi def link sisu_sem_marker Structure
|
|
240 hi def link sisu_sem_marker_block MatchParen
|
|
241 hi def link sisu_sem_ex_marker FoldColumn
|
|
242 hi def link sisu_sem_ex_marker_block Folded
|
|
243 hi def link sisu_sem_ex_content Comment
|
|
244 "hi def link sisu_sem_ex_content SpecialKey
|
|
245 hi def link sisu_sem_ex_block Comment
|
|
246 hi def link sisu_index SpecialKey
|
|
247 hi def link sisu_index_block Visual
|
|
248 hi def link sisu_content_endnote Special
|
3356
|
249 hi def link sisu_control Delimiter
|
2152
|
250 hi def link sisu_ocn Include
|
|
251 hi def link sisu_number Number
|
|
252 hi def link sisu_identifier Function
|
|
253 hi def link sisu_underline Underlined
|
|
254 hi def link sisu_markpara Include
|
|
255 hi def link sisu_marktail Include
|
|
256 hi def link sisu_mark Identifier
|
|
257 hi def link sisu_break Structure
|
|
258 hi def link sisu_html Type
|
|
259 hi def link sisu_action Identifier
|
|
260 hi def link sisu_comment Comment
|
|
261 hi def link sisu_error_sem_marker Error
|
|
262 hi def link sisu_error_wspace Error
|
|
263 hi def link sisu_error Error
|
822
|
264 let b:current_syntax = "sisu"
|
3356
|
265 let &cpo = s:cpo_save
|
|
266 unlet s:cpo_save
|