This file is indexed.

/usr/share/gtksourceview-3.0/language-specs/rst.lang is in libgtksourceview-3.0-common 3.18.2-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
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="UTF-8"?>
<!--

 This file is part of GtkSourceView

 Author: Guillaume Chéreau <guillaume.chereau@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="rst" _name="reStructuredText" version="2.0" _section="Markup">
  <metadata>
    <property name="mimetypes">text/x-rst</property>
    <property name="globs">*.rst</property>
    <property name="line-comment-start">..\u0020</property>
  </metadata>

  <styles>
    <style id="header" _name="Header" map-to="def:type"/>
    <style id="emphasis" _name="Emphasis" map-to="def:doc-comment-element"/>
    <style id="strong-emphasis" _name="Strong Emphasis" map-to="def:statement"/>
    <style id="bullet" _name="Bullet" map-to="def:preprocessor"/>
    <style id="directive" _name="Directive" map-to="def:constant"/>
    <style id="comment" _name="Comment" map-to="def:comment"/>
    <style id="link" _name="Link" map-to="def:type"/>
    <style id="substitution" _name="Substitution" map-to="def:type"/>
    <style id="code" _name="Code" map-to="def:identifier"/>
    <style id="url" name="Url" map-to="def:underlined"/>
  </styles>

  <definitions>

    <context id="directive" class="no-spell-check" style-ref="directive">
      <match>^\s*\.\. .*::.*$</match>
    </context>

    <context id="footnotes" style-ref="directive">
      <match>^\s*\.\. \[.+\] .*$</match>
    </context>

    <context id="link-target" class="no-spell-check" style-ref="directive">
      <match>^\s*\.\. _.*:.*$</match>
    </context>

    <context id="comment" style-ref="comment">
      <start>(\s*)\.\.(\s+).+$</start>
      <end>^(?!(\%{1@start}  \%{2@start})|(^$))</end>
    </context>

    <context id="comment-single" style-ref="comment">
      <start>^(\s*)\.\.(\s*)$</start>
      <end>x</end>
      <include>
        <context id="comment-single-block" style-ref="comment" end-parent="true">
          <start>(\s*).+$</start>
          <end>^(?!(\%{1@start}))</end>
        </context>
      </include>
    </context>

    <context id="title-adornment" style-ref="header">
      <match>^\s*(=+|\-+|`+|:+|(\.\.\.+)|'+|"+|~+|\^+|_+|\*+|\++|#+)\s*$</match>
    </context>

    <context id="bullet" style-ref="bullet">
      <match>^\s*[\*\+\-•‣⁃] </match>
    </context>

    <define-regex id="enumerator-chars" extended="true">
      ([a-zA-Z]|([0-9]+))
    </define-regex>

    <context id="enumerator" style-ref="bullet">
      <match>^\s*((\%{enumerator-chars}\.)|(\(?\%{enumerator-chars}\)) )</match>
    </context>

    <context id="field" style-ref="bullet">
      <match>^\s*:.+?:</match>
    </context>

    <context id="strong-emphasis" style-ref="strong-emphasis">
      <match>\*\*(?!\s).+?(?!\s)\*\*</match>
    </context>

    <context id="emphasis" style-ref="emphasis">
      <match>\*(?!\s).+?(?!\s)\*</match>
    </context>

    <context id="link" style-ref="link">
      <match>(\S+_)|(`\b.*?\b`_)</match>
    </context>

    <context id="substitution" style-ref="substitution">
      <match>\|\b.*\b\|</match>
    </context>

    <context id="literals">
      <include>
        <context id="inline-literals" class="no-spell-check" style-ref="code">
          <match>``(?!\s).*(?!\s)``</match>
        </context>
      </include>
    </context>

    <context id="url" style-ref="url">
      <match>((http)|(file))://\S*</match>
    </context>

    <context id="rst">
      <include>
        <context ref="directive"/>
        <context ref="link-target"/>
        <context ref="footnotes"/>
        <context ref="comment"/>
        <context ref="comment-single"/>
        <context ref="title-adornment"/>
        <context ref="bullet"/>
        <context ref="enumerator"/>
        <context ref="field"/>
        <context ref="strong-emphasis"/>
        <context ref="emphasis"/>
        <context ref="link"/>
        <context ref="substitution"/>
        <context ref="literals"/>
        <context ref="url"/>
      </include>
    </context>
  </definitions>

</language>