PageRenderTime 77ms CodeModel.GetById 35ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/modes/tex.xml

#
XML | 115 lines | 97 code | 10 blank | 8 comment | 0 complexity | 3e5930afe7792939debd0233ba9eaf65 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	</PROPS>
  9	<RULES>
 10		<WHITESPACE> </WHITESPACE>
 11		<WHITESPACE>	</WHITESPACE>
 12
 13		<!-- $$...$$ -->
 14		<SPAN TYPE="MARKUP" DELEGATE="MATH">
 15			<BEGIN>$$</BEGIN>
 16			<END>$$</END>
 17		</SPAN>
 18
 19		<!-- $...$ -->
 20		<SPAN TYPE="MARKUP" DELEGATE="MATH">
 21			<BEGIN>$</BEGIN>
 22			<END>$</END>
 23		</SPAN>
 24
 25		<!-- \[...\] (LaTeX math mode) -->
 26		<SPAN TYPE="MARKUP" DELEGATE="MATH">
 27			<BEGIN>\[</BEGIN>
 28			<END>\]</END>
 29		</SPAN>
 30
 31		<!-- some commands must be handled specially -->
 32		<SEQ TYPE="KEYWORD1">\$</SEQ>
 33		<SEQ TYPE="KEYWORD1">\\</SEQ>
 34		<SEQ TYPE="KEYWORD1">\%</SEQ>
 35
 36		<!-- \... commands -->
 37		<MARK_FOLLOWING TYPE="KEYWORD1">\</MARK_FOLLOWING>
 38
 39		<!-- comments -->
 40		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
 41
 42		<!-- word separators -->
 43		<SEQ TYPE="NULL">)</SEQ>
 44		<SEQ TYPE="NULL">(</SEQ>
 45		<SEQ TYPE="OPERATOR">{</SEQ>
 46		<SEQ TYPE="OPERATOR">}</SEQ>
 47		<SEQ TYPE="OPERATOR">[</SEQ>
 48		<SEQ TYPE="OPERATOR">]</SEQ>
 49		<SEQ TYPE="NULL">=</SEQ>
 50		<SEQ TYPE="NULL">!</SEQ>
 51		<SEQ TYPE="NULL">+</SEQ>
 52		<SEQ TYPE="NULL">-</SEQ>
 53		<SEQ TYPE="NULL">/</SEQ>
 54		<SEQ TYPE="NULL">*</SEQ>
 55		<SEQ TYPE="NULL">&gt;</SEQ>
 56		<SEQ TYPE="NULL">&lt;</SEQ>
 57		<SEQ TYPE="NULL">&amp;</SEQ>
 58		<SEQ TYPE="NULL">|</SEQ>
 59		<SEQ TYPE="NULL">^</SEQ>
 60		<SEQ TYPE="NULL">~</SEQ>
 61		<SEQ TYPE="NULL">.</SEQ>
 62		<SEQ TYPE="NULL">,</SEQ>
 63		<SEQ TYPE="NULL">;</SEQ>
 64		<SEQ TYPE="NULL">?</SEQ>
 65		<SEQ TYPE="NULL">:</SEQ>
 66		<SEQ TYPE="NULL">'</SEQ>
 67		<SEQ TYPE="NULL">"</SEQ>
 68		<SEQ TYPE="NULL">`</SEQ>
 69	</RULES>
 70
 71	<RULES SET="MATH" DEFAULT="MARKUP">
 72		<!-- whitespace: (space and tab) -->
 73		<WHITESPACE> </WHITESPACE>
 74		<WHITESPACE>	</WHITESPACE>
 75
 76		<!-- some commands must be handled specially -->
 77		<SEQ TYPE="KEYWORD3">\$</SEQ>
 78		<SEQ TYPE="KEYWORD3">\\</SEQ>
 79		<SEQ TYPE="KEYWORD3">\%</SEQ>
 80
 81		<!-- \... commands -->
 82		<MARK_FOLLOWING TYPE="KEYWORD3">\</MARK_FOLLOWING>
 83
 84		<!-- word separators -->
 85		<SEQ TYPE="KEYWORD2">)</SEQ>
 86		<SEQ TYPE="KEYWORD2">(</SEQ>
 87		<SEQ TYPE="KEYWORD2">{</SEQ>
 88		<SEQ TYPE="KEYWORD2">}</SEQ>
 89		<SEQ TYPE="KEYWORD2">[</SEQ>
 90		<SEQ TYPE="KEYWORD2">]</SEQ>
 91		<SEQ TYPE="KEYWORD2">=</SEQ>
 92		<SEQ TYPE="KEYWORD2">!</SEQ>
 93		<SEQ TYPE="KEYWORD2">+</SEQ>
 94		<SEQ TYPE="KEYWORD2">-</SEQ>
 95		<SEQ TYPE="KEYWORD2">/</SEQ>
 96		<SEQ TYPE="KEYWORD2">*</SEQ>
 97		<SEQ TYPE="KEYWORD2">&gt;</SEQ>
 98		<SEQ TYPE="KEYWORD2">&lt;</SEQ>
 99		<SEQ TYPE="KEYWORD2">&amp;</SEQ>
100		<SEQ TYPE="KEYWORD2">|</SEQ>
101		<SEQ TYPE="KEYWORD2">^</SEQ>
102		<SEQ TYPE="KEYWORD2">~</SEQ>
103		<SEQ TYPE="KEYWORD2">.</SEQ>
104		<SEQ TYPE="KEYWORD2">,</SEQ>
105		<SEQ TYPE="KEYWORD2">;</SEQ>
106		<SEQ TYPE="KEYWORD2">?</SEQ>
107		<SEQ TYPE="KEYWORD2">:</SEQ>
108		<SEQ TYPE="KEYWORD2">'</SEQ>
109		<SEQ TYPE="KEYWORD2">"</SEQ>
110		<SEQ TYPE="KEYWORD2">`</SEQ>
111
112		<!-- comments -->
113		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
114	</RULES>
115</MODE>