<?xml version="1.0" encoding="UTF-8"?>
<!--

 Author: P. F. Chimento
 Copyright (C) 2008 P. F. Chimento <philip.chimento@gmail.com>

 GNOME Inform 7 is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 GNOME Inform 7 is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with GNOME Inform 7; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

-->
<language id="inform7x" _name="Natural Inform Extension" version="2.0" 
_section="Sources">
    <metadata>
        <property name="mimetypes">text/x-natural-inform-extension</property>
        <property name="globs">*.i7x</property>
        <property name="block-comment-start">[</property>
        <property name="block-comment-end">]</property>
    </metadata>
    
    <styles>
        <style id="heading" _name="Heading" map-to="inform7:heading"/>
        <style id="comment" _name="Comment" map-to="inform7:comment"/>
    </styles>
    
    <default-regex-options case-sensitive="false"/>
    
    <definitions>
        <context id="inform7x">
            <include>
            
                <context id="begins-here-heading" style-ref="heading" 
                first-line-only="true" once-only="true">
                    <match>^\s*(version\s.+\sof\s+)?(the\s+)?.+\sby\s.+\sbegins?\s+here\.?\s*$</match>
                </context>
                
                <context id="ends-here-heading" style-ref="heading" 
                once-only="true">
                    <match>^.+\sends?\s+here\.?$</match>
                </context>
                
                <context id="documentation" style-ref="comment" 
                once-only="true">
                    <start>^---- documentation ----$</start>
                </context>
                
                <context ref="inform7:string"/>
                <context ref="inform7:block-comment"/>
                <context ref="inform7:heading"/>
                <context ref="inform7:i6code"/>
            
            </include>
        </context>
    </definitions>
</language>
