This file is indexed.

/usr/share/vim/addons/plugin/cylc.vim is in cylc 7.6.0-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
" Syntax highlighting for cylc suite.rc files.
" Author: Hilary Oliver, 2011-2014
" see :help syntax
"______________________________________________________________________
"
"INSTRUCTIONS FOR USE
"
" 1) Put this file in $HOME/.vim/syntax/ directory.
"
" 2) Put the following in $HOME/.vimrc for file type recognition
"    (without the leading "| characters):
"
"|augroup filetype
"|  au! BufRead,BufnewFile *suite*.rc   set filetype=cylc
"|augroup END
"
" (the wildcard in '*suite.rc' handles temporary files generated
"  by the 'cylc view' command, e.g. /tmp/foo.bar.QYrZ0q.suite.rc)

" 3) If you want to open files with syntax folds initially open, then
"    also add the following line to your $HOME/.vimrc file:
"
"|if has("folding") | set foldlevelstart=99 | endif
"
" 4) Cylc syntax is linked to standard vim highlighting groups below (e.g.
" comments: 'hi def link cylcComment Comment'). These can be customized in
"  your .vimrc file for consistent highlighting across file types, e.g.:
"
"|hi Statement guifg=#22a8e3 gui=bold 
"|hi Normal guifg=#9096a4
"|hi Comment guifg=#ff6900
"|hi Type guifg=#28d45b gui=bold"
"
"______________________________________________________________________

" syncing from start of file is best, but may be slow for large files:
syn sync fromstart

set foldmethod=syntax
syn region myFold start='\_^ *\[\[\[\(\w\| \)' end='\ze\_^ *\[\{1,3}\(\w\| \)' transparent fold
syn region myFold start='\_^ *\[\[\(\w\| \)' end='\ze\_^ *\[\{1,2}\(\w\| \)' transparent fold
syn region myFold start='\_^ *\[\(\w\| \)' end='\_^ *\ze\[\(\w\| \)' transparent fold

" note contained items are only recognized inside containing items
syn match lineCon "\\$"
syn match badLineCon "\\ \+$"
syn match trailingWS " \+\(\n\)\@="

syn region jinja2 start='{%' end='%}'
syn region jinja2 start='{{' end='}}'
syn region jinja2 start='{#' end='#}'

syn region cylcSection start='\[' end='\]' contains=trailingWS,lineCon,badLineCon,jinja2
syn region cylcSection start='\[\[' end='\]\]' contains=trailingWS,lineCon,badLineCon,jinja2
syn region cylcSection start='\[\[\[' end='\]\]\]' contains=trailingWS,lineCon,badLineCon,jinja2

syn match cylcItem ' *\zs\(\w\| \|\-\)*\> *=\@='
syn match cylcEquals '='

syn match trigger /=>/ contained
syn match output /:[a-zA-Z0-9-]*\>/ contained
syn match suicide /\!\w\+/ contained
syn match offset /\[.\{-}\]/ contained

"file inclusion:
syn match cylcInclude '%include *\(\w\|\-\|\/\|\.\)*'
"inlined file markers:
syn match cylcInclude '\_^!\{1,}'
syn match cylcInclude '.*\(START INLINED\|END INLINED\).*'

syn match cylcToDo /[Tt][Oo][Dd][Oo]/

syn match cylcComment /#.*/ contains=trailingWS,cylcToDo,lineCon,badLineCon,jinja2

syn region cylcString start=+'+ skip=+\\'+ end=+'+ contains=trailingWS,lineCon,badLineCon,jinja2,cylcToDo
syn region cylcString start=+"+ skip=+\\"+ end=+"+ contains=trailingWS,lineCon,badLineCon,jinja2,cylcToDo
syn region cylcString start=+=\@<= *"""+ end=+"""+ contains=trailingWS,lineCon,badLineCon,jinja2,cylcComment,trigger,output,suicide,offset,cylcToDo
syn region cylcString start=+=\@<= *'''+ end=+'''+ contains=trailingWS,lineCon,badLineCon,jinja2,cylcComment,trigger,output,suicide,offset,cylcToDo

"de-emphasize strings as quoting is irrelevant in cylc
hi def link cylcString Normal

hi def link cylcSection Statement
hi def link cylcItem Type
hi def link cylcComment Comment

hi def link lineCon Constant
hi def link badLineCon Error
hi def link trailingWS Underlined

hi def link cylcToDo Todo
hi def link cylcInclude MatchParen
hi def link jinja2 CursorColumn
hi def link cylcEquals LineNr
hi def link output Special
hi def link suicide Special
hi def link offset Special
hi def link trigger Constant