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 / gtkrc.lang < prev    next >
Encoding:
Extensible Markup Language  |  2010-08-16  |  4.2 KB  |  116 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Authors: Link M Dupont, Andrew Johnson
  5.  Copyright (C) 2005 Link M Dupont <link@subpop.net>
  6.  Copyright (C) 2005 Andrew Johnson <acjgenius@earthlink.net>
  7.  
  8.  This library is free software; you can redistribute it and/or
  9.  modify it under the terms of the GNU Library General Public
  10.  License as published by the Free Software Foundation; either
  11.  version 2 of the License, or (at your option) any later version.
  12.  
  13.  This library is distributed in the hope that it will be useful,
  14.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  Library General Public License for more details.
  17.  
  18.  You should have received a copy of the GNU Library General Public
  19.  License along with this library; if not, write to the
  20.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21.  Boston, MA 02111-1307, USA.
  22.  
  23. -->
  24. <language id="gtkrc" _name="GtkRC" version="2.0" _section="Others">
  25.   <metadata>
  26.     <property name="mimetypes">text/x-gtkrc</property>
  27.     <property name="globs">gtkrc;.gtkrc;gtkrc-*;.gtkrc-*</property>
  28.     <property name="line-comment-start">#</property>
  29.   </metadata>
  30.  
  31.   <styles>
  32.     <style id="comment" _name="Comment" map-to="def:comment"/>
  33.     <style id="string" _name="String" map-to="def:string"/>
  34.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  35.     <style id="decimal" _name="Decimal" map-to="def:decimal"/>
  36.     <style id="variable" _name="Data Type" map-to="def:type"/>
  37.     <style id="state" _name="Widget State" map-to="def:special-constant"/>
  38.     <style id="include-directive" _name="Include directive" map-to="def:preprocessor"/>
  39.     <style id="boolean-value" _name="Boolean value" map-to="def:boolean"/>
  40.   </styles>
  41.  
  42.   <definitions>
  43.     <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
  44.       <start>"</start>
  45.       <end>"</end>
  46.       <include>
  47.         <context ref="def:escape"/>
  48.         <context ref="def:line-continue"/>
  49.       </include>
  50.     </context>
  51.     <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
  52.       <start>'</start>
  53.       <end>'</end>
  54.       <include>
  55.         <context ref="def:escape"/>
  56.         <context ref="def:line-continue"/>
  57.       </include>
  58.     </context>
  59.     <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
  60.       <start>#</start>
  61.       <include>
  62.         <context ref="def:escape"/>
  63.         <context ref="def:line-continue"/>
  64.       </include>
  65.     </context>
  66.     <context id="keysymbol" style-ref="keyword">
  67.       <match>::|=</match>
  68.     </context>
  69.     <context id="number" style-ref="decimal">
  70.       <match>\b[0-9][0-9\.]*\b</match>
  71.     </context>
  72.     <context id="keyword" style-ref="keyword">
  73.       <keyword>style</keyword>
  74.       <keyword>engine</keyword>
  75.       <keyword>widget_class</keyword>
  76.       <keyword>class</keyword>
  77.       <keyword>widget</keyword>
  78.     </context>
  79.     <context id="variable" style-ref="variable">
  80.       <keyword>fg</keyword>
  81.       <keyword>bg</keyword>
  82.       <keyword>bg_pixmap</keyword>
  83.       <keyword>base</keyword>
  84.       <keyword>text</keyword>
  85.     </context>
  86.     <context id="state" style-ref="state">
  87.       <keyword>ACTIVE</keyword>
  88.       <keyword>SELECTED</keyword>
  89.       <keyword>NORMAL</keyword>
  90.       <keyword>PRELIGHT</keyword>
  91.       <keyword>INSENSITIVE</keyword>
  92.     </context>
  93.     <context id="include-directive" style-ref="include-directive">
  94.       <keyword>include</keyword>
  95.     </context>
  96.     <context id="boolean-value" style-ref="boolean-value">
  97.       <keyword>TRUE</keyword>
  98.       <keyword>FALSE</keyword>
  99.     </context>
  100.     <context id="gtkrc" class="no-spell-check">
  101.       <include>
  102.         <context ref="double-quoted-string"/>
  103.         <context ref="single-quoted-string"/>
  104.         <context ref="line-comment"/>
  105.         <context ref="keysymbol"/>
  106.         <context ref="number"/>
  107.         <context ref="keyword"/>
  108.         <context ref="variable"/>
  109.         <context ref="state"/>
  110.         <context ref="include-directive"/>
  111.         <context ref="boolean-value"/>
  112.       </include>
  113.     </context>
  114.   </definitions>
  115. </language>
  116.