This file is indexed.

/usr/share/cherrytree/language-specs/scala.lang is in cherrytree 0.37.6-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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<?xml version="1.0" encoding="UTF-8"?>
<!--

 This file is part of GtkSourceView

 Authors: Min Huang, Felix Dietze
   Copyright (C) 2009 Min Huang <min.huang@alumni.usc.edu>
   Copyright (C) 2012 Felix Dietze <felix@beerleader.net>

 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="scala" _name="Scala" version="2.0" _section="Sources">

  <metadata>
    <property name="mimetypes">text/x-scala</property>
    <property name="globs">*.scala</property>
    <property name="line-comment-start">//</property>
    <property name="block-comment-start">/*</property>
    <property name="block-comment-end">*/</property>
  </metadata>

  <styles>
    <style id="error" _name="Error" map-to="def:error"/>
    <style id="external" _name="External" map-to="def:preprocessor"/>
    <style id="comment" _name="Comment" map-to="def:comment"/>
    <style id="string" _name="String" map-to="def:string"/>
    <style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/>
    <style id="declaration" _name="Declaration" map-to="def:type"/>
    <style id="modifier" _name="Modifier" map-to="def:type"/>
    <style id="keyword" _name="Keyword" map-to="def:keyword"/>
    <style id="special" _name="Special Constant" map-to="def:special-constant"/>
    <style id="number" _name="Number" map-to="def:decimal"/>
    <style id="operator" _name="Operator" map-to="def:operator"/>
    <style id="type" _name="Data Type" map-to="def:identifier"/>
    <style id="builtin" _name="Built In" map-to="def:type"/>
    <style id="other" _name="Other" map-to="def:special-char"/>
    <style id="xmltag" _name="XML Tag" map-to="def:identifier"/>
  </styles>

  <definitions>
    <define-regex id="escaped-character" extended="true">
      \\(               # leading backslash
      [\\\"\'nrbtf] |   # escaped character
      [0-9]{1,3}    |   # latin encoded char
      u[0-9]{1,4}       # unicode char
      )
    </define-regex>

    <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
      <start>"</start>
      <end>"</end>
      <include>
      <context id="escaped-character" style-ref="escaped-character">
        <match>\%{escaped-character}</match>
      </context>
      </include>
    </context>

    <context id="multiline-string" style-ref="string" end-at-line-end="false" class="string" class-disabled="no-spell-check">
      <start>"""</start>
      <end>"""</end>
    </context>

    <context id="operators" style-ref="operator" extend-parent="false">
      <match>[-.~^@,;:/%|\=\+\*\!\?&amp;&lt;&gt;()_\[\]]</match>
    </context>
      
    <context id="character" style-ref="special">
      <match>'(\%{escaped-character}|.)'</match>
    </context>

    <context id="character-error" style-ref="error">
      <match>'(\%{escaped-character}|.)[^\s]+'</match>
    </context>
    
    <context id="symbol" style-ref="special">
      <match>'[a-zA-Z_][a-zA-Z0-9_]*</match>
    </context>

    <context id="block-comment" style-ref="comment">
      <start>/\*</start>
      <end>\*/</end>
      <include>
        <context ref="def:in-comment"/>
        <context ref="block-comment"/>
      </include>
    </context>

    <context id="numeric" style-ref="number">
      <match extended="true">
        (\b([0-9]+|0[xX][0-9a-fA-F]+)[Ll]?\b|\b(([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFdD]?|[0-9]+[FfDd]))
      </match>
    </context>
    
    <context id="annotation">
      <match>(^\s*|[^a-zA-Z0-9_\s]\s*)(@[a-zA-Z][a-zA-Z0-9_]*)</match>
      <include>
        <context sub-pattern="2" style-ref="special"/>
      </include>
    </context>

    <context id="xmltag">
      <match>(&lt;/?\w+)(\s(\w+\=)\{.*\})*(/?&gt;)</match>
      <include>
        <context sub-pattern="1" style-ref="xmltag" />
        <context sub-pattern="3" style-ref="xmltag" />
        <context sub-pattern="4" style-ref="xmltag" />
      </include>
    </context>

    <context id="literal-identifier">
      <start>`</start>
      <end>`</end>
    </context>

    <context id="external" style-ref="external">
      <keyword>import</keyword>
      <keyword>package</keyword>
    </context>

    <context id="declaration" style-ref="declaration">
      <keyword>case class</keyword>
      <keyword>class</keyword>
      <keyword>def</keyword>
      <keyword>extends</keyword>
      <keyword>forSome</keyword>
      <keyword>mixin</keyword>
      <keyword>object</keyword>
      <keyword>trait</keyword>
      <keyword>type</keyword>
      <keyword>val</keyword>
      <keyword>var</keyword>
      <keyword>with</keyword>
    </context>

    <context id="primitive-type" style-ref="type">
      <keyword>Boolean</keyword>
      <keyword>Byte</keyword>
      <keyword>Char</keyword>
      <keyword>Double</keyword>
      <keyword>Float</keyword>
      <keyword>Int</keyword>
      <keyword>Long</keyword>
      <keyword>Short</keyword>
      <keyword>Unit</keyword>
    </context>

    <context id="library-type" style-ref="type">
      <!-- collection types //-->
      <keyword>Iterator</keyword>
      <keyword>Array</keyword>
      <keyword>String</keyword>
      <keyword>IterableProxy</keyword>
      <keyword>SeqProxy</keyword>
      <keyword>TraversableProxy</keyword>

      <!-- general //-->
      <keyword>Cell</keyword>
      <keyword>Option</keyword>
      <keyword>Some</keyword>
      <keyword>None</keyword>
      <keyword>Either</keyword>
      <keyword>Left</keyword>
      <keyword>Right</keyword>
      <keyword>Nil</keyword>
      <keyword>Null</keyword>
      <keyword>Nothing</keyword>
      <keyword>Class</keyword>
      <keyword>Any</keyword>
      <keyword>AnyVal</keyword>
      <keyword>AnyRef</keyword>
      <keyword>Pair</keyword>
      <keyword>Triple</keyword>
      <keyword>BigDecimal</keyword>
      <keyword>BigInt</keyword>

      <!-- immutable collections //-->
      <keyword>BitSet</keyword>
      <keyword>DefaultMap</keyword>
      <keyword>HashMap</keyword>
      <keyword>HashSet</keyword>
      <keyword>IndexedSeq</keyword>
      <keyword>IntMap</keyword>
      <keyword>Iterable</keyword>
      <keyword>LinearSeq</keyword>
      <keyword>List</keyword>
      <keyword>ListMap</keyword>
      <keyword>ListSet</keyword>
      <keyword>LongMap</keyword>
      <keyword>Map</keyword>
      <keyword>MapLike</keyword>
      <keyword>MapProxy</keyword>
      <keyword>Nil</keyword>
      <keyword>NumericRange</keyword>
      <keyword>RangeUtils</keyword>
      <keyword>PagedSeq</keyword>
      <keyword>Queue</keyword>
      <keyword>Range</keyword>
      <keyword>RedBlack</keyword>
      <keyword>Seq</keyword>
      <keyword>Set</keyword>
      <keyword>SetProxy</keyword>
      <keyword>SortedMap</keyword>
      <keyword>SortedSet</keyword>
      <keyword>Stack</keyword>
      <keyword>Stream</keyword>
      <keyword>StreamIterator</keyword>
      <keyword>StreamView</keyword>
      <keyword>StreamViewLike</keyword>
      <keyword>StringLike</keyword>
      <keyword>StringOps</keyword>
      <keyword>Traversable</keyword>
      <keyword>TreeMap</keyword>
      <keyword>TreeSet</keyword>
      <keyword>Vector</keyword>
      <keyword>VectorBuilder</keyword>
      <keyword>VectorIterator</keyword>
      <keyword>WrappedString</keyword>

      <!-- mutable collections //-->
      <keyword>AddingBuilder</keyword>
      <keyword>ArrayBuffer</keyword>
      <keyword>ArrayBuilder</keyword>
      <keyword>ArrayLike</keyword>
      <keyword>ArrayOps</keyword>
      <keyword>ArraySeq</keyword>
      <keyword>ArrayStack</keyword>
      <keyword>BitSet</keyword>
      <keyword>Buffer</keyword>
      <keyword>BufferLike</keyword>
      <keyword>BufferProxy</keyword>
      <keyword>Builder</keyword>
      <keyword>Cloneable</keyword>
      <keyword>ConcurrentMap</keyword>
      <keyword>DefaultEntry</keyword>
      <keyword>DefaultMapModel</keyword>
      <keyword>DoubleLinkedList</keyword>
      <keyword>DoubleLinkedListLike</keyword>
      <keyword>FlatHashTable</keyword>
      <keyword>GrowingBuilder</keyword>
      <keyword>HashEntry</keyword>
      <keyword>HashMap</keyword>
      <keyword>HashSet</keyword>
      <keyword>HashTable</keyword>
      <keyword>History</keyword>
      <keyword>ImmutableMapAdaptor</keyword>
      <keyword>ImmutableSetAdaptor</keyword>
      <keyword>IndexedSeq</keyword>
      <keyword>IndexedSeqLike</keyword>
      <keyword>IndexedSeqOptimized</keyword>
      <keyword>IndexedSeqView</keyword>
      <keyword>Iterable</keyword>
      <keyword>LazyBuilder</keyword>
      <keyword>LinearSeq</keyword>
      <keyword>LinkedEntry</keyword>
      <keyword>LinkedHashMap</keyword>
      <keyword>LinkedHashSet</keyword>
      <keyword>LinkedList</keyword>
      <keyword>LinkedListLike</keyword>
      <keyword>ListBuffer</keyword>
      <keyword>ListMap</keyword>
      <keyword>Map</keyword>
      <keyword>MapBuilder</keyword>
      <keyword>MapLike</keyword>
      <keyword>MapProxy</keyword>
      <keyword>MultiMap</keyword>
      <keyword>MutableList</keyword>
      <keyword>ObservableBuffer</keyword>
      <keyword>ObservableMap</keyword>
      <keyword>ObservableSet</keyword>
      <keyword>OpenHashMap</keyword>
      <keyword>PriorityQueue</keyword>
      <keyword>PriorityQueueProxy</keyword>
      <keyword>Publisher</keyword>
      <keyword>Queue</keyword>
      <keyword>QueueProxy</keyword>
      <keyword>ResizableArray</keyword>
      <keyword>RevertibleHistory</keyword>
      <keyword>Seq</keyword>
      <keyword>SeqLike</keyword>
      <keyword>Set</keyword>
      <keyword>SetBuilder</keyword>
      <keyword>SetLike</keyword>
      <keyword>SetProxy</keyword>
      <keyword>Stack</keyword>
      <keyword>StackProxy</keyword>
      <keyword>StringBuilder</keyword>
      <keyword>Subscriber</keyword>
      <keyword>SynchronizedBuffer</keyword>
      <keyword>SynchronizedMap</keyword>
      <keyword>SynchronizedPriorityQueue</keyword>
      <keyword>SynchronizedQueue</keyword>
      <keyword>SynchronizedSet</keyword>
      <keyword>SynchronizedStack</keyword>
      <keyword>Traversable</keyword>
      <keyword>Undoable</keyword>
      <keyword>UnrolledBuffer</keyword>
      <keyword>WeakHashMap</keyword>
      <keyword>WrappedArray</keyword>
      <keyword>WrappedArrayBuilder</keyword>
    </context>

    <context id="modifier" style-ref="modifier">
      <keyword>abstract</keyword>
      <keyword>final</keyword>
      <keyword>implicit</keyword>
      <keyword>lazy</keyword>
      <keyword>override</keyword>
      <keyword>private</keyword>
      <keyword>protected</keyword>
      <keyword>sealed</keyword>
    </context>

    <context id="flow" style-ref="keyword">
      <keyword>case</keyword>
      <keyword>catch</keyword>
      <keyword>do</keyword>
      <keyword>else</keyword>
      <keyword>finally</keyword>
      <keyword>for</keyword>
      <keyword>if</keyword>
      <keyword>match</keyword>
      <keyword>requires</keyword>
      <keyword>return</keyword>
      <keyword>throw</keyword>
      <keyword>try</keyword>
      <keyword>while</keyword>
      <keyword>yield</keyword>
    </context>

    <context id="memory" style-ref="keyword">
      <keyword>new</keyword>
      <keyword>super</keyword>
      <keyword>this</keyword>
    </context>
    
    <context id="special" style-ref="special">
      <keyword>true</keyword>
      <keyword>false</keyword>
      <keyword>null</keyword>
    </context>


    <context id="scala" class="no-spell-check">
      <include>
        <context ref="literal-identifier"/>
        <context ref="multiline-string"/>
        <context ref="string"/>
        <context ref="character"/>
        <context ref="character-error"/>
        <context ref="symbol"/>
        <context ref="block-comment"/>
        <context ref="annotation"/>
        <context ref="external"/>
        <context ref="declaration"/>
        <context ref="primitive-type"/>
        <context ref="library-type"/>
        <context ref="modifier"/>
        <context ref="flow"/>
        <context ref="memory"/>
        <context ref="special"/>
        <context ref="numeric"/>
        <context ref="xmltag"/>
        <context ref="operators"/>
      </include>
    </context>

  </definitions>
</language>