PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 1ms

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

#
XML | 86 lines | 65 code | 11 blank | 10 comment | 0 complexity | b09d896b243e477dc01215537b4c712a 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		<!-- $$...$$ -->
11		<SPAN TYPE="MARKUP" DELEGATE="MATH">
12			<BEGIN>$$</BEGIN>
13			<END>$$</END>
14		</SPAN>
15
16		<!-- $...$ -->
17		<SPAN TYPE="MARKUP" DELEGATE="MATH">
18			<BEGIN>$</BEGIN>
19			<END>$</END>
20		</SPAN>
21
22		<!-- \[...\] (LaTeX math mode) -->
23		<SPAN TYPE="MARKUP" DELEGATE="MATH">
24			<BEGIN>\[</BEGIN>
25			<END>\]</END>
26		</SPAN>
27
28		<!-- some commands must be handled specially -->
29		<SEQ TYPE="KEYWORD1">\$</SEQ>
30		<SEQ TYPE="KEYWORD1">\\</SEQ>
31		<SEQ TYPE="KEYWORD1">\%</SEQ>
32
33		<!-- \... commands -->
34		<MARK_FOLLOWING TYPE="KEYWORD1">\</MARK_FOLLOWING>
35
36		<!-- comments -->
37		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
38
39		<!-- word separators -->
40		<SEQ TYPE="OPERATOR">{</SEQ>
41		<SEQ TYPE="OPERATOR">}</SEQ>
42		<SEQ TYPE="OPERATOR">[</SEQ>
43		<SEQ TYPE="OPERATOR">]</SEQ>
44	</RULES>
45
46	<RULES SET="MATH" DEFAULT="MARKUP">
47		<!-- some commands must be handled specially -->
48		<SEQ TYPE="KEYWORD3">\$</SEQ>
49		<SEQ TYPE="KEYWORD3">\\</SEQ>
50		<SEQ TYPE="KEYWORD3">\%</SEQ>
51
52		<!-- \... commands -->
53		<MARK_FOLLOWING TYPE="KEYWORD3">\</MARK_FOLLOWING>
54
55		<!-- word separators -->
56		<SEQ TYPE="KEYWORD2">)</SEQ>
57		<SEQ TYPE="KEYWORD2">(</SEQ>
58		<SEQ TYPE="KEYWORD2">{</SEQ>
59		<SEQ TYPE="KEYWORD2">}</SEQ>
60		<SEQ TYPE="KEYWORD2">[</SEQ>
61		<SEQ TYPE="KEYWORD2">]</SEQ>
62		<SEQ TYPE="KEYWORD2">=</SEQ>
63		<SEQ TYPE="KEYWORD2">!</SEQ>
64		<SEQ TYPE="KEYWORD2">+</SEQ>
65		<SEQ TYPE="KEYWORD2">-</SEQ>
66		<SEQ TYPE="KEYWORD2">/</SEQ>
67		<SEQ TYPE="KEYWORD2">*</SEQ>
68		<SEQ TYPE="KEYWORD2">&gt;</SEQ>
69		<SEQ TYPE="KEYWORD2">&lt;</SEQ>
70		<SEQ TYPE="KEYWORD2">&amp;</SEQ>
71		<SEQ TYPE="KEYWORD2">|</SEQ>
72		<SEQ TYPE="KEYWORD2">^</SEQ>
73		<SEQ TYPE="KEYWORD2">~</SEQ>
74		<SEQ TYPE="KEYWORD2">.</SEQ>
75		<SEQ TYPE="KEYWORD2">,</SEQ>
76		<SEQ TYPE="KEYWORD2">;</SEQ>
77		<SEQ TYPE="KEYWORD2">?</SEQ>
78		<SEQ TYPE="KEYWORD2">:</SEQ>
79		<SEQ TYPE="KEYWORD2">'</SEQ>
80		<SEQ TYPE="KEYWORD2">"</SEQ>
81		<SEQ TYPE="KEYWORD2">`</SEQ>
82
83		<!-- comments -->
84		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
85	</RULES>
86</MODE>