PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/io.xml

#
XML | 154 lines | 119 code | 7 blank | 28 comment | 0 complexity | a2c6f21ea622da8ea935c38b5b847e95 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!-- @RisingSun//XML//1.0//EN________________________________________________
  4	
  5	JEdit syntax mode for Io
  6
  7	..........................................................................
  8
  9	File name		:	io.xml
 10	Description		:	JEdit syntax file for the Io programming language
 11	Related links	:	<http://www.iolanguage.com>, <http://www.jedit.org>
 12
 13	..........................................................................
 14	Author			:	S├ębastien Pierre                  <spierre@type-z.org>
 15	..........................................................................
 16
 17	Creation date	:	05-May-2003
 18	Last revision	:	19-May-2003
 19	Revision		:	1.1
 20    History			:	
 21						19-May-2003 Added primitives highlighting.
 22						05-May-2003 First release
 23 
 24	.....................................................................  -->
 25
 26<!-- ________________________________________________________D O C T Y P E -->
 27<!DOCTYPE MODE SYSTEM "xmode.dtd">
 28
 29<!-- ____________________________________________D O C U M E N T _ R O O T -->
 30<MODE>
 31
 32	<!-- Properties_______________________________________________________ -->
 33
 34	<PROPS>
 35		<PROPERTY NAME="commentStart" VALUE="/*" />
 36		<PROPERTY NAME="commentStart" VALUE="*/" />
 37		<PROPERTY NAME="lineComment" VALUE="#" />
 38		<!-- FIXME: There may be a problem with this redefinition of
 39		lineComment-->
 40		<PROPERTY NAME="lineComment" VALUE="//" />
 41		<PROPERTY NAME="indentOpenBrackets" VALUE="(" />
 42		<PROPERTY NAME="indentCloseBrackets" VALUE=")" />
 43		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 44	</PROPS>
 45
 46	<!-- Rules____________________________________________________________ -->
 47
 48	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 49
 50		<!-- Comments_____________________________________________________ -->
 51
 52		<!-- Shell-like comments -->
 53		<EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
 54
 55
 56		<!-- C-like comments -->
 57		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 58		<SPAN TYPE="COMMENT1">
 59			<BEGIN>/*</BEGIN>
 60			<END>*/</END>
 61		</SPAN>
 62
 63		<!-- Strings______________________________________________________ -->
 64
 65		<!-- Single quotes -->
 66		<SPAN TYPE="LITERAL2">
 67			<BEGIN>"</BEGIN>
 68			<END>"</END>
 69		</SPAN>
 70
 71		<!-- Triple quotes -->
 72		<SPAN TYPE="LITERAL2">
 73			<BEGIN>"""</BEGIN>
 74			<END>"""</END>
 75		</SPAN>
 76
 77		<!-- Operatiors___________________________________________________ -->
 78
 79		<SEQ TYPE="OPERATOR">`</SEQ>
 80		<SEQ TYPE="OPERATOR">~</SEQ>
 81		<SEQ TYPE="OPERATOR">@</SEQ>
 82		<SEQ TYPE="OPERATOR">@@</SEQ>
 83		<SEQ TYPE="OPERATOR">$</SEQ>
 84		<SEQ TYPE="OPERATOR">%</SEQ>
 85		<SEQ TYPE="OPERATOR">^</SEQ>
 86		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 87		<SEQ TYPE="OPERATOR">*</SEQ>
 88		<SEQ TYPE="OPERATOR">-</SEQ>
 89		<SEQ TYPE="OPERATOR">+</SEQ>
 90		<SEQ TYPE="OPERATOR">/</SEQ>
 91		<SEQ TYPE="OPERATOR">=</SEQ>
 92		<SEQ TYPE="OPERATOR">{</SEQ>
 93		<SEQ TYPE="OPERATOR">}</SEQ>
 94		<SEQ TYPE="OPERATOR">[</SEQ>
 95		<SEQ TYPE="OPERATOR">]</SEQ>
 96		<SEQ TYPE="OPERATOR">|</SEQ>
 97		<SEQ TYPE="OPERATOR">\</SEQ>
 98		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 99		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
100		<SEQ TYPE="OPERATOR">?</SEQ>
101
102		<!-- Keywords_____________________________________________________ -->
103
104		<KEYWORDS>
105
106			<!-- Io primitives -->
107			<KEYWORD1>Block</KEYWORD1>
108			<KEYWORD1>Buffer</KEYWORD1>
109			<KEYWORD1>CFunction</KEYWORD1>
110			<KEYWORD1>Date</KEYWORD1>
111			<KEYWORD1>Duration</KEYWORD1>
112			<KEYWORD1>File</KEYWORD1>
113			<KEYWORD1>Future</KEYWORD1>
114			<KEYWORD1>List</KEYWORD1>
115			<KEYWORD1>LinkedList</KEYWORD1>
116			<KEYWORD1>Map</KEYWORD1>
117			<KEYWORD1>Nop</KEYWORD1>
118			<KEYWORD1>Message</KEYWORD1>
119			<KEYWORD1>Nil</KEYWORD1>
120			<KEYWORD1>Number</KEYWORD1>
121			<KEYWORD1>Object</KEYWORD1>
122			<KEYWORD1>String</KEYWORD1>
123			<KEYWORD1>WeakLink</KEYWORD1>
124
125			<!-- Io lambda-like primitives -->
126			<KEYWORD1>block</KEYWORD1>
127			<KEYWORD1>method</KEYWORD1>
128
129			<!--  Io control primitives -->
130			<KEYWORD2>while</KEYWORD2>
131			<KEYWORD2>foreach</KEYWORD2>
132			<KEYWORD2>if</KEYWORD2>
133			<KEYWORD2>else</KEYWORD2>
134			<KEYWORD2>do</KEYWORD2>
135
136			<!--  Io basic messages -->
137			<KEYWORD3>super</KEYWORD3>
138			<KEYWORD3>self</KEYWORD3>
139			<KEYWORD3>clone</KEYWORD3>
140			<KEYWORD3>proto</KEYWORD3>
141			<KEYWORD3>setSlot</KEYWORD3>
142			<KEYWORD3>hasSlot</KEYWORD3>
143			<KEYWORD3>type</KEYWORD3>
144			<KEYWORD3>write</KEYWORD3>
145			<KEYWORD3>print</KEYWORD3>
146			<KEYWORD3>forward</KEYWORD3>
147
148		</KEYWORDS>
149
150	</RULES>
151
152</MODE>
153
154<!-- EOF-UNIX/iso-8895-1__________________________@RisingSun//XML//1.0//EN -->