This file is indexed.

/usr/share/gtksourceview-3.0/language-specs/matlab.lang is in libgtksourceview-3.0-common 3.4.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
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
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0" encoding="UTF-8"?>
<!--

 This file is part of GtkSourceView

 Authors: Søren Hauberg, Muthiah Annamalai, Carnë Draug
 Copyright (C) 2006 Søren Hauberg <soren@hauberg.org>
 Copyright (C) 2006 Muthiah Annamalai <gnumuthu@users.sf.net>
 Copyright (C) 2010 Carnë Draug <carandraug+dev@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="matlab" _name="Matlab" version="2.0" _section="Scientific">
  <metadata>
    <property name="mimetypes">text/x-octave;text/x-matlab</property>
    <property name="globs">*.m</property>
    <property name="line-comment-start">%</property>
    <property name="block-comment-start">%{</property>
    <property name="block-comment-end">%}</property>
  </metadata>

  <!--
    Note: matlab.lang and octave.lang used to be the same lang file since
    octave syntax was originally a clone of matlab syntax. Over time the
    two syntaxes diverged and grew different extensions. When making
    modification check if they apply to both languages.
  -->

  <styles>
    <style id="comment" _name="Comment" map-to="def:comment"/>
    <style id="string" _name="String" map-to="def:string"/>
    <style id="builtin" _name="Builtin" map-to="def:builtin"/>
  </styles>

  <definitions>

    <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
      <start>^\s*%{\s*$</start>
      <end>^\s*%}\s*$</end>
      <include>
        <context ref="block-comment"/>
        <context ref="def:in-comment"/>
      </include>
    </context>

    <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
      <start>%</start>
      <include>
        <context ref="def:in-comment"/>
      </include>
    </context>

    <!-- Different from the line continue in the defaults.-->
    <!-- Continuation line can be ... or \ optionally followed by whitespace
         and comments -->
    <context id="line-continue" style-ref="comment" class="comment" class-disabled="no-spell-check">
      <start>\.\.\.(\s)*$|\.\.\.(\s)*%+|\\(\s)*$|\\(\s)*%+</start>
      <end>^</end>
      <include>
        <context ref="def:in-comment"/>
      </include>
    </context>

    <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
      <start>"</start>
      <end>"</end>
      <include>
         <!-- octave uses the same printf format and escape chars as C -->
        <context ref="c:printf"/>
        <context ref="c:escaped-character"/>
        <context ref="line-continue"/>
      </include>
    </context>

    <!-- FIXME: Matlab probably has much more builtin functions
     this is just the list that was already in the lang file before
     being split from octave.lang -->
    <context id="builtin" style-ref="builtin">
      <keyword>abs</keyword>
      <keyword>acos</keyword>
      <keyword>asin</keyword>
      <keyword>atan2</keyword>
      <keyword>atan</keyword>
      <keyword>ceil</keyword>
      <keyword>columns</keyword>
      <keyword>conv</keyword>
      <keyword>cosh</keyword>
      <keyword>cos</keyword>
      <keyword>cumprod</keyword>
      <keyword>dims</keyword>
      <keyword>error</keyword>
      <keyword>fclose</keyword>
      <keyword>floor</keyword>
      <keyword>fopen</keyword>
      <keyword>fprintf</keyword>
      <keyword>fread</keyword>
      <keyword>fsolve</keyword>
      <keyword>imag</keyword>
      <keyword>isempty</keyword>
      <keyword>isinf</keyword>
      <keyword>islogical</keyword>
      <keyword>ismatrix</keyword>
      <keyword>isnan</keyword>
      <keyword>isna</keyword>
      <keyword>isnumeric</keyword>
      <keyword>isscalar</keyword>
      <keyword>isstr</keyword>
      <keyword>isvector</keyword>
      <keyword>length</keyword>
      <keyword>linspace</keyword>
      <keyword>log10</keyword>
      <keyword>log2</keyword>
      <keyword>log</keyword>
      <keyword>max</keyword>
      <keyword>min</keyword>
      <keyword>ones</keyword>
      <keyword>printf</keyword>
      <keyword>prod</keyword>
      <keyword>real</keyword>
      <keyword>rem</keyword>
      <keyword>repmat</keyword>
      <keyword>reshape</keyword>
      <keyword>round</keyword>
      <keyword>rows</keyword>
      <keyword>setstr</keyword>
      <keyword>sinh</keyword>
      <keyword>sin</keyword>
      <keyword>size</keyword>
      <keyword>sort</keyword>
      <keyword>sprintf</keyword>
      <keyword>sqrt</keyword>
      <keyword>strcat</keyword>
      <keyword>strcmp</keyword>
      <keyword>sum</keyword>
      <keyword>system</keyword>
      <keyword>tanh</keyword>
      <keyword>tan</keyword>
      <keyword>unlink</keyword>
      <keyword>usage</keyword>
      <keyword>varargin</keyword>
      <keyword>varargout</keyword>
      <keyword>warning</keyword>
      <keyword>zeros</keyword>
    </context>

    <context id="matlab" class="no-spell-check">
      <include>
        <context ref="block-comment"/>
        <context ref="line-comment"/>
        <context ref="line-continue"/>
        <context ref="double-quoted-string"/>
        <context ref="octave:single-quoted-string"/>
        <context ref="octave:operator"/>
        <context ref="octave:data-type"/>
        <context ref="octave:function-handle"/>
        <context ref="octave:storage-type"/>
        <context ref="octave:boolean"/>
        <context ref="octave:decimal"/>
        <context ref="octave:floating-point-number"/>
        <context ref="octave:octal-number"/>
        <context ref="octave:hex-number"/>
        <context ref="octave:variables"/>
        <context ref="octave:reserved-constant"/>
        <context ref="octave:package-manager"/>
        <context ref="octave:keyword"/>
        <context ref="builtin"/>
      </include>
    </context>

  </definitions>
</language>