PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 136 lines | 134 code | 2 blank | 0 comment | 0 complexity | da0eaecd9a6f9280ae6c2e37234e0da6 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="lineComment" VALUE="##" />
  8		<PROPERTY NAME="wrap" VALUE="soft" />
  9	</PROPS>
 10	<RULES ESCAPE="\" HIGHLIGHT_DIGITS="FALSE" IGNORE_CASE="FALSE">
 11
 12		<!-- comment -->
 13		<EOL_SPAN TYPE="COMMENT1">##</EOL_SPAN>
 14
 15		<!-- directive -->
 16		<EOL_SPAN TYPE="KEYWORD2">#pragma</EOL_SPAN>
 17
 18		<!-- macro -->
 19		<SPAN TYPE="KEYWORD4">
 20			<BEGIN>[[</BEGIN>
 21			<END>]]</END>
 22		</SPAN>
 23
 24		<!-- term definition -->
 25		<SEQ_REGEXP
 26			HASH_CHAR=' '
 27			AT_LINE_START='TRUE'
 28			TYPE="LABEL"
 29		>\s+(?:\(|\)|\w)[\p{Alnum}\p{Blank}.()]+::</SEQ_REGEXP>
 30
 31		<!-- smileys -->
 32		<!-- not on by default because it slows things down a bit
 33		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:\)\s</SEQ_REGEXP>
 34		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\sB\)\s</SEQ_REGEXP>
 35		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:\)\)\s</SEQ_REGEXP>
 36		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\;\)\s</SEQ_REGEXP>
 37		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:D\s</SEQ_REGEXP>
 38		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\%lt;\:\(\s</SEQ_REGEXP>
 39		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\sX\-\(\s</SEQ_REGEXP>
 40		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:o\s</SEQ_REGEXP>
 41		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:\(\s</SEQ_REGEXP>
 42		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\/\!\\\s</SEQ_REGEXP>
 43		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\%lt;\!\&gt;\s</SEQ_REGEXP>
 44		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\(\!\)\s</SEQ_REGEXP>
 45		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:\-\?\s</SEQ_REGEXP>
 46		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\:\&gt;\:\&gt;\s</SEQ_REGEXP>
 47		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\%\)\s</SEQ_REGEXP>
 48		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\@\)\s</SEQ_REGEXP>
 49		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\|\)\s</SEQ_REGEXP>
 50		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\;\)\)\s</SEQ_REGEXP>
 51		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\(\.\/\)\s</SEQ_REGEXP>
 52		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\{OK\}\s</SEQ_REGEXP>
 53		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\{X\}\s</SEQ_REGEXP>
 54		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\{i\}\s</SEQ_REGEXP>
 55		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\{1\}\s</SEQ_REGEXP>
 56		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\{2\}\s</SEQ_REGEXP>
 57		<SEQ_REGEXP HASH_CHAR=' ' AT_LINE_START='FALSE' TYPE="LITERAL3">\s\{3\}\s</SEQ_REGEXP>
 58		-->
 59
 60		<!-- code or literal -->
 61		<SPAN TYPE="LITERAL2">
 62			<BEGIN>{{{</BEGIN>
 63			<END>}}}</END>
 64		</SPAN>
 65
 66		<!-- code or literal -->
 67		<SPAN TYPE="LITERAL2">
 68			<BEGIN>`</BEGIN>
 69			<END>`</END>
 70		</SPAN>
 71
 72		<!-- bold or italic -->
 73		<SEQ_REGEXP
 74			HASH_CHAR="'"
 75			TYPE="LITERAL1"
 76		>('{2,5})[^']+\1[^']</SEQ_REGEXP>
 77
 78		<!-- horizontal rule -->
 79		<SEQ_REGEXP
 80			HASH_CHAR="-"
 81			TYPE="LITERAL4"
 82		>-{4,}</SEQ_REGEXP>
 83
 84		<!-- section header -->
 85		<SPAN_REGEXP
 86			HASH_CHAR="="
 87			TYPE="KEYWORD1"
 88			AT_LINE_START="TRUE"
 89		>
 90			<BEGIN>(={1,5}) </BEGIN>
 91			<END> $1</END>
 92		</SPAN_REGEXP>
 93
 94		<!-- implicit WikiWords - a bit of a hack, but I can't think of a better way... -->
 95		<SEQ_REGEXP HASH_CHAR="A" AT_WORD_START="TRUE" TYPE="KEYWORD2">A[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
 96		<SEQ_REGEXP HASH_CHAR="B" AT_WORD_START="TRUE" TYPE="KEYWORD2">B[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
 97		<SEQ_REGEXP HASH_CHAR="C" AT_WORD_START="TRUE" TYPE="KEYWORD2">C[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
 98		<SEQ_REGEXP HASH_CHAR="D" AT_WORD_START="TRUE" TYPE="KEYWORD2">D[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
 99		<SEQ_REGEXP HASH_CHAR="E" AT_WORD_START="TRUE" TYPE="KEYWORD2">E[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
100		<SEQ_REGEXP HASH_CHAR="F" AT_WORD_START="TRUE" TYPE="KEYWORD2">F[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
101		<SEQ_REGEXP HASH_CHAR="G" AT_WORD_START="TRUE" TYPE="KEYWORD2">G[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
102		<SEQ_REGEXP HASH_CHAR="H" AT_WORD_START="TRUE" TYPE="KEYWORD2">H[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
103		<SEQ_REGEXP HASH_CHAR="I" AT_WORD_START="TRUE" TYPE="KEYWORD2">I[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
104		<SEQ_REGEXP HASH_CHAR="J" AT_WORD_START="TRUE" TYPE="KEYWORD2">J[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
105		<SEQ_REGEXP HASH_CHAR="K" AT_WORD_START="TRUE" TYPE="KEYWORD2">K[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
106		<SEQ_REGEXP HASH_CHAR="L" AT_WORD_START="TRUE" TYPE="KEYWORD2">L[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
107		<SEQ_REGEXP HASH_CHAR="M" AT_WORD_START="TRUE" TYPE="KEYWORD2">M[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
108		<SEQ_REGEXP HASH_CHAR="N" AT_WORD_START="TRUE" TYPE="KEYWORD2">N[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
109		<SEQ_REGEXP HASH_CHAR="O" AT_WORD_START="TRUE" TYPE="KEYWORD2">O[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
110		<SEQ_REGEXP HASH_CHAR="P" AT_WORD_START="TRUE" TYPE="KEYWORD2">P[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
111		<SEQ_REGEXP HASH_CHAR="Q" AT_WORD_START="TRUE" TYPE="KEYWORD2">Q[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
112		<SEQ_REGEXP HASH_CHAR="R" AT_WORD_START="TRUE" TYPE="KEYWORD2">R[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
113		<SEQ_REGEXP HASH_CHAR="S" AT_WORD_START="TRUE" TYPE="KEYWORD2">S[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
114		<SEQ_REGEXP HASH_CHAR="T" AT_WORD_START="TRUE" TYPE="KEYWORD2">T[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
115		<SEQ_REGEXP HASH_CHAR="U" AT_WORD_START="TRUE" TYPE="KEYWORD2">U[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
116		<SEQ_REGEXP HASH_CHAR="V" AT_WORD_START="TRUE" TYPE="KEYWORD2">V[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
117		<SEQ_REGEXP HASH_CHAR="W" AT_WORD_START="TRUE" TYPE="KEYWORD2">W[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
118		<SEQ_REGEXP HASH_CHAR="X" AT_WORD_START="TRUE" TYPE="KEYWORD2">X[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
119		<SEQ_REGEXP HASH_CHAR="Y" AT_WORD_START="TRUE" TYPE="KEYWORD2">Y[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
120		<SEQ_REGEXP HASH_CHAR="Z" AT_WORD_START="TRUE" TYPE="KEYWORD2">Z[a-z]+[A-Z][a-zA-Z]+</SEQ_REGEXP>
121
122		<!-- explicit WikiWord -->
123		<SPAN TYPE="KEYWORD2">
124			<BEGIN>[&quot;</BEGIN>
125			<END>&quot;]</END>
126		</SPAN>
127
128		<!-- url -->
129		<SPAN TYPE="KEYWORD3">
130			<BEGIN>[</BEGIN>
131			<END>]</END>
132		</SPAN>
133
134	</RULES>
135</MODE>
136