Protobuf lang file from Pavel Artyomkin
parent
29eb6fc357
commit
1dabddb412
1
THANKS
1
THANKS
|
@ -27,6 +27,7 @@ Nick Treleaven
|
|||
Owen Taylor
|
||||
Paolo Borelli
|
||||
Paolo Maggi
|
||||
Pavel Artyomkin
|
||||
Philip Hazel
|
||||
Scott Wimer
|
||||
Thomas Gilgin
|
||||
|
|
|
@ -67,6 +67,7 @@ lang_files = \
|
|||
mooedit/langs/pkgconfig.lang \
|
||||
mooedit/langs/po.lang \
|
||||
mooedit/langs/prolog.lang \
|
||||
mooedit/langs/protobuf.lang \
|
||||
mooedit/langs/python-console.lang \
|
||||
mooedit/langs/python.lang \
|
||||
mooedit/langs/R.lang \
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
|
||||
Author: Pavel Artyomkin <artmkin@gmail.com>
|
||||
Copyright (C) 2011 Pavel Artyomkin <artmkin@gmail.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
|
||||
-->
|
||||
<language id="proto" _name="Protobuf" version="2.0" _section="Sources">
|
||||
<metadata>
|
||||
<property name="mimetypes">text/x-protobuf</property>
|
||||
<property name="globs">*.proto</property>
|
||||
<property name="line-comment-start">//</property>
|
||||
</metadata>
|
||||
|
||||
<styles>
|
||||
<style id="comment" _name="Comment" map-to="def:comment"/>
|
||||
<style id="variable" _name="Variable" map-to="def:type"/>
|
||||
<style id="type" _name="Data Type" map-to="def:type"/>
|
||||
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
|
||||
<style id="boolean" _name="Boolean value" map-to="def:boolean"/>
|
||||
<style id="string" _name="String" map-to="def:string"/>
|
||||
</styles>
|
||||
|
||||
<definitions>
|
||||
<context id="proto">
|
||||
<include>
|
||||
<context id="comment" style-ref="comment" end-at-line-end="true">
|
||||
<start>//</start>
|
||||
<include>
|
||||
<context ref="def:in-line-comment"/>
|
||||
</include>
|
||||
</context>
|
||||
|
||||
<context id="variable" style-ref="variable">
|
||||
<match>[$@%][$]?[a-zA-Z_][a-zA-Z0-9_]*</match>
|
||||
</context>
|
||||
|
||||
<context id="string" style-ref="string" end-at-line-end="true">
|
||||
<start>"</start>
|
||||
<end>"</end>
|
||||
</context>
|
||||
|
||||
<context id="keyword" style-ref="keyword">
|
||||
<keyword>message</keyword>
|
||||
<keyword>enum</keyword>
|
||||
<keyword>package</keyword>
|
||||
<keyword>required</keyword>
|
||||
<keyword>optional</keyword>
|
||||
<keyword>repeated</keyword>
|
||||
<keyword>import</keyword>
|
||||
<keyword>extensions</keyword>
|
||||
<keyword>to</keyword>
|
||||
<keyword>extend</keyword>
|
||||
<keyword>service</keyword>
|
||||
<keyword>rpc</keyword>
|
||||
<keyword>returns</keyword>
|
||||
<keyword>option</keyword>
|
||||
|
||||
<keyword>default</keyword>
|
||||
<keyword>packed</keyword>
|
||||
<keyword>deprecated</keyword>
|
||||
</context>
|
||||
|
||||
<context id="types" style-ref="type">
|
||||
<keyword>double</keyword>
|
||||
<keyword>float</keyword>
|
||||
<keyword>int32</keyword>
|
||||
<keyword>int64</keyword>
|
||||
<keyword>uint32</keyword>
|
||||
<keyword>uint64</keyword>
|
||||
<keyword>sint32</keyword>
|
||||
<keyword>sint64</keyword>
|
||||
<keyword>fixed32</keyword>
|
||||
<keyword>fixed64</keyword>
|
||||
<keyword>sfixed32</keyword>
|
||||
<keyword>sfixed64</keyword>
|
||||
<keyword>bool</keyword>
|
||||
<keyword>string</keyword>
|
||||
<keyword>bytes</keyword>
|
||||
</context>
|
||||
|
||||
<context id="boolean" style-ref="boolean">
|
||||
<keyword>true</keyword>
|
||||
<keyword>false</keyword>
|
||||
</context>
|
||||
</include>
|
||||
</context>
|
||||
</definitions>
|
||||
</language>
|
Loading…
Reference in New Issue