[gtksourceview] Add protobuf.lang file by Pavel Artyomkin.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Add protobuf.lang file by Pavel Artyomkin.
- Date: Sun, 11 Sep 2011 10:08:50 +0000 (UTC)
commit cbe36fb977997549ded056f56bcd3e2f20d2af48
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Sep 11 12:10:51 2011 +0200
Add protobuf.lang file by Pavel Artyomkin.
The file was included in the moo project and Muntyan suggested including
it upstream.
data/language-specs/Makefile.am | 1 +
data/language-specs/protobuf.lang | 103 +++++++++++++++++++++++++++++++++++++
po/POTFILES.in | 1 +
3 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/data/language-specs/Makefile.am b/data/language-specs/Makefile.am
index 7f1927b..1a6c7fd 100644
--- a/data/language-specs/Makefile.am
+++ b/data/language-specs/Makefile.am
@@ -72,6 +72,7 @@ LANGUAGES = \
po.lang \
python.lang \
prolog.lang \
+ protobuf.lang \
R.lang \
rpmspec.lang \
ruby.lang \
diff --git a/data/language-specs/protobuf.lang b/data/language-specs/protobuf.lang
new file mode 100644
index 0000000..33995c0
--- /dev/null
+++ b/data/language-specs/protobuf.lang
@@ -0,0 +1,103 @@
+<?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="Others">
+ <metadata>
+ <property name="mimetypes">text/x-protobuf</property>
+ <property name="globs">*.proto</property>
+ <property name="line-comment-start">//</property>
+ </metadata>
+
+ <styles>
+ <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="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" class="string" class-disabled="no-spell-check">
+ <start>"</start>
+ <end>"</end>
+ </context>
+
+ <context id="keywords" 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>
+
+ <context id="proto" class="no-spell-check">
+ <include>
+ <context ref="def:c-like-comment"/>
+ <context ref="variable"/>
+ <context ref="string"/>
+ <context ref="keywords"/>
+ <context ref="types"/>
+ <context ref="boolean"/>
+ </include>
+ </context>
+ </definitions>
+</language>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 57ef9a3..4944d4e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -69,6 +69,7 @@ data/language-specs/php.lang
data/language-specs/pkgconfig.lang
data/language-specs/po.lang
data/language-specs/prolog.lang
+data/language-specs/protobuf.lang
data/language-specs/python.lang
data/language-specs/R.lang
data/language-specs/rpmspec.lang
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]