PageRenderTime 170ms CodeModel.GetById 163ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/twiki.xml

#
XML | 178 lines | 169 code | 3 blank | 6 comment | 0 complexity | 849cb1db8756a99b039d91078f12e939 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- catalog entry:
  6
  7<MODE NAME="twiki"		FILE="twiki.xml"
  8				FILE_NAME_GLOB="*.twiki"/>
  9
 10-->
 11
 12<MODE>
 13	<PROPS>
 14		<PROPERTY NAME="noTabs" VALUE="true" />
 15		<PROPERTY NAME="wrap" VALUE="soft" />
 16	</PROPS>
 17	<RULES ESCAPE="\" HIGHLIGHT_DIGITS="FALSE" IGNORE_CASE="FALSE">
 18
 19		<!-- though not encouraged, HTML is supported -->
 20		<IMPORT DELEGATE="html::MAIN"/>
 21
 22		<!-- signature - a convention, not actual markup -->
 23		<EOL_SPAN AT_LINE_START="TRUE" TYPE="COMMENT1">-- </EOL_SPAN>
 24
 25		<!-- header -->
 26		<EOL_SPAN_REGEXP HASH_CHAR="-" 
 27			TYPE="KEYWORD1" 
 28			AT_LINE_START="TRUE"
 29			>-{3}[+]{1,6}(?:!!)?\s</EOL_SPAN_REGEXP>
 30
 31		<!-- bold -->
 32		<SEQ_REGEXP
 33			HASH_CHAR="*"
 34			AT_LINE_START="FALSE"
 35			TYPE="KEYWORD4"
 36		>\*[^\s*][^*]*\*</SEQ_REGEXP>
 37
 38		<!-- bold and italic -->
 39		<SEQ_REGEXP
 40			HASH_CHAR="_"
 41			AT_LINE_START="FALSE"
 42			TYPE="KEYWORD4"
 43		>__\w.*?\w__</SEQ_REGEXP>
 44
 45		<!-- italic -->
 46		<SEQ_REGEXP
 47			HASH_CHAR="_"
 48			AT_LINE_START="FALSE"
 49			TYPE="KEYWORD4"
 50		>_\w.*?\w_</SEQ_REGEXP>
 51
 52		<!-- bold and fixed font -->
 53		<SEQ_REGEXP
 54			HASH_CHAR="="
 55			AT_LINE_START="FALSE"
 56			TYPE="KEYWORD4"
 57		>==\w.*?\w==</SEQ_REGEXP>
 58
 59		<!-- fixed font -->
 60		<SEQ_REGEXP
 61			HASH_CHAR="="
 62			AT_LINE_START="FALSE"
 63			TYPE="KEYWORD4"
 64		>=\w.*?\w=</SEQ_REGEXP>
 65
 66		<!-- separator -->
 67		<EOL_SPAN AT_LINE_START="TRUE" TYPE="KEYWORD4">---</EOL_SPAN>
 68
 69		<!-- wiki words -->
 70		<SEQ_REGEXP HASH_CHAR="A" AT_WORD_START="TRUE" TYPE="KEYWORD2">A[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 71		<SEQ_REGEXP HASH_CHAR="B" AT_WORD_START="TRUE" TYPE="KEYWORD2">B[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 72		<SEQ_REGEXP HASH_CHAR="C" AT_WORD_START="TRUE" TYPE="KEYWORD2">C[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 73		<SEQ_REGEXP HASH_CHAR="D" AT_WORD_START="TRUE" TYPE="KEYWORD2">D[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 74		<SEQ_REGEXP HASH_CHAR="E" AT_WORD_START="TRUE" TYPE="KEYWORD2">E[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 75		<SEQ_REGEXP HASH_CHAR="F" AT_WORD_START="TRUE" TYPE="KEYWORD2">F[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 76		<SEQ_REGEXP HASH_CHAR="G" AT_WORD_START="TRUE" TYPE="KEYWORD2">G[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 77		<SEQ_REGEXP HASH_CHAR="H" AT_WORD_START="TRUE" TYPE="KEYWORD2">H[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 78		<SEQ_REGEXP HASH_CHAR="I" AT_WORD_START="TRUE" TYPE="KEYWORD2">I[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 79		<SEQ_REGEXP HASH_CHAR="J" AT_WORD_START="TRUE" TYPE="KEYWORD2">J[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 80		<SEQ_REGEXP HASH_CHAR="K" AT_WORD_START="TRUE" TYPE="KEYWORD2">K[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 81		<SEQ_REGEXP HASH_CHAR="L" AT_WORD_START="TRUE" TYPE="KEYWORD2">L[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 82		<SEQ_REGEXP HASH_CHAR="M" AT_WORD_START="TRUE" TYPE="KEYWORD2">M[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 83		<SEQ_REGEXP HASH_CHAR="N" AT_WORD_START="TRUE" TYPE="KEYWORD2">N[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 84		<SEQ_REGEXP HASH_CHAR="O" AT_WORD_START="TRUE" TYPE="KEYWORD2">O[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 85		<SEQ_REGEXP HASH_CHAR="P" AT_WORD_START="TRUE" TYPE="KEYWORD2">P[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 86		<SEQ_REGEXP HASH_CHAR="Q" AT_WORD_START="TRUE" TYPE="KEYWORD2">Q[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 87		<SEQ_REGEXP HASH_CHAR="R" AT_WORD_START="TRUE" TYPE="KEYWORD2">R[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 88		<SEQ_REGEXP HASH_CHAR="S" AT_WORD_START="TRUE" TYPE="KEYWORD2">S[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 89		<SEQ_REGEXP HASH_CHAR="T" AT_WORD_START="TRUE" TYPE="KEYWORD2">T[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 90		<SEQ_REGEXP HASH_CHAR="U" AT_WORD_START="TRUE" TYPE="KEYWORD2">U[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 91		<SEQ_REGEXP HASH_CHAR="V" AT_WORD_START="TRUE" TYPE="KEYWORD2">V[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 92		<SEQ_REGEXP HASH_CHAR="W" AT_WORD_START="TRUE" TYPE="KEYWORD2">W[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 93		<SEQ_REGEXP HASH_CHAR="X" AT_WORD_START="TRUE" TYPE="KEYWORD2">X[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 94		<SEQ_REGEXP HASH_CHAR="Y" AT_WORD_START="TRUE" TYPE="KEYWORD2">Y[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 95		<SEQ_REGEXP HASH_CHAR="Z" AT_WORD_START="TRUE" TYPE="KEYWORD2">Z[A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
 96
 97		<!-- links -->
 98		<SPAN TYPE="KEYWORD3">
 99			<BEGIN>[[</BEGIN>
100			<END>]]</END>
101		</SPAN>
102
103		<!-- verbatim -->
104		<SPAN TYPE="LITERAL2">
105			<BEGIN>&lt;verbatim&gt;</BEGIN>
106			<END>&lt;/verbatim&gt;</END>
107		</SPAN>
108
109		<!-- prevent a link -->
110		<SEQ TYPE="LITERAL2">&lt;nop&gt;</SEQ>
111
112		<!-- disable links -->
113		<SPAN TYPE="LITERAL2">
114			<BEGIN>&lt;noautolink&gt;</BEGIN>
115			<END>&lt;/noautolink&gt;</END>
116		</SPAN>
117
118		<!-- terms -->
119		<SEQ_REGEXP HASH_CHAR=" " TYPE="KEYWORD2" AT_LINE_START="FALSE"
120			>\s{3}\w(?:&amp;nbsp;|-|\w)*?\w+:\s</SEQ_REGEXP>
121
122		<!-- twiki variables -->
123		<SEQ_REGEXP HASH_CHAR="%" 
124			TYPE="FUNCTION"
125			>%[A-Z]+(?:\{[^\}]+\})?%</SEQ_REGEXP>
126
127		<KEYWORDS>
128			<!-- variables, just here for complete-word -->
129			<NULL>ATTACHURL</NULL>
130			<NULL>ATTACHURLPATH</NULL>
131			<NULL>BASETOPIC</NULL>
132			<NULL>BASEWEB</NULL>
133			<NULL>GMTIME</NULL>
134			<NULL>HOMETOPIC</NULL>
135			<NULL>HTTP_HOST</NULL>
136			<NULL>INCLUDE</NULL>
137			<NULL>INCLUDINGTOPIC</NULL>
138			<NULL>INCLUDINGWEB</NULL>
139			<NULL>MAINWEB</NULL>
140			<NULL>NOTIFYTOPIC</NULL>
141			<NULL>PUBURL</NULL>
142			<NULL>PUBURLPATH</NULL>
143			<NULL>REMOTE_ADDR</NULL>
144			<NULL>REMOTE_PORT</NULL>
145			<NULL>REMOTE_USER</NULL>
146			<NULL>SCRIPTSUFFIX</NULL>
147			<NULL>SCRIPTURL</NULL>
148			<NULL>SCRIPTURLPATH</NULL>
149			<NULL>SEARCH</NULL>
150			<NULL>SERVERTIME</NULL>
151			<NULL>SPACEDTOPIC</NULL>
152			<NULL>STARTINCLUDE</NULL>
153			<NULL>STATISTICSTOPIC</NULL>
154			<NULL>STOPINCLUDE</NULL>
155			<NULL>TOC</NULL>
156			<NULL>TOPIC</NULL>
157			<NULL>TOPICLIST</NULL>
158			<NULL>TWIKIWEB</NULL>
159			<NULL>URLENCODE</NULL>
160			<NULL>URLPARAM</NULL>
161			<NULL>USERNAME</NULL>
162			<NULL>WEB</NULL>
163			<NULL>WEBLIST</NULL>
164			<NULL>WEBPREFSTOPIC</NULL>
165			<NULL>WIKIHOMEURL</NULL>
166			<NULL>WIKINAME</NULL>
167			<NULL>WIKIPREFSTOPIC</NULL>
168			<NULL>WIKITOOLNAME</NULL>
169			<NULL>WIKIUSERNAME</NULL>
170			<NULL>WIKIUSERSTOPIC</NULL>
171			<NULL>WIKIVERSION</NULL>
172		</KEYWORDS>
173
174	</RULES>
175
176</MODE>
177
178