editors

changeset 40:8751970bd9f4

add kate syntax file, needs more eu4 updating. should have one with just eu4 & stdlib and one or more with euGTK or other GUI wraps eventually.
author ne1uno <ne1uno@users.sourceforge.net>
date Sun Oct 23 03:23:52 2011 -0400 (2011-10-23)
parents db3fe3aca32e
children 4ba58a70989f
files kate/euphoria.xml
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/kate/euphoria.xml	Sun Oct 23 03:23:52 2011 -0400
     1.3 @@ -0,0 +1,432 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!DOCTYPE language SYSTEM "language.dtd">
     1.6 +<!--
     1.7 +
     1.8 +  This file is part of KDE's kate project.
     1.9 +
    1.10 +  copyright   : (C) 2004 by Irv Mullins
    1.11 +  email       : irvm at ellijay dot com
    1.12 +
    1.13 +  last change : 2008-08-08 for Euphoria 4.0 and EuGTK 4.0
    1.14 +
    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 +  This library is distributed in the hope that it will be useful,
    1.21 +  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.22 +  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.23 +  Library General Public License for more details.
    1.24 +
    1.25 +  You should have received a copy of the GNU Library General Public
    1.26 +  License along with this library; if not, write to the
    1.27 +  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    1.28 +  Boston, MA  02110-1301, USA.
    1.29 +
    1.30 +-->
    1.31 +
    1.32 +<!-- Store this in /usr/share/apps/katepart/syntax -->
    1.33 +
    1.34 +<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.35 +
    1.36 +	<highlighting>
    1.37 +  
    1.38 +	 <list name="keywords">
    1.39 +   <item> abort </item>
    1.40 +   <item> allocate </item>
    1.41 +   <item> allocate_string </item>
    1.42 +   <item> allow_break </item>
    1.43 +   <item> and </item>
    1.44 +   <item> and_bits </item>
    1.45 +   <item> append </item>
    1.46 +   <item> arccos </item>
    1.47 +   <item> arcsin </item>
    1.48 +   <item> arctan </item>
    1.49 +   <item> atom_to_float32 </item>
    1.50 +   <item> atom_to_float64 </item>
    1.51 +   <item> as </item>
    1.52 +   <item> begin </item>
    1.53 +   <item> bits_to_int </item>
    1.54 +   <item> bytes_to_int </item>
    1.55 +   <item> c_func </item>
    1.56 +   <item> c_proc </item>
    1.57 +   <item> call </item>
    1.58 +   <item> call_back </item>
    1.59 +   <item> call_func </item>
    1.60 +   <item> call_proc </item>
    1.61 +   <item> case </item>
    1.62 +   <item> check_break </item>
    1.63 +   <item> chdir </item>
    1.64 +   <item> clear_screen </item>
    1.65 +   <item> close </item>
    1.66 +   <item> command_line </item>
    1.67 +   <item> compare </item>
    1.68 +   <item> cos </item>
    1.69 +   <item> crash_file </item>
    1.70 +   <item> crash_message </item>
    1.71 +   <item> current_dir </item>
    1.72 +   <item> custom_sort </item>
    1.73 +   <item> date </item>
    1.74 +   <item> define_c_func </item>
    1.75 +   <item> define_c_proc </item>
    1.76 +   <item> define_c_var </item>
    1.77 +   <item> dir </item>
    1.78 +   <item> display_text_image </item>
    1.79 +   <item> do </item>
    1.80 +   <item> else </item>
    1.81 +   <item> elsif </item>
    1.82 +   <item> end </item>
    1.83 +   <item> equal </item>
    1.84 +   <item> exit </item>
    1.85 +   <item> find </item>
    1.86 +   <item> float32_to_atom </item>
    1.87 +   <item> float64_to_atom </item>
    1.88 +   <item> floor </item>
    1.89 +   <item> flush </item>
    1.90 +   <item> for </item>
    1.91 +   <item> free </item>
    1.92 +   <item> free_console </item>
    1.93 +   <item> function </item>
    1.94 +   <item> get_bytes </item>
    1.95 +   <item> get_key </item>
    1.96 +   <item> get_mouse </item>
    1.97 +   <item> get_position </item>
    1.98 +   <item> get_screen_char </item>
    1.99 +   <item> getc </item>
   1.100 +   <item> getenv </item>
   1.101 +   <item> gets </item>
   1.102 +   <item> if </item>
   1.103 +   <item> include </item>
   1.104 +   <item> int_to_bits </item>
   1.105 +   <item> int_to_bytes </item>
   1.106 +   <item> length </item>
   1.107 +   <item> lock_file </item>
   1.108 +   <item> log </item>
   1.109 +   <item> lower </item>
   1.110 +   <item> machine_func </item>
   1.111 +   <item> machine_proc </item>
   1.112 +   <item> match </item>
   1.113 +   <item> mem_copy </item>
   1.114 +   <item> mem_set </item>
   1.115 +   <item> mouse_events </item>
   1.116 +   <item> mouse_pointer </item>
   1.117 +   <item> not </item>
   1.118 +   <item> not_bits </item>
   1.119 +   <item> of </item>
   1.120 +   <item> open </item>
   1.121 +   <item> open_dll </item>
   1.122 +   <item> or </item>
   1.123 +   <item> or_bits </item>
   1.124 +   <item> peek </item>
   1.125 +   <item> peek4 </item>
   1.126 +   <item> peek4s </item>
   1.127 +   <item> peek4u </item>
   1.128 +   <item> platform </item>
   1.129 +   <item> poke </item>
   1.130 +   <item> poke4 </item>
   1.131 +   <item> position </item>
   1.132 +   <item> power </item>
   1.133 +   <item> prepend </item>
   1.134 +   <item> print </item>
   1.135 +   <item> printf </item>
   1.136 +   <item> procedure </item>
   1.137 +   <item> profile </item>
   1.138 +   <item> prompt_number </item>
   1.139 +   <item> prompt_string </item>
   1.140 +   <item> put_screen_char </item>
   1.141 +   <item> puts </item>
   1.142 +   <item> rand </item>
   1.143 +   <item> read_bitmap </item>
   1.144 +   <item> register_block </item>
   1.145 +   <item> remainder </item>
   1.146 +   <item> repeat </item>
   1.147 +   <item> return </item>
   1.148 +   <item> reverse </item>
   1.149 +   <item> routine_id </item>
   1.150 +   <item> save_bitmap </item>
   1.151 +   <item> save_text_image </item>
   1.152 +   <item> scroll </item>
   1.153 +   <item> seek </item>
   1.154 +   <item> set_rand </item>
   1.155 +   <item> sin </item>
   1.156 +   <item> sleep </item>
   1.157 +   <item> sort </item>
   1.158 +   <item> sprint </item>
   1.159 +   <item> sprintf </item>
   1.160 +   <item> sqrt </item>
   1.161 +   <item> switch </item>
   1.162 +   <item> system </item>
   1.163 +   <item> system_exec </item>
   1.164 +   <item> tan </item>
   1.165 +   <item> text_color </item>
   1.166 +   <item> then </item>
   1.167 +   <item> time </item>
   1.168 +   <item> to </item>
   1.169 +   <item> trace </item>
   1.170 +   <item> type </item>
   1.171 +   <item> unlock_file </item>
   1.172 +   <item> unregister_block </item>
   1.173 +   <item> upper </item>
   1.174 +   <item> value </item>
   1.175 +   <item> video_config </item>
   1.176 +   <item> wait_key </item>
   1.177 +   <item> walk_dir </item>
   1.178 +   <item> where </item>
   1.179 +   <item> while </item>
   1.180 +   <item> wildcard_file </item>
   1.181 +   <item> wildcard_match </item>
   1.182 +    <item> with </item>
   1.183 +    <item> without </item>
   1.184 +    <item> wrap </item>
   1.185 +    <item> xor </item>
   1.186 +    <item> xor_bits </item>
   1.187 +    <item> ? </item>
   1.188 +  </list>
   1.189 +
   1.190 +  <list name="types">
   1.191 +		<item> as </item>
   1.192 +    <item> atom </item>
   1.193 +    <item> constant </item>
   1.194 +		<item> export </item>
   1.195 +		<item> global </item>
   1.196 +		<item> include </item>
   1.197 +    <item> integer </item>
   1.198 +    <item> object </item>
   1.199 +    <item> sequence </item>
   1.200 +    <item> boolean </item>
   1.201 +    <item> type </item>
   1.202 +  </list>
   1.203 +
   1.204 +  <list name="constants">
   1.205 +    <item> PI </item>
   1.206 +    <item> GET_SUCCESS </item>
   1.207 +  </list>
   1.208 +
   1.209 + <list name="Gtkkeywords">
   1.210 +	<item> add </item>
   1.211 +	<item> connect </item>
   1.212 +	<item> create </item>
   1.213 +	<item> get </item>
   1.214 +	<item> pack </item>
   1.215 +	<item> set </item>
   1.216 +	<item> show </item>
   1.217 +	<item> show_all </item>
   1.218 +	<item> main </item>
   1.219 + </list>
   1.220 +
   1.221 + <list name="Gtkwidgets">
   1.222 +	<item> GObject </item>
   1.223 +	<item> GdkPixbuf </item>
   1.224 +	<item> GtkAboutDialog </item>
   1.225 +	<item> GtkAction </item>
   1.226 +	<item> GtkAdjustment </item>
   1.227 +	<item> GtkAlignment </item>
   1.228 +	<item> GtkArrow </item>
   1.229 +	<item> GtkAspectFrame </item>
   1.230 +	<item> GtkAssistant </item>
   1.231 +	<item> GtkBin </item>
   1.232 +	<item> GtkBox </item>
   1.233 +	<item> GtkButton </item>
   1.234 +	<item> GtkButtonBox </item>
   1.235 +	<item> GtkCalendar </item>
   1.236 +	<item> GtkCellRenderer </item>
   1.237 +	<item> GtkCellRendererText </item>
   1.238 +	<item> GtkCheckButton </item>
   1.239 +	<item> GtkCheckMenuItem </item>
   1.240 +	<item> GtkColorButton </item>
   1.241 +	<item> GtkColorSelectionDialog </item>
   1.242 +	<item> GtkComboBox </item>
   1.243 +	<item> GtkComboBoxEntry </item>
   1.244 +	<item> GtkComboBoxText </item>
   1.245 +	<item> GtkContainer </item>
   1.246 +	<item> GtkCurve </item>
   1.247 +	<item> GtkDialog </item>
   1.248 +	<item> GtkDrawingArea </item>
   1.249 +	<item> GtkEntry </item>
   1.250 +	<item> GtkEntryCompletion </item>
   1.251 +	<item> GtkEventBox </item>
   1.252 +	<item> GtkExpander </item>
   1.253 +	<item> GtkFileChooser </item>
   1.254 +	<item> GtkFileChooserButton </item>
   1.255 +	<item> GtkFileChooserDialog </item>
   1.256 +	<item> GtkFileChooserWidget </item>
   1.257 +	<item> GtkFileFilter </item>
   1.258 +	<item> GtkFixed </item>
   1.259 +	<item> GtkFontButton </item>
   1.260 +	<item> GtkFontSelection </item>
   1.261 +	<item> GtkFontSelectionDialog </item>
   1.262 +	<item> GtkFrame </item>
   1.263 +	<item> GtkHBox </item>
   1.264 +	<item> GtkHButtonBox </item>
   1.265 +	<item> GtkHPaned </item>
   1.266 +	<item> GtkHRuler </item>
   1.267 +	<item> GtkHSV </item>
   1.268 +	<item> GtkHScale </item>
   1.269 +	<item> GtkHScrollbar </item>
   1.270 +	<item> GtkHSeparator </item>
   1.271 +	<item> GtkHandleBox </item>
   1.272 +	<item> GtkIconInfo </item>
   1.273 +	<item> GtkIconTheme </item>
   1.274 +	<item> GtkIconView </item>
   1.275 +	<item> GtkImContext </item>
   1.276 +	<item> GtkImContextSimple </item>
   1.277 +	<item> GtkImMulticontext </item>
   1.278 +	<item> GtkImage </item>
   1.279 +	<item> GtkImageMenuItem </item>
   1.280 +	<item> GtkInputDialog </item>
   1.281 +	<item> GtkInvisible </item>
   1.282 +	<item> GtkItem </item>
   1.283 +	<item> GtkLabel </item>
   1.284 +	<item> GtkLayout </item>
   1.285 +	<item> GtkLinkButton </item>
   1.286 +	<item> GtkListStore </item>
   1.287 +	<item> GtkMain </item>
   1.288 +	<item> GtkMenu </item>
   1.289 +	<item> GtkMenuBar </item>
   1.290 +	<item> GtkMenuItem </item>
   1.291 +	<item> GtkMenuShell </item>
   1.292 +	<item> GtkMenuToolButton </item>
   1.293 +	<item> GtkMessageDialog </item>
   1.294 +	<item> GtkMisc </item>
   1.295 +	<item> GtkNotebook </item>
   1.296 +	<item> GtkObject </item>
   1.297 +	<item> GtkPageSetup </item>
   1.298 +	<item> GtkPageSetupUnixDialog </item>
   1.299 +	<item> GtkPaned </item>
   1.300 +	<item> GtkPaperSize </item>
   1.301 +	<item> GtkPlug </item>
   1.302 +	<item> GtkPrintBackend </item>
   1.303 +	<item> GtkPrintContext </item>
   1.304 +	<item> GtkPrintJob </item>
   1.305 +	<item> GtkPrintOperation </item>
   1.306 +	<item> GtkPrintRun </item>
   1.307 +	<item> GtkPrintSettings </item>
   1.308 +	<item> GtkPrintUnixDialog </item>
   1.309 +	<item> GtkPrinter </item>
   1.310 +	<item> GtkPrinterOption </item>
   1.311 +	<item> GtkPrinterOptionSet </item>
   1.312 +	<item> GtkPrinterOptionWidget </item>
   1.313 +	<item> GtkProgress </item>
   1.314 +	<item> GtkProgressBar </item>
   1.315 +	<item> GtkRadioAction </item>
   1.316 +	<item> GtkRadioButton </item>
   1.317 +	<item> GtkRadioMenuItem </item>
   1.318 +	<item> GtkRadioToolButton </item>
   1.319 +	<item> GtkRange </item>
   1.320 +	<item> GtkRecentChooserDialog </item>
   1.321 +	<item> GtkRequisition </item>
   1.322 +	<item> GtkRuler </item>
   1.323 +	<item> GtkScale </item>
   1.324 +	<item> GtkScaleButton </item>
   1.325 +	<item> GtkScrollbar </item>
   1.326 +	<item> GtkScrolledWindow </item>
   1.327 +	<item> GtkSeparator </item>
   1.328 +	<item> GtkSeparatorMenuItem </item>
   1.329 +	<item> GtkSpinButton </item>
   1.330 +	<item> GtkStatusBar </item>
   1.331 +	<item> GtkTable </item>
   1.332 +	<item> GtkTearoffMenuItem </item>
   1.333 +	<item> GtkToggleAction </item>
   1.334 +	<item> GtkToggleButton </item>
   1.335 +	<item> GtkToggleToolButton </item>
   1.336 +	<item> GtkToolBar </item>
   1.337 +	<item> GtkToolButton </item>
   1.338 +	<item> GtkToolItem </item>
   1.339 +	<item> GtkToolTip </item>
   1.340 +	<item> GtkTreeIter </item>
   1.341 +	<item> GtkTreeModel </item>
   1.342 +	<item> GtkTreeModelFilter </item>
   1.343 +	<item> GtkTreeModelSort </item>
   1.344 +	<item> GtkTreePath </item>
   1.345 +	<item> GtkTreeRowReference </item>
   1.346 +	<item> GtkTreeSelection </item>
   1.347 +	<item> GtkTreeSortable </item>
   1.348 +	<item> GtkTreeStore </item>
   1.349 +	<item> GtkTreeView </item>
   1.350 +	<item> GtkTreeViewColumn </item>
   1.351 +	<item> GtkVBox </item>
   1.352 +	<item> GtkVButtonBox </item>
   1.353 +	<item> GtkVPaned </item>
   1.354 +	<item> GtkVRuler </item>
   1.355 +	<item> GtkVScale </item>
   1.356 +	<item> GtkVScrollbar </item>
   1.357 +	<item> GtkVSeparator </item>
   1.358 +	<item> GtkViewport </item>
   1.359 +	<item> GtkVolumeButton </item>
   1.360 +	<item> GtkWidget </item>
   1.361 +	<item> GtkWindow </item>
   1.362 +	<item> GtkWindowGroup </item>
   1.363 +
   1.364 +    </list>
   1.365 +
   1.366 +    <contexts>
   1.367 +			
   1.368 +      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
   1.369 +        
   1.370 +				<RegExpr attribute="Keyword" context="#stay" String="\bend\s+for\b" endRegion="regFor"/>
   1.371 +        <RegExpr attribute="Keyword" context="#stay" String="\bfor\b" beginRegion="regFor"/>
   1.372 +
   1.373 +        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+if\b" endRegion="regIf"/>
   1.374 +        <RegExpr attribute="Keyword" context="#stay" String="\bif\b" beginRegion="regIf"/>
   1.375 +
   1.376 +        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+function\b" endRegion="regFunction"/>
   1.377 +        <RegExpr attribute="Keyword" context="#stay" String="\bfunction\b" beginRegion="regFunction"/>
   1.378 +
   1.379 +        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+procedure\b" endRegion="regProcedure"/>
   1.380 +        <RegExpr attribute="Keyword" context="#stay" String="\bprocedure\b" beginRegion="regProcedure"/>
   1.381 +
   1.382 +        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+while\b" endRegion="regWhile"/>
   1.383 +        <RegExpr attribute="Keyword" context="#stay" String="\bwhile\b" beginRegion="regWhile"/>
   1.384 +
   1.385 +        <RegExpr attribute="Keyword" context="#stay" String="\bend\s+type\b" endRegion="regType"/>
   1.386 +        <RegExpr attribute="Keyword" context="#stay" String="\btype\b" beginRegion="regType"/>
   1.387 +
   1.388 +        <keyword attribute="Keyword" context="#stay" String="keywords"/>
   1.389 +        
   1.390 +				<keyword attribute="Gtkwidgets" context="#stay" String="Gtkwidgets"/>
   1.391 +        <keyword attribute="Gtkkeywords" context="#stay" String="Gtkkeywords"/>
   1.392 +				
   1.393 +				<keyword attribute="Type" context="#stay" String="types"/>
   1.394 +
   1.395 +				<Float attribute="Number" context="#stay"/>
   1.396 +        <Int attribute="Number" context="#stay"/>
   1.397 +
   1.398 +				<DetectChar attribute="String" context="String" char="&quot;" />
   1.399 +        <RegExpr attribute="Region Marker" context="#stay" String="---+" beginRegion="regMarker" firstNonSpace="true"/>
   1.400 +        <RegExpr attribute="Region Marker" context="#stay" String="---+" endRegion="regMarker" firstNonSpace="true"/>
   1.401 +
   1.402 +				<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
   1.403 +
   1.404 +			</context>
   1.405 +
   1.406 +      <context attribute="String" lineEndContext="#pop" name="String">
   1.407 +        <DetectChar attribute="String" context="#pop" char="&quot;"/>
   1.408 +      </context>
   1.409 +
   1.410 +      <context attribute="Comment" lineEndContext="#pop" name="Comment">
   1.411 +        <keyword attribute="Number" context="#stay" String="attention" />
   1.412 +      </context>
   1.413 +    </contexts>
   1.414 +
   1.415 +    <itemDatas>
   1.416 +      <itemData name="Normal Text"     defStyleNum="dsNormal" />
   1.417 +      <itemData name="Keyword"         defStyleNum="dsKeyword" />
   1.418 +      <itemData name="Gtkwidgets"       defStyleNum="dsKeyword" />
   1.419 +			<itemData name="Gtkkeywords"		 defStyleNum="dsKeyword" />
   1.420 +      <itemData name="Type"            defStyleNum="dsDataType"/>
   1.421 +      <itemData name="Number"          defStyleNum="dsDecVal" />
   1.422 +      <itemData name="String"          defStyleNum="dsString" />
   1.423 +      <itemData name="Directive"       defStyleNum="dsOthers" />
   1.424 +      <itemData name="Comment"         defStyleNum="dsComment" />
   1.425 +      <itemData name="Region Marker"   defStyleNum="dsRegionMarker" />
   1.426 +    </itemDatas>
   1.427 +
   1.428 +  </highlighting>
   1.429 +  <general>
   1.430 +    <keywords casesensitive="1" />
   1.431 +    <comments>
   1.432 +       <comment name="singleLine" start="--" />
   1.433 +    </comments>
   1.434 +  </general>
   1.435 +</language>

SCM Home | OpenEuphoria.org Home