2007-06-24 17:02:21 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
This file is part of GtkSourceView
|
|
|
|
|
2007-06-24 17:02:21 -05:00
|
|
|
Author: Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
|
|
Copyright (C) 2007 Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
GtkSourceView is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2007-06-24 17:02:21 -05:00
|
|
|
License as published by the Free Software Foundation; either
|
2011-01-05 22:45:36 -08:00
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2007-06-24 17:02:21 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
GtkSourceView is distributed in the hope that it will be useful,
|
2007-06-24 17:02:21 -05:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2011-01-05 22:45:36 -08:00
|
|
|
Lesser General Public License for more details.
|
2007-06-24 17:02:21 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2007-06-24 17:02:21 -05:00
|
|
|
|
|
|
|
-->
|
|
|
|
<language id="objc" _name="Objective-C" version="2.0" _section="Sources">
|
|
|
|
<metadata>
|
|
|
|
<property name="mimetypes">text/x-objcsrc</property>
|
2013-12-06 17:03:17 -08:00
|
|
|
<property name="globs">*.m</property>
|
2007-06-24 17:02:21 -05:00
|
|
|
<property name="line-comment-start">//</property>
|
|
|
|
<property name="block-comment-start">/*</property>
|
|
|
|
<property name="block-comment-end">*/</property>
|
|
|
|
</metadata>
|
|
|
|
|
|
|
|
<styles>
|
|
|
|
<style id="keyword" _name="Keyword" map-to="c:keyword"/>
|
2007-09-09 14:21:19 -05:00
|
|
|
<style id="type" _name="Data Type" map-to="c:type"/>
|
2007-06-24 17:02:21 -05:00
|
|
|
<style id="common-defines" _name="Common Defines" map-to="c:common-defines"/>
|
2007-06-25 13:31:45 -05:00
|
|
|
<style id="string" _name="String" map-to="c:string"/>
|
2007-06-24 17:02:21 -05:00
|
|
|
</styles>
|
|
|
|
|
|
|
|
<definitions>
|
|
|
|
<!-- ObjC-specific stuff (i.e. stuff which is not C) -->
|
|
|
|
<context id="objc-header">
|
|
|
|
<include>
|
|
|
|
<context id="keywords" style-ref="keyword">
|
2007-06-25 13:31:45 -05:00
|
|
|
<prefix>\@</prefix>
|
|
|
|
<keyword>interface</keyword>
|
|
|
|
<keyword>protocol</keyword>
|
|
|
|
<keyword>implementation</keyword>
|
|
|
|
<keyword>end</keyword>
|
|
|
|
<keyword>class</keyword>
|
|
|
|
<keyword>selector</keyword>
|
|
|
|
<keyword>encode</keyword>
|
|
|
|
<keyword>defs</keyword>
|
|
|
|
<keyword>synchronized</keyword>
|
|
|
|
<keyword>private</keyword>
|
|
|
|
<keyword>protected</keyword>
|
|
|
|
<keyword>public</keyword>
|
|
|
|
<keyword>try</keyword>
|
|
|
|
<keyword>throw</keyword>
|
|
|
|
<keyword>catch</keyword>
|
|
|
|
<keyword>finally</keyword>
|
2007-06-24 17:02:21 -05:00
|
|
|
</context>
|
|
|
|
|
2007-09-09 14:21:19 -05:00
|
|
|
<context id="types" style-ref="type">
|
2007-06-24 17:02:21 -05:00
|
|
|
<keyword>BOOL</keyword>
|
|
|
|
</context>
|
2007-06-25 13:31:45 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="objc-string-literal" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
2007-06-25 13:31:45 -05:00
|
|
|
<start>\@"</start>
|
|
|
|
<end>"</end>
|
|
|
|
<include>
|
|
|
|
<context ref="c:string:*"/>
|
|
|
|
</include>
|
|
|
|
</context>
|
2007-06-24 17:02:21 -05:00
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<!-- ObjC-specific stuff (i.e. stuff which is not C), which isn't
|
|
|
|
good to highlight in C headers -->
|
|
|
|
<context id="objc-source">
|
|
|
|
<include>
|
2007-06-24 17:18:19 -05:00
|
|
|
<context id="objc-keywords" style-ref="keyword">
|
2008-06-06 11:30:28 -05:00
|
|
|
<keyword>self</keyword>
|
2008-06-08 12:50:16 -05:00
|
|
|
<keyword>super</keyword>
|
2007-06-24 17:02:21 -05:00
|
|
|
</context>
|
|
|
|
|
2007-09-09 14:21:19 -05:00
|
|
|
<context id="objc-types" style-ref="type">
|
2007-06-24 17:02:21 -05:00
|
|
|
<keyword>apply_t</keyword>
|
|
|
|
<keyword>Class</keyword>
|
|
|
|
<keyword>id</keyword>
|
|
|
|
<keyword>IMP</keyword>
|
|
|
|
<keyword>MetaClass</keyword>
|
|
|
|
<keyword>Object</keyword>
|
|
|
|
<keyword>Protocol</keyword>
|
|
|
|
<keyword>retval_t</keyword>
|
|
|
|
<keyword>SEL</keyword>
|
|
|
|
<keyword>STR</keyword>
|
|
|
|
<keyword>TypedStream</keyword>
|
|
|
|
</context>
|
|
|
|
|
2007-06-24 17:18:19 -05:00
|
|
|
<context id="objc-common-defines" style-ref="common-defines">
|
2007-06-24 17:02:21 -05:00
|
|
|
<keyword>METHOD_NULL</keyword>
|
2008-06-06 11:30:28 -05:00
|
|
|
<keyword>nil</keyword>
|
|
|
|
<keyword>Nil</keyword>
|
2007-06-24 17:02:21 -05:00
|
|
|
<keyword>NO</keyword>
|
|
|
|
<keyword>YES</keyword>
|
|
|
|
</context>
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<!-- actual language definition: ObjC-specific stuff plus everything from C -->
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="objc" class="no-spell-check">
|
2007-06-24 17:02:21 -05:00
|
|
|
<include>
|
|
|
|
<context ref="objc-source"/>
|
|
|
|
<context ref="objc-header"/>
|
|
|
|
<context ref="c:c"/>
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
</definitions>
|
|
|
|
</language>
|