This file is indexed.

/usr/share/gtksourceview-3.0/language-specs/protobuf.lang is in libgtksourceview-3.0-common 3.24.7-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?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, see <http://www.gnu.org/licenses/>.

-->
<language id="proto" name="Protobuf" version="2.0" _section="Other">
  <metadata>
    <property name="mimetypes">text/x-protobuf</property>
    <property name="globs">*.proto</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="statement" name="Statement" map-to="def:preprocessor"/>
    <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="syntax">
      <match>(syntax)\s+=\s+("proto2"|"proto3");</match>
      <include>
        <context sub-pattern="1" style-ref="statement"/>
        <context sub-pattern="2" style-ref="string"/>
      </include>
    </context>

    <context id="package">
      <match>(package)\s+(.*);</match>
      <include>
        <context sub-pattern="1" style-ref="statement"/>
        <context sub-pattern="2" style-ref="string"/>
      </include>
    </context>

    <context id="import">
      <match>(import)(\s+(weak|public))?\s+(".*");</match>
      <include>
        <context sub-pattern="1" style-ref="statement"/>
        <context sub-pattern="2" style-ref="statement"/>
        <context sub-pattern="4" style-ref="string"/>
      </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" class="string" class-disabled="no-spell-check">
      <start>"</start>
      <end>"</end>
    </context>

    <context id="keywords" style-ref="keyword">
      <keyword>default</keyword>
      <keyword>deprecated</keyword>
      <keyword>enum</keyword>
      <keyword>extend</keyword>
      <keyword>extensions</keyword>
      <keyword>message</keyword>
      <keyword>oneof</keyword>
      <keyword>optional</keyword>
      <keyword>option</keyword>
      <keyword>package</keyword>
      <keyword>packed</keyword>
      <keyword>repeated</keyword>
      <keyword>required</keyword>
      <keyword>returns</keyword>
      <keyword>rpc</keyword>
      <keyword>service</keyword>
      <keyword>to</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" style-ref="comment"/>
        <context ref="def:c-like-comment-multiline" style-ref="comment"/>
        <context ref="syntax"/>
        <context ref="package"/>
        <context ref="import"/>
        <context ref="variable"/>
        <context ref="string"/>
        <context ref="keywords"/>
        <context ref="types"/>
        <context ref="boolean"/>
      </include>
    </context>
  </definitions>
</language>