This file is indexed.

/usr/share/gtksourceview-2.0/language-specs/yacc.lang is in libgtksourceview2.0-common 2.10.5-1ubuntu2.

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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?xml version="1.0" encoding="UTF-8"?>
<!--

 Author: Yevgen Muntyan <muntyan@tamu.edu>
 Copyright (C) 2006-2008 Yevgen Muntyan <muntyan@tamu.edu>

 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="yacc" _name="Yacc" _section="Others" version="2.0">
  <metadata>
    <property name="mimetypes">text/x-yacc;text/x-bison</property>
    <property name="globs">*.y;*.yacc</property>
    <property name="line-comment-start">//</property>
    <property name="block-comment-start">/*</property>
    <property name="block-comment-end">*/</property>
  </metadata>

  <styles>
    <!--FIXME make it better names, and make them translatable -->
    <style id="keyword" _name="keyword" map-to="def:keyword"/>
    <style id="token-type" _name="token-type" map-to="def:type"/>
    <style id="rule" _name="rule" map-to="def:identifier"/>
  </styles>

  <definitions>
    <context id="inline-c">
      <start>^%{</start>
      <end>^%}</end>
      <include>
        <context sub-pattern="0" where="start" style-ref="keyword"/>
        <context sub-pattern="0" where="end" style-ref="keyword"/>
        <context ref="c:c"/>
      </include>
    </context>

    <context id="options" style-ref="keyword">
      <prefix>^%</prefix>
      <keyword>debug</keyword>
      <keyword>defines</keyword>
      <keyword>destructor</keyword>
      <keyword>dprec</keyword>
      <keyword>error-verbose</keyword>
      <keyword>expect</keyword>
      <keyword>glr-parser</keyword>
      <keyword>initial-action</keyword>
      <keyword>left</keyword>
      <keyword>lex-param</keyword>
      <keyword>locations</keyword>
      <keyword>merge</keyword>
      <keyword>name-prefix</keyword>
      <keyword>no[_-]lines</keyword>
      <keyword>nonassoc</keyword>
      <keyword>output</keyword>
      <keyword>parse-param</keyword>
      <keyword>prec</keyword>
      <keyword>pure[_-]parser</keyword>
      <keyword>raw</keyword>
      <keyword>require</keyword>
      <keyword>right</keyword>
      <keyword>start</keyword>
      <keyword>token[_-]table</keyword>
      <keyword>union</keyword>
    </context>

    <context id="token" end-at-line-end="true">
      <start>^(%(token|type))(&lt;[A-Za-z_][A-Za-z0-9_]*&gt;)?(?![\w_-])</start>
      <include>
        <context sub-pattern="1" where="start" style-ref="keyword"/>
        <context sub-pattern="3" where="start" style-ref="token-type"/>
        <context ref="c:string"/>
        <context ref="c:char"/>
        <context ref="c:float"/>
        <context ref="c:hexadecimal"/>
        <context ref="c:octal"/>
        <context ref="c:decimal"/>
        <context ref="c:comment"/>
        <context ref="c:comment-multiline"/>
      </include>
    </context>

    <context id="before-grammar">
      <include>
        <context ref="inline-c"/>
        <context ref="options"/>
        <context ref="token"/>
        <context ref="c:comment"/>
        <context ref="c:comment-multiline"/>
      </include>
    </context>

    <context id="after-grammar">
      <start>^%%</start>
      <include>
        <context sub-pattern="0" where="start" style-ref="keyword"/>
        <context ref="c:c"/>
      </include>
    </context>

    <context id="c-with-brackets">
      <include>
        <context>
          <start>{</start>
          <end>}</end>
          <include>
            <context ref="c-with-brackets"/>
          </include>
        </context>
        <context style-ref="keyword">
          <match>(\$(&lt;[\w\d_-]*&gt;)?[\$0-9]|[@][$0-9])</match>
        </context>
        <context ref="c:c"/>
      </include>
    </context>

    <context id="rule-code">
      <start>{</start>
      <end>}</end>
      <include>
        <context sub-pattern="0" where="start" style-ref="keyword"/>
        <context sub-pattern="0" where="end" style-ref="keyword"/>
        <context ref="c-with-brackets"/>
      </include>
    </context>

    <context id="rule">
      <start>[a-zA-Z_.][a-zA-Z0-9_.]*</start>
      <end>;</end>
      <include>
        <context sub-pattern="0" where="start" style-ref="rule"/>
        <context ref="c:comment"/>
        <context ref="c:comment-multiline"/>
        <context ref="c:char"/>
        <context ref="c:string"/>
        <context ref="rule-code"/>
      </include>
    </context>

    <context id="grammar">
      <start>^%%</start>
      <include>
        <context sub-pattern="0" where="start" style-ref="keyword"/>
        <context ref="c:comment"/>
        <context ref="c:comment-multiline"/>
        <context ref="c:char"/>
        <context ref="c:string"/>
        <context ref="rule"/>
        <context ref="after-grammar"/>
      </include>
    </context>

    <context id="yacc">
      <include>
        <context ref="before-grammar"/>
        <context ref="grammar"/>
      </include>
    </context>
  </definitions>
</language>