PageRenderTime 74ms CodeModel.GetById 58ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
XML | 99 lines | 88 code | 11 blank | 0 comment | 0 complexity | fefad3fbfc47ef9b7c30aaa834c715b5 MD5 | raw file
 1<?xml version="1.0"?>
 2<!DOCTYPE MODE SYSTEM "xmode.dtd">
 3
 4<MODE>
 5	<PROPS>
 6		<PROPERTY NAME="indentOpenBrackets" VALUE="[{"/>
 7		<PROPERTY NAME="indentCloseBrackets" VALUE="]}"/>
 8		<PROPERTY NAME="indentNextLines" VALUE="^(:|M:|C:|PREDICATE:)[^;]*"/>
 9		<PROPERTY NAME="unindentNextLines" VALUE="^.*;.*$"/>
10		<PROPERTY NAME="doubleBracketIndent" VALUE="true"/>
11		<PROPERTY NAME="commentStart" VALUE="("/>
12		<PROPERTY NAME="commentEnd" VALUE=")"/>
13		<PROPERTY NAME="lineComment" VALUE="!"/>
14		<PROPERTY NAME="noWordSep" VALUE="+-*=&gt;&lt;;.?/'()%,_|"/>
15	</PROPS>
16	<RULES IGNORE_CASE="FALSE" ESCAPE="\" NO_WORD_SEP="+-*=&gt;&lt;;.?/'()%,_"
17		HIGHLIGHT_DIGITS="TRUE" DIGIT_RE="-?\d+([./]\d+)?">
18		<EOL_SPAN TYPE="COMMENT2" AT_WORD_START="TRUE"
19			DELEGATE="COMMENT">#! </EOL_SPAN>
20		<EOL_SPAN TYPE="COMMENT1" AT_WORD_START="TRUE"
21			DELEGATE="COMMENT">! </EOL_SPAN>
22
23		<!-- parsing words -->
24		<SEQ_REGEXP TYPE="MARKUP"
25			HASH_CHAR="\"
26			AT_WORD_START="TRUE">\\\s+(\S+)</SEQ_REGEXP>
27		<SEQ_REGEXP TYPE="MARKUP"
28			HASH_CHAR=":"
29			AT_WORD_START="TRUE">:\s+(\S+)</SEQ_REGEXP>
30		<SEQ_REGEXP TYPE="MARKUP"
31			HASH_CHAR="I"
32			AT_WORD_START="TRUE">IN:\s+(\S+)</SEQ_REGEXP>
33		<SEQ_REGEXP TYPE="MARKUP"
34			HASH_CHAR="U"
35			AT_WORD_START="TRUE">USE:\s+(\S+)</SEQ_REGEXP>
36		<SEQ_REGEXP TYPE="LITERAL2"
37			HASH_CHAR="C"
38			AT_WORD_START="TRUE">CHAR:\s+(\S+)</SEQ_REGEXP>
39		<SEQ_REGEXP TYPE="LITERAL2"
40			HASH_CHAR="B"
41			AT_WORD_START="TRUE">BIN:\s+(\S+)</SEQ_REGEXP>
42		<SEQ_REGEXP TYPE="LITERAL2"
43			HASH_CHAR="O"
44			AT_WORD_START="TRUE">OCT:\s+(\S+)</SEQ_REGEXP>
45		<SEQ_REGEXP TYPE="LITERAL2"
46			HASH_CHAR="H"
47			AT_WORD_START="TRUE">HEX:\s+(\S+)</SEQ_REGEXP>
48
49		<SPAN TYPE="COMMENT3" DELEGATE="STACK_EFFECT" NO_LINE_BREAK="TRUE">
50			<BEGIN>( </BEGIN>
51			<END>)</END>
52		</SPAN>
53		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE"
54			DELEGATE="LITERAL">
55			<BEGIN>SBUF" </BEGIN>
56			<END>"</END>
57		</SPAN>
58		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE"
59			DELEGATE="LITERAL">
60			<BEGIN>"</BEGIN>
61			<END>"</END>
62		</SPAN>
63		<SPAN TYPE="MARKUP" DELEGATE="USING">
64			<BEGIN>USING: </BEGIN>
65			<END>;</END>
66		</SPAN>
67
68		<SEQ TYPE="OPERATOR">[</SEQ>
69		<SEQ TYPE="OPERATOR">]</SEQ>
70		<SEQ TYPE="OPERATOR">{</SEQ>
71		<SEQ TYPE="OPERATOR">}</SEQ>
72
73		<KEYWORDS>
74			<KEYWORD1>&gt;r</KEYWORD1>
75			<KEYWORD1>r&gt;</KEYWORD1>
76
77			<MARKUP>;</MARKUP>
78
79			<LITERAL3>t</LITERAL3>
80			<LITERAL4>f</LITERAL4>
81			
82			<COMMENT2>#!</COMMENT2>
83			<COMMENT1>!</COMMENT1>
84		</KEYWORDS>
85	</RULES>
86
87	<RULES SET="STACK_EFFECT" DEFAULT="COMMENT4">
88		<SEQ TYPE="COMMENT3">--</SEQ>
89	</RULES>
90
91	<RULES SET="LITERAL" DEFAULT="LITERAL1">
92	</RULES>
93
94	<RULES SET="COMMENT" DEFAULT="COMMENT1">
95	</RULES>
96
97	<RULES SET="USING" DEFAULT="LITERAL2">
98	</RULES>
99</MODE>