1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Authors: Oscar Torrent Artero, Joseba García Etxebarria
Copyright (C) 2009 Oscar Torrent Artero <q2dg@yahoo.es>
Copyright (C) 2010 Joseba García Etxebarria <joseba.gar@gmail.com>
GtkSourceView is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
GtkSourceView 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
Lesser General Public License for more details.
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
-->
<language id="bennugd" _name="BennuGD" version="2.0" _section="Sources">
<metadata>
<property name="globs">*.prg</property>
<property name="line-comment-start">//</property>
<property name="block-comment-start">/*</property>
<property name="block-comment-end">*/</property>
</metadata>
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="error" _name="Error" map-to="def:error"/>
<style id="preprocessor" _name="Preprocessor" map-to="def:preprocessor"/>
<style id="identifier" _name="Identifier" map-to="def:identifier"/>
<style id="operator" _name="Operator" map-to="def:operator"/>
<style id="keywords" _name="Keyword" map-to="def:keyword"/>
<style id="types" _name="Data Type" map-to="def:type"/>
<style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/>
<style id="floating-point" _name="Floating point number" map-to="def:floating-point"/>
<style id="decimal" _name="Decimal number" map-to="def:decimal"/>
<style id="hexadecimal" _name="Hexadecimal number" map-to="def:base-n-integer"/>
<style id="boolean" _name="Boolean value" map-to="def:boolean"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="char" _name="Character" map-to="def:character"/>
</styles>
<default-regex-options case-sensitive="false" />
<definitions>
<define-regex id="symbolchar">[-!+\\|=:&><]</define-regex>
<define-regex id="escaped-character" extended="true">
\\( # leading backslash
[\\\"\'nrbtfav\?] | # escaped character
[0-7]{1,3} | # one, two, or three octal digits
x[0-9A-Fa-f]+ # 'x' followed by hex digits
)
</define-regex>
<!--Comments -->
<context id="comment" style-ref="comment" end-at-line-end="true" class-disabled="no-spell-check">
<start>//</start>
<include>
<context ref="def:in-line-comment"/>
</include>
</context>
<context id="comment-multiline" style-ref="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
<context ref="def:in-comment"/>
</include>
</context>
<context id="close-comment-outside-comment" style-ref="error">
<match>\*/(?!\*)</match>
</context>
<!--Preprocessor -->
<define-regex id="preproc-start">^\s*#\s*</define-regex>
<context id="preprocessor" style-ref="preprocessor" end-at-line-end="true">
<start extended="true">
\%{preproc-start}
(define|if(n?def)?|else|elsif|endif)
\b
</start>
<include>
<context ref="def:line-continue" ignore-style="true"/>
<context ref="string" ignore-style="true"/>
<context ref="comment"/>
<context ref="comment-multiline"/>
</include>
</context>
<!-- Different data
|