summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorq66 <quaker66@gmail.com>2014-07-28 12:24:01 +0100
committerq66 <quaker66@gmail.com>2014-07-28 12:24:01 +0100
commita9ad65ab1df5cdf8988759dc4cdcf53bf5ddc0e7 (patch)
treeaa9470e76af6b8c1beb502c1b52310bbe3903b9e
add initial .eo file mode for jEdit
-rw-r--r--README6
-rw-r--r--eo/eo.xml155
2 files changed, 161 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..1d75c59
--- /dev/null
+++ b/README
@@ -0,0 +1,6 @@
1This repository contains custom jEdit modes. For installation, please refer
2to http://www.jedit.org/users-guide/installing-modes.html
3
4For .eo/.eot files, the definition in the catalog is supposed to look like this:
5
6<MODE NAME="eo" FILE="eo.xml" FILE_NAME_GLOB="*.{eo,eot}"/>
diff --git a/eo/eo.xml b/eo/eo.xml
new file mode 100644
index 0000000..1e04f28
--- /dev/null
+++ b/eo/eo.xml
@@ -0,0 +1,155 @@
1<?xml version="1.0"?>
2<!DOCTYPE MODE SYSTEM "xmode.dtd">
3<!-- Eo edit mode by Daniel "q66" Kolesa <quaker66@gmail.com>
4 Keep in mind that the Eo file format is not stable and might change.
5-->
6
7<MODE>
8 <PROPS>
9 <PROPERTY NAME="commentStart" VALUE="/*"/>
10 <PROPERTY NAME="commentEnd" VALUE="*/"/>
11 <PROPERTY NAME="lineComment" VALUE="//"/>
12 <PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*"/>
13
14 <!-- Auto indent -->
15 <PROPERTY NAME="indentOpenBrackets" VALUE="{"/>
16 <PROPERTY NAME="indentCloseBrackets" VALUE="}"/>
17 <PROPERTY NAME="unalignedOpenBrackets" VALUE="("/>
18 <PROPERTY NAME="unalignedCloseBrackets" VALUE=")"/>
19 </PROPS>
20
21 <RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE" NO_WORD_SEP="_:."
22 DIGIT_RE="(0x)*[0-9A-Fa-f]?(\.[0-9A-Fa-f]+)?([eEpP][+-]?[0-9A-Fa-f]*)?"
23 >
24 <!-- comments -->
25 <SEQ TYPE="COMMENT1">/**/</SEQ>
26 <SPAN TYPE="COMMENT3" DELEGATE="doxygen::DOXYGEN">
27 <BEGIN>/*@</BEGIN>
28 <END>*/</END>
29 </SPAN>
30 <EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
31 <EOL_SPAN TYPE="COMMENT3" DELEGATE="doxygen::DOXYGEN">//@</EOL_SPAN>
32
33 <!-- string literals -->
34 <SPAN TYPE="LITERAL1" ESCAPE="\">
35 <BEGIN>"</BEGIN>
36 <END>"</END>
37 </SPAN>
38 <SPAN TYPE="LITERAL1" ESCAPE="\">
39 <BEGIN>'</BEGIN>
40 <END>'</END>
41 </SPAN>
42
43 <SEQ TYPE="OPERATOR">+</SEQ>
44 <SEQ TYPE="OPERATOR">-</SEQ>
45 <SEQ TYPE="OPERATOR">*</SEQ>
46 <SEQ TYPE="OPERATOR">/</SEQ>
47 <SEQ TYPE="OPERATOR">%</SEQ>
48 <SEQ TYPE="OPERATOR">=</SEQ>
49 <SEQ TYPE="OPERATOR">==</SEQ>
50 <SEQ TYPE="OPERATOR">&lt;</SEQ>
51 <SEQ TYPE="OPERATOR">&lt;=</SEQ>
52 <SEQ TYPE="OPERATOR">!=</SEQ>
53 <SEQ TYPE="OPERATOR">&gt;</SEQ>
54 <SEQ TYPE="OPERATOR">&gt;=</SEQ>
55 <SEQ TYPE="OPERATOR">&amp;</SEQ>
56 <SEQ TYPE="OPERATOR">|</SEQ>
57 <SEQ TYPE="OPERATOR">^</SEQ>
58 <SEQ TYPE="OPERATOR">&lt;&lt;</SEQ>
59 <SEQ TYPE="OPERATOR">&gt;&gt;</SEQ>
60 <SEQ TYPE="OPERATOR">~</SEQ>
61 <SEQ TYPE="OPERATOR">:</SEQ>
62 <SEQ TYPE="OPERATOR">.</SEQ>
63 <SEQ TYPE="OPERATOR">,</SEQ>
64 <SEQ TYPE="OPERATOR">;</SEQ>
65 <SEQ TYPE="OPERATOR">}</SEQ>
66 <SEQ TYPE="OPERATOR">{</SEQ>
67
68 <!-- Function calls -->
69 <MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="OPERATOR">(</MARK_PREVIOUS>
70 <SEQ TYPE="OPERATOR">)</SEQ>
71
72 <KEYWORDS>
73 <!-- reserved core keywords -->
74 <KEYWORD1>abstract</KEYWORD1>
75 <KEYWORD1>class</KEYWORD1>
76 <KEYWORD1>constructors</KEYWORD1>
77 <KEYWORD1>events</KEYWORD1>
78 <KEYWORD1>get</KEYWORD1>
79 <KEYWORD1>implements</KEYWORD1>
80 <KEYWORD1>interface</KEYWORD1>
81 <KEYWORD1>keys</KEYWORD1>
82 <KEYWORD1>methods</KEYWORD1>
83 <KEYWORD1>mixin</KEYWORD1>
84 <KEYWORD1>params</KEYWORD1>
85 <KEYWORD1>properties</KEYWORD1>
86 <KEYWORD1>return</KEYWORD1>
87 <KEYWORD1>set</KEYWORD1>
88 <KEYWORD1>type</KEYWORD1>
89 <KEYWORD1>values</KEYWORD1>
90
91 <KEYWORD4>constructor</KEYWORD4>
92 <KEYWORD4>data</KEYWORD4>
93 <KEYWORD4>destructor</KEYWORD4>
94 <KEYWORD4>eo_prefix</KEYWORD4>
95 <KEYWORD1>legacy</KEYWORD1>
96 <KEYWORD1>legacy_prefix</KEYWORD1>
97
98 <KEYWORD2>const</KEYWORD2>
99 <KEYWORD2>own</KEYWORD2>
100 <KEYWORD2>private</KEYWORD2>
101 <KEYWORD2>virtual</KEYWORD2>
102
103 <KEYWORD4>func</KEYWORD4>
104
105 <KEYWORD3>struct</KEYWORD3>
106 <KEYWORD3>byte</KEYWORD3>
107 <KEYWORD3>ubyte</KEYWORD3>
108 <KEYWORD3>char</KEYWORD3>
109 <KEYWORD3>short</KEYWORD3>
110 <KEYWORD3>ushort</KEYWORD3>
111 <KEYWORD3>int</KEYWORD3>
112 <KEYWORD3>uint</KEYWORD3>
113 <KEYWORD3>long</KEYWORD3>
114 <KEYWORD3>ulong</KEYWORD3>
115 <KEYWORD3>llong</KEYWORD3>
116 <KEYWORD3>ullong</KEYWORD3>
117 <KEYWORD3>int8</KEYWORD3>
118 <KEYWORD3>uint8</KEYWORD3>
119 <KEYWORD3>int16</KEYWORD3>
120 <KEYWORD3>uint16</KEYWORD3>
121 <KEYWORD3>int32</KEYWORD3>
122 <KEYWORD3>uint32</KEYWORD3>
123 <KEYWORD3>int64</KEYWORD3>
124 <KEYWORD3>uint64</KEYWORD3>
125 <KEYWORD3>int128</KEYWORD3>
126 <KEYWORD3>uint128</KEYWORD3>
127 <KEYWORD3>size</KEYWORD3>
128 <KEYWORD3>ssize</KEYWORD3>
129 <KEYWORD3>intptr</KEYWORD3>
130 <KEYWORD3>uintptr</KEYWORD3>
131 <KEYWORD3>ptrdiff</KEYWORD3>
132 <KEYWORD3>time</KEYWORD3>
133 <KEYWORD3>float</KEYWORD3>
134 <KEYWORD3>double</KEYWORD3>
135 <KEYWORD3>ldouble</KEYWORD3>
136 <KEYWORD3>bool</KEYWORD3>
137 <KEYWORD3>void</KEYWORD3>
138
139 <KEYWORD2>@class</KEYWORD2>
140 <KEYWORD2>@const</KEYWORD2>
141 <KEYWORD2>@constructor</KEYWORD2>
142 <KEYWORD2>@extern</KEYWORD2>
143 <KEYWORD2>@in</KEYWORD2>
144 <KEYWORD2>@inout</KEYWORD2>
145 <KEYWORD2>@nonull</KEYWORD2>
146 <KEYWORD2>@out</KEYWORD2>
147 <KEYWORD2>@protected</KEYWORD2>
148 <KEYWORD2>@warn_unused</KEYWORD2>
149
150 <LITERAL2>true</LITERAL2>
151 <LITERAL2>false</LITERAL2>
152 <LITERAL2>null</LITERAL2>
153 </KEYWORDS>
154 </RULES>
155</MODE>