editors

changeset 49:7d21da078873

* merge
author Shawn Pringle <shawn.pringle@gmail.com>
date Tue Jan 03 19:29:20 2012 -0300 (2012-01-03)
parents 84db17e3509a 7daf041ebfd3
children 93a5ae011d20
files
line diff
     1.1 --- a/kate/euphoria.xml	Tue Jan 03 19:25:37 2012 -0300
     1.2 +++ b/kate/euphoria.xml	Tue Jan 03 19:29:20 2012 -0300
     1.3 @@ -1,432 +1,421 @@
     1.4  <?xml version="1.0" encoding="UTF-8"?>
     1.5  <!DOCTYPE language SYSTEM "language.dtd">
     1.6  <!--
     1.7 +copyright   : (C) 2004 by Irv Mullins
     1.8 +email       : irvm at ellijay dot com
     1.9  
    1.10 -  This file is part of KDE's kate project.
    1.11 +last change : 2012-01-03 for Euphoria 4.1 by Matt Lewis
    1.12  
    1.13 -  copyright   : (C) 2004 by Irv Mullins
    1.14 -  email       : irvm at ellijay dot com
    1.15 +This library is free software; you can redistribute it and/or
    1.16 +modify it under the terms of the GNU Library General Public
    1.17 +License as published by the Free Software Foundation; either
    1.18 +version 2 of the License, or (at your option) any later version.
    1.19  
    1.20 -  last change : 2008-08-08 for Euphoria 4.0 and EuGTK 4.0
    1.21 +This library is distributed in the hope that it will be useful,
    1.22 +but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.23 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.24 +Library General Public License for more details.
    1.25  
    1.26 -  This library is free software; you can redistribute it and/or
    1.27 -  modify it under the terms of the GNU Library General Public
    1.28 -  License as published by the Free Software Foundation; either
    1.29 -  version 2 of the License, or (at your option) any later version.
    1.30 -
    1.31 -  This library is distributed in the hope that it will be useful,
    1.32 -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.33 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.34 -  Library General Public License for more details.
    1.35 -
    1.36 -  You should have received a copy of the GNU Library General Public
    1.37 -  License along with this library; if not, write to the
    1.38 -  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    1.39 -  Boston, MA  02110-1301, USA.
    1.40 +You should have received a copy of the GNU Library General Public
    1.41 +License along with this library; if not, write to the
    1.42 +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    1.43 +Boston, MA  02110-1301, USA.
    1.44  
    1.45  -->
    1.46  
    1.47 -<!-- Store this in /usr/share/apps/katepart/syntax -->
    1.48 +<!-- Store this in ~/.kde/share/apps/katepart/syntax/ -->
    1.49  
    1.50 -<language name="Euphoria" version="4.0" kateversion="2.5.9" section="Scripts" extensions="*.e;*.ex;*.exw;*.exu" mimetype="text/x-euphoria" author="Irv Mullins (irvm@ellijay.com)" license="LGPL">
    1.51 +<language name="Euphoria" version="4.1" kateversion="3.7.3" section="Scripts" extensions="*.e;*.ew;*.eu;*.ex;*.exw;*.exu;*.E;*.EW;*.EU;*.EX;*.EXW;*.EXU" mimetype="text/x-euphoria" author="Irv Mullins (irvm@ellijay.com)" license="LGPL">
    1.52  
    1.53 -	<highlighting>
    1.54 -  
    1.55 -	 <list name="keywords">
    1.56 -   <item> abort </item>
    1.57 -   <item> allocate </item>
    1.58 -   <item> allocate_string </item>
    1.59 -   <item> allow_break </item>
    1.60 -   <item> and </item>
    1.61 -   <item> and_bits </item>
    1.62 -   <item> append </item>
    1.63 -   <item> arccos </item>
    1.64 -   <item> arcsin </item>
    1.65 -   <item> arctan </item>
    1.66 -   <item> atom_to_float32 </item>
    1.67 -   <item> atom_to_float64 </item>
    1.68 -   <item> as </item>
    1.69 -   <item> begin </item>
    1.70 -   <item> bits_to_int </item>
    1.71 -   <item> bytes_to_int </item>
    1.72 -   <item> c_func </item>
    1.73 -   <item> c_proc </item>
    1.74 -   <item> call </item>
    1.75 -   <item> call_back </item>
    1.76 -   <item> call_func </item>
    1.77 -   <item> call_proc </item>
    1.78 -   <item> case </item>
    1.79 -   <item> check_break </item>
    1.80 -   <item> chdir </item>
    1.81 -   <item> clear_screen </item>
    1.82 -   <item> close </item>
    1.83 -   <item> command_line </item>
    1.84 -   <item> compare </item>
    1.85 -   <item> cos </item>
    1.86 -   <item> crash_file </item>
    1.87 -   <item> crash_message </item>
    1.88 -   <item> current_dir </item>
    1.89 -   <item> custom_sort </item>
    1.90 -   <item> date </item>
    1.91 -   <item> define_c_func </item>
    1.92 -   <item> define_c_proc </item>
    1.93 -   <item> define_c_var </item>
    1.94 -   <item> dir </item>
    1.95 -   <item> display_text_image </item>
    1.96 -   <item> do </item>
    1.97 -   <item> else </item>
    1.98 -   <item> elsif </item>
    1.99 -   <item> end </item>
   1.100 -   <item> equal </item>
   1.101 -   <item> exit </item>
   1.102 -   <item> find </item>
   1.103 -   <item> float32_to_atom </item>
   1.104 -   <item> float64_to_atom </item>
   1.105 -   <item> floor </item>
   1.106 -   <item> flush </item>
   1.107 -   <item> for </item>
   1.108 -   <item> free </item>
   1.109 -   <item> free_console </item>
   1.110 -   <item> function </item>
   1.111 -   <item> get_bytes </item>
   1.112 -   <item> get_key </item>
   1.113 -   <item> get_mouse </item>
   1.114 -   <item> get_position </item>
   1.115 -   <item> get_screen_char </item>
   1.116 -   <item> getc </item>
   1.117 -   <item> getenv </item>
   1.118 -   <item> gets </item>
   1.119 -   <item> if </item>
   1.120 -   <item> include </item>
   1.121 -   <item> int_to_bits </item>
   1.122 -   <item> int_to_bytes </item>
   1.123 -   <item> length </item>
   1.124 -   <item> lock_file </item>
   1.125 -   <item> log </item>
   1.126 -   <item> lower </item>
   1.127 -   <item> machine_func </item>
   1.128 -   <item> machine_proc </item>
   1.129 -   <item> match </item>
   1.130 -   <item> mem_copy </item>
   1.131 -   <item> mem_set </item>
   1.132 -   <item> mouse_events </item>
   1.133 -   <item> mouse_pointer </item>
   1.134 -   <item> not </item>
   1.135 -   <item> not_bits </item>
   1.136 -   <item> of </item>
   1.137 -   <item> open </item>
   1.138 -   <item> open_dll </item>
   1.139 -   <item> or </item>
   1.140 -   <item> or_bits </item>
   1.141 -   <item> peek </item>
   1.142 -   <item> peek4 </item>
   1.143 -   <item> peek4s </item>
   1.144 -   <item> peek4u </item>
   1.145 -   <item> platform </item>
   1.146 -   <item> poke </item>
   1.147 -   <item> poke4 </item>
   1.148 -   <item> position </item>
   1.149 -   <item> power </item>
   1.150 -   <item> prepend </item>
   1.151 -   <item> print </item>
   1.152 -   <item> printf </item>
   1.153 -   <item> procedure </item>
   1.154 -   <item> profile </item>
   1.155 -   <item> prompt_number </item>
   1.156 -   <item> prompt_string </item>
   1.157 -   <item> put_screen_char </item>
   1.158 -   <item> puts </item>
   1.159 -   <item> rand </item>
   1.160 -   <item> read_bitmap </item>
   1.161 -   <item> register_block </item>
   1.162 -   <item> remainder </item>
   1.163 -   <item> repeat </item>
   1.164 -   <item> return </item>
   1.165 -   <item> reverse </item>
   1.166 -   <item> routine_id </item>
   1.167 -   <item> save_bitmap </item>
   1.168 -   <item> save_text_image </item>
   1.169 -   <item> scroll </item>
   1.170 -   <item> seek </item>
   1.171 -   <item> set_rand </item>
   1.172 -   <item> sin </item>
   1.173 -   <item> sleep </item>
   1.174 -   <item> sort </item>
   1.175 -   <item> sprint </item>
   1.176 -   <item> sprintf </item>
   1.177 -   <item> sqrt </item>
   1.178 -   <item> switch </item>
   1.179 -   <item> system </item>
   1.180 -   <item> system_exec </item>
   1.181 -   <item> tan </item>
   1.182 -   <item> text_color </item>
   1.183 -   <item> then </item>
   1.184 -   <item> time </item>
   1.185 -   <item> to </item>
   1.186 -   <item> trace </item>
   1.187 -   <item> type </item>
   1.188 -   <item> unlock_file </item>
   1.189 -   <item> unregister_block </item>
   1.190 -   <item> upper </item>
   1.191 -   <item> value </item>
   1.192 -   <item> video_config </item>
   1.193 -   <item> wait_key </item>
   1.194 -   <item> walk_dir </item>
   1.195 -   <item> where </item>
   1.196 -   <item> while </item>
   1.197 -   <item> wildcard_file </item>
   1.198 -   <item> wildcard_match </item>
   1.199 -    <item> with </item>
   1.200 -    <item> without </item>
   1.201 -    <item> wrap </item>
   1.202 -    <item> xor </item>
   1.203 -    <item> xor_bits </item>
   1.204 -    <item> ? </item>
   1.205 -  </list>
   1.206 +<highlighting>
   1.207 +	<list name="keywords">
   1.208 +		<item> abort </item>
   1.209 +		<item> addressof </item>
   1.210 +		<item> allow_break </item>
   1.211 +		<item> and_bits </item>
   1.212 +		<item> and </item>
   1.213 +		<item> append </item>
   1.214 +		<item> arccos </item>
   1.215 +		<item> arcsin </item>
   1.216 +		<item> arctan </item>
   1.217 +		<item> begin </item>
   1.218 +		<item> break </item>
   1.219 +		<item> by </item>
   1.220 +		<item> call_func </item>
   1.221 +		<item> call </item>
   1.222 +		<item> call_proc </item>
   1.223 +		<item> case </item>
   1.224 +		<item> c_func </item>
   1.225 +		<item> clear_screen </item>
   1.226 +		<item> close </item>
   1.227 +		<item> command_line </item>
   1.228 +		<item> compare </item>
   1.229 +		<item> continue </item>
   1.230 +		<item> cos </item>
   1.231 +		<item> c_proc </item>
   1.232 +		<item> date </item>
   1.233 +		<item> delete </item>
   1.234 +		<item> delete_routine </item>
   1.235 +		<item> do </item>
   1.236 +		<item> elsedef </item>
   1.237 +		<item> else </item>
   1.238 +		<item> elsif </item>
   1.239 +		<item> end </item>
   1.240 +		<item> entry </item>
   1.241 +		<item> equal </item>
   1.242 +		<item> exit </item>
   1.243 +		<item> fallthru </item>
   1.244 +		<item> find_from </item>
   1.245 +		<item> find </item>
   1.246 +		<item> floor </item>
   1.247 +		<item> flush </item>
   1.248 +		<item> for </item>
   1.249 +		<item> function </item>
   1.250 +		<item> getc </item>
   1.251 +		<item> getenv </item>
   1.252 +		<item> gets </item>
   1.253 +		<item> goto </item>
   1.254 +		<item> hash </item>
   1.255 +		<item> head </item>
   1.256 +		<item> if </item>
   1.257 +		<item> include_paths </item>
   1.258 +		<item> insert </item>
   1.259 +		<item> label </item>
   1.260 +		<item> length </item>
   1.261 +		<item> log </item>
   1.262 +		<item> loop </item>
   1.263 +		<item> machine_func </item>
   1.264 +		<item> machine_proc </item>
   1.265 +		<item> match_from </item>
   1.266 +		<item> match </item>
   1.267 +		<item> mem_copy </item>
   1.268 +		<item> mem_set </item>
   1.269 +		<item> not_bits </item>
   1.270 +		<item> not </item>
   1.271 +		<item> offsetof </item>
   1.272 +		<item> of </item>
   1.273 +		<item> open </item>
   1.274 +		<item> or_bits </item>
   1.275 +		<item> or </item>
   1.276 +		<item> override </item>
   1.277 +		<item> peek2s </item>
   1.278 +		<item> peek2u </item>
   1.279 +		<item> peek4 </item>
   1.280 +		<item> peek4s </item>
   1.281 +		<item> peek4u </item>
   1.282 +		<item> peek8s </item>
   1.283 +		<item> peek8u </item>
   1.284 +		<item> peek </item>
   1.285 +		<item> peek_pointer </item>
   1.286 +		<item> peeks </item>
   1.287 +		<item> peek_string </item>
   1.288 +		<item> platform </item>
   1.289 +		<item> poke2 </item>
   1.290 +		<item> poke4 </item>
   1.291 +		<item> poke8 </item>
   1.292 +		<item> poke </item>
   1.293 +		<item> poke_pointer </item>
   1.294 +		<item> position </item>
   1.295 +		<item> power </item>
   1.296 +		<item> prepend </item>
   1.297 +		<item> printf </item>
   1.298 +		<item> print </item>
   1.299 +		<item> procedure </item>
   1.300 +		<item> profile </item>
   1.301 +		<item> puts </item>
   1.302 +		<item> rand </item>
   1.303 +		<item> remainder </item>
   1.304 +		<item> remove </item>
   1.305 +		<item> repeat </item>
   1.306 +		<item> replace </item>
   1.307 +		<item> retry </item>
   1.308 +		<item> return </item>
   1.309 +		<item> routine_id </item>
   1.310 +		<item> routine </item>
   1.311 +		<item> sin </item>
   1.312 +		<item> splice </item>
   1.313 +		<item> sprintf </item>
   1.314 +		<item> sqrt </item>
   1.315 +		<item> switch </item>
   1.316 +		<item> system_exec </item>
   1.317 +		<item> system </item>
   1.318 +		<item> tail </item>
   1.319 +		<item> tan </item>
   1.320 +		<item> task_clock_start </item>
   1.321 +		<item> task_clock_stop </item>
   1.322 +		<item> task_create </item>
   1.323 +		<item> task_list </item>
   1.324 +		<item> task_schedule </item>
   1.325 +		<item> task_self </item>
   1.326 +		<item> task_status </item>
   1.327 +		<item> task_suspend </item>
   1.328 +		<item> task_yield </item>
   1.329 +		<item> then </item>
   1.330 +		<item> time </item>
   1.331 +		<item> to </item>
   1.332 +		<item> trace </item>
   1.333 +		<item> type </item>
   1.334 +		<item> until </item>
   1.335 +		<item> warning </item>
   1.336 +		<item> while </item>
   1.337 +		<item> xor_bits </item>
   1.338 +		<item> xor </item>
   1.339 +	</list>
   1.340  
   1.341 -  <list name="types">
   1.342 +	<list name="types">
   1.343  		<item> as </item>
   1.344 -    <item> atom </item>
   1.345 -    <item> constant </item>
   1.346 +		<item> atom </item>
   1.347 +		<item> constant </item>
   1.348 +		<item> enum </item>
   1.349  		<item> export </item>
   1.350 +		<item> public </item>
   1.351  		<item> global </item>
   1.352 -		<item> include </item>
   1.353 -    <item> integer </item>
   1.354 -    <item> object </item>
   1.355 -    <item> sequence </item>
   1.356 -    <item> boolean </item>
   1.357 -    <item> type </item>
   1.358 -  </list>
   1.359 +		<item> deprecate </item>
   1.360 +		<item> integer </item>
   1.361 +		<item> object </item>
   1.362 +		<item> sequence </item>
   1.363 +		<item> type </item>
   1.364 +	</list>
   1.365  
   1.366 -  <list name="constants">
   1.367 -    <item> PI </item>
   1.368 -    <item> GET_SUCCESS </item>
   1.369 -  </list>
   1.370 +	<list name="ifdefs">
   1.371 +		<item> ifdef </item>
   1.372 +		<item> elsifdef </item>
   1.373 +	</list>
   1.374 +	
   1.375 +	<list name="memstruct_primitives">
   1.376 +		<item> char </item>
   1.377 +		<item> unsigned </item>
   1.378 +		<item> signed </item>
   1.379 +		<item> short </item>
   1.380 +		<item> long </item>
   1.381 +		<item> int </item>
   1.382 +		<item> object </item>
   1.383 +		<item> double </item>
   1.384 +		<item> eudouble </item>
   1.385 +		<item> pointer </item>
   1.386 +	</list>
   1.387 +	
   1.388 +	<list name="memstruct_declaration">
   1.389 +		<item> memstruct </item>
   1.390 +		<item> memunion </item>
   1.391 +	</list>
   1.392 +	
   1.393 +	<list name="memtype_declaration">
   1.394 +		<item> memtype </item>
   1.395 +	</list>
   1.396 +	
   1.397 +	<list name="with_without">
   1.398 +		<item> with </item>
   1.399 +		<item> without </item>
   1.400 +	</list>
   1.401 +	
   1.402 +	<list name="with_directives">
   1.403 +		<item> define </item>
   1.404 +		<item> trace </item>
   1.405 +		<item> profile </item>
   1.406 +		<item> profile_time </item>
   1.407 +		<item> type_check </item>
   1.408 +		<item> warning </item>
   1.409 +		<item> indirect_includes </item>
   1.410 +		<item> inline </item>
   1.411 +	</list>
   1.412 +	
   1.413 +	<list name="ifdef_conditions">
   1.414 +		<item> and </item>
   1.415 +		<item> or </item>
   1.416 +		<item> not </item>
   1.417 +	</list>
   1.418 +	<contexts>
   1.419 +			
   1.420 +		<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
   1.421 +			<DetectSpaces/>
   1.422 +			<!--
   1.423 +				NB: case else should start a new region, but currently, Kate crashes when we use a lookAhead read
   1.424 +				below to end the regCase region with "end switch", so we'll just not start a region at "case else".
   1.425 +				Of course, this might mess up folding for code without a "case else".
   1.426 +			-->
   1.427 +			<RegExpr attribute="Keyword" context="#stay" String="\bcase\s+else\b" endRegion="regCase" />
   1.428 +			<RegExpr attribute="Keyword" context="#stay" String="\bcase\b" endRegion="regCase" beginRegion="regCase"/>
   1.429 +			
   1.430 +			<!--<RegExpr attribute="Keyword" context="#stay" lookAhead="true" String="\bend\s+switch\b" endRegion="regCase"/>-->
   1.431 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+switch\b" endRegion="regSwitch"/>
   1.432 +			<RegExpr attribute="Keyword" context="#stay" String="\bswitch\b" beginRegion="regSwitch"/>
   1.433 +			
   1.434 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+for\b" endRegion="regFor"/>
   1.435 +			<RegExpr attribute="Keyword" context="#stay" String="\bfor\b" beginRegion="regFor"/>
   1.436  
   1.437 - <list name="Gtkkeywords">
   1.438 -	<item> add </item>
   1.439 -	<item> connect </item>
   1.440 -	<item> create </item>
   1.441 -	<item> get </item>
   1.442 -	<item> pack </item>
   1.443 -	<item> set </item>
   1.444 -	<item> show </item>
   1.445 -	<item> show_all </item>
   1.446 -	<item> main </item>
   1.447 - </list>
   1.448 +			<RegExpr attribute="Keyword" context="#stay" String="\belsif\b" endRegion="regIf" beginRegion="regIf"/>
   1.449 +			<RegExpr attribute="Keyword" context="#stay" String="\belse\b" endRegion="regIf" beginRegion="regIf"/>
   1.450 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+if\b" endRegion="regIf"/>
   1.451 +			<RegExpr attribute="Keyword" context="#stay" String="\bif\b" beginRegion="regIf"/>
   1.452 +			
   1.453 +			<keyword attribute="Keyword" context="IfDef" String="ifdefs" endRegion="regIfDef" beginRegion="regIfDef"/>
   1.454 +			
   1.455 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+ifdef\b" endRegion="regIfDef"/>
   1.456 +			<RegExpr attribute="Keyword" context="#stay" String="\belsifdef\b" endRegion="regIfDef" beginRegion="regIfDef"/>
   1.457 +			<RegExpr attribute="Keyword" context="#stay" String="\belsedef\b" endRegion="regIfDef" beginRegion="regIfDef"/>
   1.458 +			<RegExpr attribute="Keyword" context="#stay" String="\bifdef\b" beginRegion="regIfDef"/>
   1.459  
   1.460 - <list name="Gtkwidgets">
   1.461 -	<item> GObject </item>
   1.462 -	<item> GdkPixbuf </item>
   1.463 -	<item> GtkAboutDialog </item>
   1.464 -	<item> GtkAction </item>
   1.465 -	<item> GtkAdjustment </item>
   1.466 -	<item> GtkAlignment </item>
   1.467 -	<item> GtkArrow </item>
   1.468 -	<item> GtkAspectFrame </item>
   1.469 -	<item> GtkAssistant </item>
   1.470 -	<item> GtkBin </item>
   1.471 -	<item> GtkBox </item>
   1.472 -	<item> GtkButton </item>
   1.473 -	<item> GtkButtonBox </item>
   1.474 -	<item> GtkCalendar </item>
   1.475 -	<item> GtkCellRenderer </item>
   1.476 -	<item> GtkCellRendererText </item>
   1.477 -	<item> GtkCheckButton </item>
   1.478 -	<item> GtkCheckMenuItem </item>
   1.479 -	<item> GtkColorButton </item>
   1.480 -	<item> GtkColorSelectionDialog </item>
   1.481 -	<item> GtkComboBox </item>
   1.482 -	<item> GtkComboBoxEntry </item>
   1.483 -	<item> GtkComboBoxText </item>
   1.484 -	<item> GtkContainer </item>
   1.485 -	<item> GtkCurve </item>
   1.486 -	<item> GtkDialog </item>
   1.487 -	<item> GtkDrawingArea </item>
   1.488 -	<item> GtkEntry </item>
   1.489 -	<item> GtkEntryCompletion </item>
   1.490 -	<item> GtkEventBox </item>
   1.491 -	<item> GtkExpander </item>
   1.492 -	<item> GtkFileChooser </item>
   1.493 -	<item> GtkFileChooserButton </item>
   1.494 -	<item> GtkFileChooserDialog </item>
   1.495 -	<item> GtkFileChooserWidget </item>
   1.496 -	<item> GtkFileFilter </item>
   1.497 -	<item> GtkFixed </item>
   1.498 -	<item> GtkFontButton </item>
   1.499 -	<item> GtkFontSelection </item>
   1.500 -	<item> GtkFontSelectionDialog </item>
   1.501 -	<item> GtkFrame </item>
   1.502 -	<item> GtkHBox </item>
   1.503 -	<item> GtkHButtonBox </item>
   1.504 -	<item> GtkHPaned </item>
   1.505 -	<item> GtkHRuler </item>
   1.506 -	<item> GtkHSV </item>
   1.507 -	<item> GtkHScale </item>
   1.508 -	<item> GtkHScrollbar </item>
   1.509 -	<item> GtkHSeparator </item>
   1.510 -	<item> GtkHandleBox </item>
   1.511 -	<item> GtkIconInfo </item>
   1.512 -	<item> GtkIconTheme </item>
   1.513 -	<item> GtkIconView </item>
   1.514 -	<item> GtkImContext </item>
   1.515 -	<item> GtkImContextSimple </item>
   1.516 -	<item> GtkImMulticontext </item>
   1.517 -	<item> GtkImage </item>
   1.518 -	<item> GtkImageMenuItem </item>
   1.519 -	<item> GtkInputDialog </item>
   1.520 -	<item> GtkInvisible </item>
   1.521 -	<item> GtkItem </item>
   1.522 -	<item> GtkLabel </item>
   1.523 -	<item> GtkLayout </item>
   1.524 -	<item> GtkLinkButton </item>
   1.525 -	<item> GtkListStore </item>
   1.526 -	<item> GtkMain </item>
   1.527 -	<item> GtkMenu </item>
   1.528 -	<item> GtkMenuBar </item>
   1.529 -	<item> GtkMenuItem </item>
   1.530 -	<item> GtkMenuShell </item>
   1.531 -	<item> GtkMenuToolButton </item>
   1.532 -	<item> GtkMessageDialog </item>
   1.533 -	<item> GtkMisc </item>
   1.534 -	<item> GtkNotebook </item>
   1.535 -	<item> GtkObject </item>
   1.536 -	<item> GtkPageSetup </item>
   1.537 -	<item> GtkPageSetupUnixDialog </item>
   1.538 -	<item> GtkPaned </item>
   1.539 -	<item> GtkPaperSize </item>
   1.540 -	<item> GtkPlug </item>
   1.541 -	<item> GtkPrintBackend </item>
   1.542 -	<item> GtkPrintContext </item>
   1.543 -	<item> GtkPrintJob </item>
   1.544 -	<item> GtkPrintOperation </item>
   1.545 -	<item> GtkPrintRun </item>
   1.546 -	<item> GtkPrintSettings </item>
   1.547 -	<item> GtkPrintUnixDialog </item>
   1.548 -	<item> GtkPrinter </item>
   1.549 -	<item> GtkPrinterOption </item>
   1.550 -	<item> GtkPrinterOptionSet </item>
   1.551 -	<item> GtkPrinterOptionWidget </item>
   1.552 -	<item> GtkProgress </item>
   1.553 -	<item> GtkProgressBar </item>
   1.554 -	<item> GtkRadioAction </item>
   1.555 -	<item> GtkRadioButton </item>
   1.556 -	<item> GtkRadioMenuItem </item>
   1.557 -	<item> GtkRadioToolButton </item>
   1.558 -	<item> GtkRange </item>
   1.559 -	<item> GtkRecentChooserDialog </item>
   1.560 -	<item> GtkRequisition </item>
   1.561 -	<item> GtkRuler </item>
   1.562 -	<item> GtkScale </item>
   1.563 -	<item> GtkScaleButton </item>
   1.564 -	<item> GtkScrollbar </item>
   1.565 -	<item> GtkScrolledWindow </item>
   1.566 -	<item> GtkSeparator </item>
   1.567 -	<item> GtkSeparatorMenuItem </item>
   1.568 -	<item> GtkSpinButton </item>
   1.569 -	<item> GtkStatusBar </item>
   1.570 -	<item> GtkTable </item>
   1.571 -	<item> GtkTearoffMenuItem </item>
   1.572 -	<item> GtkToggleAction </item>
   1.573 -	<item> GtkToggleButton </item>
   1.574 -	<item> GtkToggleToolButton </item>
   1.575 -	<item> GtkToolBar </item>
   1.576 -	<item> GtkToolButton </item>
   1.577 -	<item> GtkToolItem </item>
   1.578 -	<item> GtkToolTip </item>
   1.579 -	<item> GtkTreeIter </item>
   1.580 -	<item> GtkTreeModel </item>
   1.581 -	<item> GtkTreeModelFilter </item>
   1.582 -	<item> GtkTreeModelSort </item>
   1.583 -	<item> GtkTreePath </item>
   1.584 -	<item> GtkTreeRowReference </item>
   1.585 -	<item> GtkTreeSelection </item>
   1.586 -	<item> GtkTreeSortable </item>
   1.587 -	<item> GtkTreeStore </item>
   1.588 -	<item> GtkTreeView </item>
   1.589 -	<item> GtkTreeViewColumn </item>
   1.590 -	<item> GtkVBox </item>
   1.591 -	<item> GtkVButtonBox </item>
   1.592 -	<item> GtkVPaned </item>
   1.593 -	<item> GtkVRuler </item>
   1.594 -	<item> GtkVScale </item>
   1.595 -	<item> GtkVScrollbar </item>
   1.596 -	<item> GtkVSeparator </item>
   1.597 -	<item> GtkViewport </item>
   1.598 -	<item> GtkVolumeButton </item>
   1.599 -	<item> GtkWidget </item>
   1.600 -	<item> GtkWindow </item>
   1.601 -	<item> GtkWindowGroup </item>
   1.602 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+function\b" endRegion="regFunction"/>
   1.603 +			<RegExpr attribute="Keyword" context="#stay" String="\bfunction\b" beginRegion="regFunction"/>
   1.604  
   1.605 -    </list>
   1.606 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+procedure\b" endRegion="regProcedure"/>
   1.607 +			<RegExpr attribute="Keyword" context="#stay" String="\bprocedure\b" beginRegion="regProcedure"/>
   1.608  
   1.609 -    <contexts>
   1.610 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+while\b" endRegion="regWhile"/>
   1.611 +			<RegExpr attribute="Keyword" context="#stay" String="\bwhile\b" beginRegion="regWhile"/>
   1.612 +
   1.613 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+type\b" endRegion="regType"/>
   1.614 +			<RegExpr attribute="Keyword" context="#stay" String="\btype\b" beginRegion="regType"/>
   1.615  			
   1.616 -      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
   1.617 -        
   1.618 -				<RegExpr attribute="Keyword" context="#stay" String="\bend\s+for\b" endRegion="regFor"/>
   1.619 -        <RegExpr attribute="Keyword" context="#stay" String="\bfor\b" beginRegion="regFor"/>
   1.620 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+enum\s+type\b" endRegion="regType"/>
   1.621 +			<RegExpr attribute="Keyword" context="#stay" String="\benum\s+type\b" beginRegion="regType"/>
   1.622 +			
   1.623 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\s+loop\b" endRegion="regLoop"/>
   1.624 +			<RegExpr attribute="Keyword" context="#stay" String="\bend\sloop\b" endRegion="regLoop"/>
   1.625  
   1.626 -        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+if\b" endRegion="regIf"/>
   1.627 -        <RegExpr attribute="Keyword" context="#stay" String="\bif\b" beginRegion="regIf"/>
   1.628 +			<keyword attribute="Keyword" String="with_without" context="With Directive" firstNonSpace="true"/>
   1.629 +			
   1.630 +			<keyword attribute="Keyword" context="#stay" String="keywords"/>
   1.631 +			<keyword attribute="Type" context="#stay" String="types"/>
   1.632 +			<keyword attribute="Keyword" context="Memstruct" String="memstruct_declaration" beginRegion="regMemstruct"/>
   1.633 +			
   1.634 +			<Float attribute="Float" context="#stay"/>
   1.635 +			<DetectChar attribute="Hex" context="Hex" char="#"/>
   1.636 +			<HlCHex attribute="Hex" context="Hex"/>
   1.637 +			<Int attribute="Number" context="Number"/>
   1.638 +			
   1.639 +			<StringDetect attribute="String" String="&quot;&quot;&quot;" context="QQQ-string" beginRegion="QQQ-region"/>
   1.640 +			<StringDetect attribute="String" String="`" context="BQ-string" beginRegion="BQ-region"/>
   1.641 +			<DetectChar attribute="String" context="String" char="&quot;" />
   1.642 +			<DetectChar attribute="String" context="SQ-String" char="'" />
   1.643 +			
   1.644 +			<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
   1.645 +			<Detect2Chars attribute="Comment" context="Comment Multi" char="/" char1="*" beginRegion="Comment"/>
   1.646 +			
   1.647 +			<WordDetect attribute="Type" String="include" context="Include Line" firstNonSpace="true"/>
   1.648 +			<WordDetect attribute="Keyword" String="namespace" context="Namespace Declaration"/>
   1.649 +			<keyword attribute="Keyword" String="memtype_declaration" context="Memtype" beginRegion="regMemtype"/>
   1.650 +			<RegExpr attribute="Keyword" String="\bsizeof\b" context="Size Of"/>
   1.651 +			<AnyChar String="$?" attribute="Keyword"/>
   1.652 +		</context>
   1.653  
   1.654 -        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+function\b" endRegion="regFunction"/>
   1.655 -        <RegExpr attribute="Keyword" context="#stay" String="\bfunction\b" beginRegion="regFunction"/>
   1.656 +		<context attribute="String" lineEndContext="#stay" name="String">
   1.657 +		  <HlCStringChar attribute="String Char" context="#stay"/>
   1.658 +		  <DetectChar attribute="String" context="#pop" char="&quot;"/>
   1.659 +		</context>
   1.660 +		
   1.661 +		<context attribute="String" lineEndContext="#stay" name="SQ-String">
   1.662 +		  <HlCStringChar attribute="String Char" context="#stay"/>
   1.663 +		  <DetectChar attribute="String" context="#pop" char="'"/>
   1.664 +		</context>
   1.665 +		
   1.666 +		<context name="QQQ-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
   1.667 +			<HlCStringChar attribute="String Char" context="#stay"/>
   1.668 +			<StringDetect attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="QQQ-region"/>
   1.669 +		</context>
   1.670 +		<context name="BQ-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
   1.671 +			<HlCStringChar attribute="String Char" context="#stay"/>
   1.672 +			<StringDetect attribute="String" String="`" context="#pop" endRegion="BQ-region"/>
   1.673 +		</context>
   1.674 +		
   1.675 +		<context attribute="Comment" lineEndContext="#pop" name="Comment">
   1.676 +			<keyword attribute="Number" context="#stay" String="attention" />
   1.677 +		</context>
   1.678 +		<context attribute="Comment" lineEndContext="#stay" name="Comment Multi">
   1.679 +			<DetectSpaces />
   1.680 +			<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
   1.681 +			<IncludeRules context="##Alerts" />
   1.682 +			<DetectIdentifier />
   1.683 +		</context>
   1.684 +		<context name="Hex" attribute="Hex" lineEndContext="#pop">
   1.685 +			<DetectSpaces context="#pop"/>
   1.686 +			<AnyChar String="1234567890_abcdefABCDEF" context="#stay"/>
   1.687 +			<RegExpr String="." context="#pop"/>
   1.688 +		</context>
   1.689 +		<context name="Number" attribute="Number" lineEndContext="#pop">
   1.690 +			<DetectSpaces context="#pop"/>
   1.691 +			<AnyChar String="1234567890_eE+-" context="#stay"/>
   1.692 +			<RegExpr String="." context="#pop"/>
   1.693 +		</context>
   1.694 +		<context name="IfDef" attribute="Normal Text">
   1.695 +			<keyword String="ifdef_conditions" attribute="Keyword"/>
   1.696 +			<RegExpr String="\bthen\b" attribute="Keyword" context="#pop"/>
   1.697 +			<DetectIdentifier attribute="Directive"/>
   1.698 +		</context>
   1.699 +		<context name="Include Line" lineEndContext="#pop" attribute="Normal Text">
   1.700 +			<RegExpr attribute="Type" String="\sas\s" context="Namespace Declaration"/>
   1.701 +			<DetectIdentifier context="#stay" attribute="String"/>
   1.702 +		</context>
   1.703 +		<context name="Namespace Declaration" attribute="Directive">
   1.704 +			<DetectIdentifier attribute="Directive" context="#pop"/>
   1.705 +		</context>
   1.706 +		<context name="With Directive" attribute="Directive" lineEndContext="#pop">
   1.707 +			<keyword attribute="Type" String="with_directives" context="#stay"/>
   1.708 +			<DetectIdentifier attribute="Directive"/>
   1.709 +			<DetectChar attribute="Hex" context="Hex" char="#"/>
   1.710 +			<HlCHex attribute="Hex" context="Hex"/>
   1.711 +			<Int attribute="Number" context="Number"/>
   1.712 +		</context>
   1.713 +		
   1.714 +		<context name="Memstruct" attribute="Normal Text" lineEndContext="#stay">
   1.715 +			<DetectSpaces/>
   1.716 +			<keyword String="memstruct_primitives" attribute="Type" context="#stay"/>
   1.717 +			<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
   1.718 +			<Detect2Chars attribute="Comment" context="Comment Multi" char="/" char1="*" beginRegion="Comment"/>
   1.719 +			<RegExpr String="\bend\s+(?:memstruct|memunion)" attribute="Keyword" context="#pop" endRegion="regMemstruct"/>
   1.720 +			<WordDetect String="as" attribute="Keyword" context="#stay"/>
   1.721 +			<DetectChar attribute="Hex" context="Hex" char="#"/>
   1.722 +			<HlCHex attribute="Hex" context="Hex"/>
   1.723 +			<Int attribute="Number" context="Number"/>
   1.724 +		</context>
   1.725 +		
   1.726 +		<context name="Memtype" attribute="Normal Text" lineEndContext="#stay">
   1.727 +			<DetectSpaces/>
   1.728 +			<keyword String="memstruct_primitives" attribute="Type" context="#stay"/>
   1.729 +			<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
   1.730 +			<Detect2Chars attribute="Comment" context="Comment Multi" char="/" char1="*" beginRegion="Comment"/>
   1.731 +			<DetectChar char="$" attribute="Keyword" context="#pop" endRegion="regMemtype"/>
   1.732 +			<RegExpr String="\bas\b" attribute="Keyword" context="Memtype As"/>
   1.733 +		</context>
   1.734 +		<context name="Memtype As">
   1.735 +			<DetectIdentifier context="MaybeEndOfList"/>
   1.736 +		</context>
   1.737 +		<context name="MaybeEndOfList">
   1.738 +			<DetectSpaces/>
   1.739 +			<!--The list keeps going:-->
   1.740 +			<DetectChar char="," context="#pop#pop"/>
   1.741 +			
   1.742 +			<!--The list is over:-->
   1.743 +			<RegExpr String="." context="#pop#pop#pop" endRegion="#pop"/>
   1.744 +		</context>
   1.745 +		
   1.746 +		<context name="Size Of" attribute="Normal Text" lineEndContext="#stay">
   1.747 +			<keyword String="memstruct_primitives" attribute="Type" context="#stay"/>
   1.748 +			<DetectChar context="#pop" char=")"/>
   1.749 +		</context>
   1.750 +	</contexts>
   1.751  
   1.752 -        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+procedure\b" endRegion="regProcedure"/>
   1.753 -        <RegExpr attribute="Keyword" context="#stay" String="\bprocedure\b" beginRegion="regProcedure"/>
   1.754 +	<itemDatas>
   1.755 +		<itemData name="Normal Text"     defStyleNum="dsNormal" />
   1.756 +		<itemData name="Keyword"         defStyleNum="dsKeyword" />
   1.757 +		<itemData name="Type"            defStyleNum="dsDataType"/>
   1.758 +		<itemData name="Number"          defStyleNum="dsDecVal" />
   1.759 +		<itemData name="Float"           defStyleNum="dsFloat" spellChecking="false"/>
   1.760 +		<itemData name="Hex"             defStyleNum="dsBaseN" spellChecking="false"/>
   1.761 +		<itemData name="String"          defStyleNum="dsString" />
   1.762 +		<itemData name="Directive"       defStyleNum="dsOthers" />
   1.763 +		<itemData name="Comment"         defStyleNum="dsComment" />
   1.764 +		<itemData name="Region Marker"   defStyleNum="dsRegionMarker" />
   1.765 +		<itemData name="Error"           defStyleNum="dsError" spellChecking="false"/>
   1.766 +	</itemDatas>
   1.767  
   1.768 -        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+while\b" endRegion="regWhile"/>
   1.769 -        <RegExpr attribute="Keyword" context="#stay" String="\bwhile\b" beginRegion="regWhile"/>
   1.770 -
   1.771 -        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+type\b" endRegion="regType"/>
   1.772 -        <RegExpr attribute="Keyword" context="#stay" String="\btype\b" beginRegion="regType"/>
   1.773 -
   1.774 -        <keyword attribute="Keyword" context="#stay" String="keywords"/>
   1.775 -        
   1.776 -				<keyword attribute="Gtkwidgets" context="#stay" String="Gtkwidgets"/>
   1.777 -        <keyword attribute="Gtkkeywords" context="#stay" String="Gtkkeywords"/>
   1.778 -				
   1.779 -				<keyword attribute="Type" context="#stay" String="types"/>
   1.780 -
   1.781 -				<Float attribute="Number" context="#stay"/>
   1.782 -        <Int attribute="Number" context="#stay"/>
   1.783 -
   1.784 -				<DetectChar attribute="String" context="String" char="&quot;" />
   1.785 -        <RegExpr attribute="Region Marker" context="#stay" String="---+" beginRegion="regMarker" firstNonSpace="true"/>
   1.786 -        <RegExpr attribute="Region Marker" context="#stay" String="---+" endRegion="regMarker" firstNonSpace="true"/>
   1.787 -
   1.788 -				<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
   1.789 -
   1.790 -			</context>
   1.791 -
   1.792 -      <context attribute="String" lineEndContext="#pop" name="String">
   1.793 -        <DetectChar attribute="String" context="#pop" char="&quot;"/>
   1.794 -      </context>
   1.795 -
   1.796 -      <context attribute="Comment" lineEndContext="#pop" name="Comment">
   1.797 -        <keyword attribute="Number" context="#stay" String="attention" />
   1.798 -      </context>
   1.799 -    </contexts>
   1.800 -
   1.801 -    <itemDatas>
   1.802 -      <itemData name="Normal Text"     defStyleNum="dsNormal" />
   1.803 -      <itemData name="Keyword"         defStyleNum="dsKeyword" />
   1.804 -      <itemData name="Gtkwidgets"       defStyleNum="dsKeyword" />
   1.805 -			<itemData name="Gtkkeywords"		 defStyleNum="dsKeyword" />
   1.806 -      <itemData name="Type"            defStyleNum="dsDataType"/>
   1.807 -      <itemData name="Number"          defStyleNum="dsDecVal" />
   1.808 -      <itemData name="String"          defStyleNum="dsString" />
   1.809 -      <itemData name="Directive"       defStyleNum="dsOthers" />
   1.810 -      <itemData name="Comment"         defStyleNum="dsComment" />
   1.811 -      <itemData name="Region Marker"   defStyleNum="dsRegionMarker" />
   1.812 -    </itemDatas>
   1.813 -
   1.814 -  </highlighting>
   1.815 -  <general>
   1.816 -    <keywords casesensitive="1" />
   1.817 -    <comments>
   1.818 -       <comment name="singleLine" start="--" />
   1.819 -    </comments>
   1.820 -  </general>
   1.821 +</highlighting>
   1.822 +<general>
   1.823 +	<keywords casesensitive="1" />
   1.824 +	<comments>
   1.825 +	<comment name="singleLine" start="--" />
   1.826 +	<comment name="multiLine" start="/*" end="*/" region="Comment" />
   1.827 +	</comments>
   1.828 +</general>
   1.829  </language>

SCM Home | OpenEuphoria.org Home