This file is indexed.

/usr/share/joe/syntax/erlang.jsf is in joe 4.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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
# JOE syntax highlight file for Erlang
# by Christian Nicolai (http://mycrobase.de)
# with contributions from Jonas Rosling and Andrew Lisin

# TODO Handle type information ::
# TODO implement subroutines for cleaner and more correct implementation.
# TODO Probably use less colors to be less distractive.


=Idle
=Ident
=Comment
=Constant
=String		+Constant
=String_mod	+StringEscape
=String_esc	+StringEscape
=Number		+Constant
=Keyword
=Operator	+Keyword
=Type
=Module		+Type
=Brace		+Control
=Bracket	+Control
=Character	+String +Constant
=CharacterEscape +StringEscape +Character
=Attribute	+Preproc
=Variable	#+DefinedIdent +Ident ??
=Record		+Include +Preproc
=Macro		+Define
=Guard		+Conditional +Statement +Bif
=Bif		+DefinedFunction
=Fun		+Ident
=Recatt


:idle Idle
	*		idle
	"A-Z_"		variable	noeat
	"%"		line_comment	noeat
	"\""		string		recolor=-1
	"'"		quoted_atom	mark
	"0-9"		decimal		recolor=-1
        "[]"            brack           recolor=-1
	"{}"		brace		recolor=-1
	"-"		maybe_attribute	buffer
	"a-z"		atom		buffer mark noeat
	"#"		record		recolor=-1
	"$"		char		recolor=-1
	"?"		is_macro	mark
	"<|"		lc		buffer

:lc Idle
	*		idle		noeat strings
	"<-"		kw
	"||"		kw
done
	"-<|"		lc

:pipe Idle
	*		idle		noeat
	"|"		kw		recolormark
	
:is_macro Idle
	*		macro		recolormark noeat
	"a-zA-Z0-9_@"	is_macro

:macro Macro
	*		idle		noeat

:char Character string
	*		idle
	"\\"		charesc

:charesc Character string
	*		idle

:line_comment Comment comment
	*		line_comment
	"@"		is_edoc		noeat buffer 
	"BFHNTX"	line_comment	noeat call=comment_todo.comment_todo()
	"\n"		idle

:is_edoc Comment comment
	*		line_comment	noeat strings
	"@clear"	edoc
	"@docfile"	edoc
	"@headerfle"	edoc
	"@todo"		edoc
	"@TODO"		edoc
	"@type"		edoc
	"@reference"	edoc
	"@see"		edoc
	"@since"	edoc
	"@deprecated"	edoc
	"@hidden"	edoc
	"@private"	edoc
	"@equiv"	edoc
	"@throws"	edoc
	"@author"	edoc
	"@copyright"	edoc
	"@version"	edoc
	"@title"	edoc
	"@spec"		edoc
	"@doc"		edoc
	"@end"		edoc
done
	"A-Za-z@"	is_edoc

:edoc Keyword
	*		line_comment	noeat

:variable Variable
	*		idle		noeat
	"a-zA-Z0-9_"	variable

:record Record
	*		idle		noeat
	"a-z"		rec		noeat
	"'"		qtrec		recolor=-1

:rec Record
	*		idle		noeat
	"a-zA-Z0-9_@"	rec
	"."		recatt		recolor=-1

:qtrec Record
	*		qtrec
	"'"		rec

:recatt Recatt
	*		idle		noeat
	"a-zA-Z_"	recatt
	"#"		record

# STRINGS
:string String string
	*		string
	"\\"		string_escape	recolor=-1
	"~"		string_		mark
	"\""		idle

:string_escape String_esc string
	*		string

:string_ String string
	*		string_mod	noeat
	"0-9"		string_f
	"t"		string_mod
:string_f String string
	*		string_mod	noeat          
	"0-9*"		string_f
	"."		string_p

:string_p String string
	*		string_mod	noeat
	"0-9*"		string_p

:string_mod String string
	*		string
	"cfegswpWPBX#bx+ni"	string_modifier recolormark noeat

:string_modifier String_mod string
	*		string
# END STRINGS
:decimal Number
	*		idle		noeat
	"0-9"		decimal
	"."		float
	"#"		base

:float Number
	*		idle		noeat
	"0-9"		float
	"Ee"		eintval

:base Number
	*		idle		noeat
	"0-9A-Fa-f"	base

:eintval Number
	*		eint		noeat
	"-"		eint

:eint Number
	*		idle		noeat
	"0-9"		eint

:brace Brace
	*		idle		noeat

:brack Bracket
	*		idle		noeat

:maybe_attribute Idle
	*		idle		noeat strings
	"-module"	attribute
	"-export"	attribute
	"-import"	attribute
	"-compile"	attribute
	"-ifdef"	attribute
	"-endif"	attribute
	"-define"	attribute
	"-file"		attribute
	"-type"		attribute
	"-opaque"	attribute
	"-export_type"	attribute
	"-spec"		attribute
	"-author"	attribute
	"-copyright"	attribute
	"-include"	attribute
	"-include_lib"	attribute
	"-vsn"		attribute
	"-behaviour"	attribute
	"-behavior"	attribute
	"-record"	attribute
	"-on_load"	attribute
	"-connect_all"	attribute
	"-hidden"	attribute
	"-name"		attribute
	"-setcookie"	attribute
	"-sname"	attribute
	"-mode"		attribute
done
	"a-z_"		maybe_attribute

:attribute Attribute
	*		idle		noeat

:no_atom Idle
	*		idle		noeat
	" "		no_atom
	"("		function	recolormark noeat
	":"		module		recolormark noeat
	"/"		funarity

:module Module
	*		idle		noeat

:function Fun
	*		idle		noeat

:funarity Fun
	*		function	recolormark noeat
	"0-9"		idle

:kw Keyword
	*		idle		noeat

:guard Guard
	*		idle		noeat

:rterr Guard
	*		idle		noeat

:bif Bif
	*		idle		recolormark noeat
	" "		bif
	"("		idle		noeat

:type Type
	*		idle		recolormark noeat
	"("		idle		noeat
	":"		module		recolormark noeat

:quoted_atom Idle
	*		quoted_atom
	"'"		no_atom

# This implementation is sort of funky.
# Most of the cases it's correct but some highlighting may be wrong.
# Should be looked over...
:atom Ident
	*		no_atom		noeat strings
	"after"		kw
	"and"		kw
	"andalso"	kw
	"band"		kw
	"begin"		kw
	"bnot"		kw
	"bor"		kw
	"bsl"		kw
	"bsr"		kw
	"bxor"		kw
	"case"		kw
	"catch"		kw
	"cond"		kw
	"div"		kw
	"end"		kw
	"fun"		kw
	"if"		kw
	"let"		kw
	"not"		kw
	"of"		kw
	"or"		kw
	"orelse"	kw
	"query"		kw
	"receive"	kw
	"rem"		kw
	"try"		kw
	"when"		kw
	"xor"		kw
	"any"		type
	"none"		type
	"pid"		type
	"port"		type
	"reference"	type
	"float"		type
	"atom"		type
	"binary"	type
	"integer"	type
	"list"		type
	"improper_list"	type
	"maybe_improper_list"	type
	"tuple"		type
	"term"		type
	"boolean"	type
	"byte"		type
	"char"		type
	"non_neg_integer"	type
	"pos_integer"	type
	"neg_integer"	type
	"number"	type
	"string"	type
	"nonempty_string"	type
	"iolist"	type
	"module"	type
	"mfa"		type
	#interfears with the bif "node"		type
	"timeout"	type
	"no_return"	type
	"badarg"	rterr
	"badarith"	rterr
	"badmatch"	rterr
	"function_clause"	rterr
	"case_clause"	rterr
	"if_clause"	rterr
	"try_clause"	rterr
	"undef"		rterr
	"badfun"	rterr
	"badarity"	rterr
	"timeout_value"	rterr
	"noproc"	rterr
	"nocatch"	rterr
	"system_limit"	rterr
	"is_atom"	guard
	"is_binary"	guard
	"is_bitstream"	guard
	"is_boolean"	guard
	"is_float"	guard
	"is_function"	guard
	"is_integer"	guard
	"is_list"	guard
	"is_number"	guard
	"is_pid"	guard
	"is_port"	guard
	"is_record"	guard
	"is_reference"	guard
	"is_tuple"	guard
	"abs"		bif
	"adler32"	bif
	"adler32_combine"	bif
	"append_element"	bif
	"apply"		bif
	"atom_to_binary"	bif
	"atom_to_list"	bif
	"binary_part"	bif
	"binary_to_atom"	bif
	"binary_to_existing_atom"	bif
	"binary_to_list"	bif
	"bitstring_to_list"	bif
	"binary_to_term"	bif
	"bit_size"	bif
	"bump_reductions"	bif
	"byte_size"	bif
	"cancel_timer"	bif
	"check_old_code"	bif
	"check_process_code"	bif
	"crc32"		bif
	"crc32_combine"	bif
	"date"		bif
	"decode_packet"	bif
	"delete_module"	bif
	"demonitor"	bif
	"disconnect_node"	bif
	"display"	bif
	"element"	bif
	"erase"		bif
	"error"		bif
	"exit"		bif
	"external_size"	bif
	"float"		bif
	"float_to_list"	bif
	"fun_info"	bif
	"fun_to_list"	bif
	"function_exported"	bif
	"garbage_collect"	bif
	"get"		bif
	"get_cookie"	bif
	"get_keys"	bif
	"get_stacktrace"	bif
	"group_leader"	bif
	"halt"		bif
	"hash"		bif
	"hd"		bif
	"hibernate"	bif
	"integer_to_list"	bif
	"iolist_to_binary"	bif
	"iolist_size"	bif
	"is_alive"	bif
	"is_builtin"	bif
	"is_process_alive"	bif
	"length"	bif
	"link"		bif
	"list_to_atom"	bif
	"list_to_binary"	bif
	"list_to_bitstring"	bif
	"list_to_existing_atom"	bif
	"list_to_float"	bif
	"list_to_integer"	bif
	"list_to_pid"	bif
	"list_to_tuple"	bif
	"load_module"	bif
	"load_nif"	bif
	"loaded"	bif
	"local_time"	bif
	"local_time_to_universaltime"	bif
	"make_ref"	bif
	"make_tuple"	bif
	"max"		bif
	"md5"		bif
	"md5_final"	bif
	"md5_init"	bif
	"md5_update"	bif
	"memory"	bif
	"min"		bif
	"module_loaded"	bif
	"monitor"	bif
	"monitor_node"	bif
	"nif_error"	bif
	"node"		bif
	"nodes"		bif
	"now"		bif
	"open_port"	bif
	"phash"		bif
	"phash2"	bif
	"pid_to_list"	bif
	"port_close"	bif
	"port_command"	bif
	"port_connect"	bif
	"port_control"	bif
	"port_call"	bif
	"port_info"	bif
	"port_to_list"	bif
	"ports"		bif
	"pre_loaded"	bif
	"process_display"	bif
	"process_flag"	bif
	"process_info"	bif
	"processes"	bif
	"purge_module"	bif
	"put"		bif
	"raise"		bif
	"read_timer"	bif
	"ref_to_list"	bif
	"register"	bif
	"registered"	bif
	"resume_process"	bif
	"round"		bif
	"self"		bif
	"send"		bif
	"send_after"	bif
	"send_nosuspend"	bif
	"set_cookie"	bif
	"setelement"	bif
	"size"		bif
	"spawn"		bif
	"spawn_link"	bif
	"spawn_monitor"	bif
	"spawn_opt"	bif
	"split_binary"	bif
	"start_timer"	bif
	"statistics"	bif
	"suspended_process"	bif
	"system_flag"	bif
	"system_info"	bif
	"system_monitor"	bif
	"system_profile"	bif
	"term_to_binary"	bif
	"throw"		bif
	"time"		bif
	"tl"		bif
	"trace"		bif
	"trace_deliviered"	bif
	"trace_info"	bif
	"trace_pattern"	bif
	"trunc"		bif
	"tuple_size"	bif
	"tuple_to_list"	bif
	"universaltime"		bif
	"universaltime_to_localtime"	bif
	"unlink"	bif
	"unregister"	bif
	"whereis"	bif
	"yield"		bif
done 
	"a-zA-Z0-9_@"	atom