This file is indexed.

/usr/share/diffuse/syntax/octave.syntax is in diffuse 0.4.8-2.

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
# Octave syntax file for Diffuse
# Copyright (C) 2009 Derrick Moser <derrick_moser@yahoo.com>
syntax Octave normal text
# We want Diffuse's default behaviour tot identify files with the '.m'
# extension as Objective-C files so we do not define a rule for matching files
# with the extension '.m' here.
#syntax_files Octave '\.m$'

# colours
colour octave_comment 0.2 0.4 0.64
colour octave_fixme 1.0 0.5 0.0
colour octave_keyword 0.77 0.63 0.0
colour octave_type 0.3 0.6 0.02
colour octave_literal 1.0 0.2 0.8
colour octave_string 0.8 0.0 0.0
colour octave_escapedchar 0.46 0.31 0.48
colour octave_punctuation 0.5 0.5 0.5

# whitespace
syntax_pattern normal normal text '[ \t\r\n]+'

syntax_pattern op op octave_punctuation "'+"
syntax_pattern op normal octave_punctuation ''

# block comments
syntax_pattern normal block_comment octave_comment '^%\{(\r\n|\r|\n)$'
syntax_pattern block_comment normal octave_comment '^%\}(\r\n|\r|\n)$'
syntax_pattern block_comment block_comment octave_fixme '\b(TODO|FIXME|XXX)\b'
syntax_pattern block_comment block_comment octave_comment '.[^TFX]*'

# comments
syntax_pattern normal comment octave_comment '[#%]'
syntax_pattern comment normal octave_comment '(\r\n|\r|\n)$'
syntax_pattern comment comment octave_fixme '\b(TODO|FIXME|XXX)\b'
syntax_pattern comment comment octave_comment '.[^TFX\r\n]*'

# char
syntax_pattern normal char octave_string "'"
syntax_pattern char char octave_escapedchar "''"
syntax_pattern char op octave_string "'"
syntax_pattern char char octave_string ".[^']*"

# string
syntax_pattern normal string octave_string '"'
syntax_pattern string string octave_escapedchar '(\\.)+'
syntax_pattern string op octave_string '"'
syntax_pattern string string octave_string '.[^\\"]*'

# literals
syntax_pattern normal op octave_literal '[0-9]+(\.[0-9]+)?(e[\+\-]?[0-9]+)?[ij]?' ignorecase
syntax_pattern normal op octave_literal '\b(Inf|NA|NaN)\b'

# typing keywords
syntax_pattern normal op octave_type '\b(char|double|logical|single|u?int(8|16|32|64))\b'

# keywords
syntax_pattern normal op octave_keyword '\b(break|case|catch|continue|do|else|elseif|end|endfor|endfunction|endif|endswitch|end_try_catch|end_unwind_protect|endwhile|for|function|global|if|otherwise|persistent|return|switch|try|until|unwind_protect(_cleanup)?|while)\b'

# punctuation
syntax_pattern normal op octave_punctuation '[\]\)\}\.]+'
syntax_pattern normal normal octave_punctuation '[\[\(\{:;,~&\|=<>\*/\+\-@\^\\!]+'

# parsing optimisation
syntax_pattern normal op text '[a-z_][a-z_0-9]*' ignorecase