home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / fcl.lang < prev    next >
Encoding:
Extensible Markup Language  |  2010-08-16  |  3.8 KB  |  114 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: S├╕ren Hauberg
  5.  Copyright (C) 2009 S├╕ren Hauberg <soren@hauberg.org>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Lesser General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Lesser General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Lesser General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="fcl" _name="FCL" version="2.0" _section="Scientific">
  24.   <metadata>
  25.     <property name="globs">*.fcl</property>
  26.     <property name="line-comment-start">//</property>
  27.   </metadata>
  28.  
  29.   <styles>
  30.     <style id="comment"           _name="Comment"           map-to="def:comment"/>
  31.     <style id="floating-point"    _name="Floating Point"    map-to="def:floating-point"/>
  32.     <style id="keyword"           _name="Keyword"           map-to="def:keyword"/>
  33.     <style id="block"             _name="Block"             map-to="def:function"/>
  34.     <style id="decimal"           _name="Decimal"           map-to="def:decimal"/>
  35.     <style id="reserved-constant" _name="Reserved Constant" map-to="def:special-constant"/>
  36.   </styles>
  37.  
  38.   <definitions>
  39.     <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
  40.       <start>//</start>
  41.       <include>
  42.         <context ref="def:in-comment"/>
  43.       </include>
  44.     </context>
  45.  
  46.     <context id="keyword" style-ref="keyword">
  47.       <keyword>ACCU</keyword>
  48.       <keyword>ACT</keyword>
  49.       <keyword>AND</keyword>
  50.       <keyword>ASUM</keyword>
  51.       <keyword>BDIF</keyword>
  52.       <keyword>BSUM</keyword>
  53.       <keyword>COA</keyword>
  54.       <keyword>COG</keyword>
  55.       <keyword>COGS</keyword>
  56.       <keyword>DEFAULT</keyword>
  57.       <keyword>IF</keyword>
  58.       <keyword>IS</keyword>
  59.       <keyword>LM</keyword>
  60.       <keyword>MAX</keyword>
  61.       <keyword>METHOD</keyword>
  62.       <keyword>MIN</keyword>
  63.       <keyword>NC</keyword>
  64.       <keyword>NOT</keyword>
  65.       <keyword>NSUM</keyword>
  66.       <keyword>OR</keyword>
  67.       <keyword>PROD</keyword>
  68.       <keyword>RANGE</keyword>
  69.       <keyword>RM</keyword>
  70.       <keyword>RULE</keyword>
  71.       <keyword>TERM</keyword>
  72.       <keyword>THEN</keyword>
  73.       <keyword>WITH</keyword>
  74.     </context>
  75.  
  76.     <context id="block" style-ref="block">
  77.       <keyword>DEFUZZIFY</keyword>
  78.       <keyword>END_DEFUZZIFY</keyword>
  79.       <keyword>END_FUNCTION_BLOCK</keyword>
  80.       <keyword>END_FUZZIFY</keyword>
  81.       <keyword>END_OPTIONS</keyword>
  82.       <keyword>END_RULEBLOCK</keyword>
  83.       <keyword>END_VAR</keyword>
  84.       <keyword>FUNCTION_BLOCK</keyword>
  85.       <keyword>FUZZIFY</keyword>
  86.       <keyword>OPTIONS</keyword>
  87.       <keyword>RULEBLOCK</keyword>
  88.       <keyword>VAR</keyword>
  89.       <keyword>VAR_INPUT</keyword>
  90.       <keyword>VAR_OUTPUT</keyword>
  91.     </context>
  92.  
  93.     <context id="decimal" style-ref="decimal">
  94.       <match>\b([1-9][0-9]*|0)([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</match>
  95.     </context>
  96.  
  97.     <context id="floating-point-number" style-ref="floating-point">
  98.       <match>\b([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFlL]?</match>
  99.     </context>
  100.  
  101.     <context id="fcl" class="no-spell-check">
  102.       <include>
  103.         <context ref="line-comment"/>
  104.         <context ref="keyword"/>
  105.         <context ref="block"/>
  106.         <context ref="decimal"/>
  107.         <context ref="floating-point-number"/>
  108.       </include>
  109.     </context>
  110.   </definitions>
  111. </language>
  112.  
  113.  
  114.