/usr/share/vim/addons/syntax/confluence.vim is in confluence 0.10.6-7build4.
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 | " Vim syntax file
" Copyright (c) 2003, 2004 Tom Hawkins
" Language: Confluence
" Maintainer: Tom Hawkins
" Last Change:
" URL: http://www.launchbird.com/misc/cf.vim
if exists("b:current_syntax")
finish
endif
" Special
syn match cfSpecial "_"
" Identifiers
syn match cfIdentifier /\<\(\u\|\l\)\w*\>/
" Errors
syn match cfBraceErr "}"
syn match cfBrackErr "\]"
syn match cfParenErr ")"
syn match cfCommentErr "\*)"
" Some convenient clusters
syn cluster cfAllErrs contains=cfBraceErr,cfBrackErr,cfParenErr,cfCommentErr
syn cluster cfContained contains=cfTodo
" Enclosing delimiters
syn region cfEncl transparent matchgroup=cfKeyword start="(" matchgroup=cfKeyword end=")" contains=ALLBUT,@cfContained,cfParenErr
syn region cfEncl transparent matchgroup=cfKeyword start="{" matchgroup=cfKeyword end="}" contains=ALLBUT,@cfContained,cfBraceErr
syn region cfEncl transparent matchgroup=cfKeyword start="\[" matchgroup=cfKeyword end="\]" contains=ALLBUT,@cfContained,cfBrackErr
" Comments
syn region cfComment start="(\*" end="\*)" contains=cfComment,cfTodo
syn region cfDocComment start="(#" end="#)" contains=cfDocComment,cfTodo
syn keyword cfTodo contained TODO FIXME XXX
syn keyword cfKeyword comp prim if ef else end with is
syn keyword cfKeyword local component
syn keyword cfKeyword environment import rootenvironment fileloc
syn keyword cfBoolean true false
syn match cfOperator "'"
syn match cfOperator "\."
syn match cfOperator "-"
syn match cfOperator "'-'"
syn region cfString start=+"+ skip=+\\\\\|\\"+ end=+"+
syn match cfNil "\[]"
syn match cfEmpty "()"
syn match cfInteger "\<\=\-\?\d\+\>"
syn match cfInteger "\<[0|1]x\x\+\>"
syn match cfInteger "\<[0|1]b[0|1]\+\>"
syn match cfInteger "@\S"
syn match cfFloat "\<\=\-\?\d\+\.\d*\([eE][\-]\=\d\+\)*\>"
syn match cfConst "'\([0|1]*\|[0|1]x\x*\|[0|1]b[0|1]*\)'"
syn match cfSpecial "\$"
syn match cfSpecial "="
syn match cfSpecial ":"
syn match cfOperator "`!`"
syn match cfOperator "`X`"
syn match cfOperator "`G`"
syn match cfOperator "`F`"
syn match cfOperator "`&&`"
syn match cfOperator "`^^`"
syn match cfOperator "`||`"
syn match cfOperator "`<->`"
syn match cfOperator "`->`"
syn match cfOperator "`U`"
syn match cfOperator "`W`"
syn match cfOperator "`B`"
syn match cfOperator "`V`"
syn keyword cfOperator then
syn match cfOperator "'then'"
syn match cfOperator "'else'"
syn match cfOperator "||"
syn match cfOperator "&&"
syn match cfOperator "|"
syn match cfOperator "'|'"
syn match cfOperator "\^"
syn match cfOperator "'\^'"
syn match cfOperator "&"
syn match cfOperator "'&'"
syn match cfOperator "!"
syn match cfOperator "=="
syn match cfOperator "!="
syn match cfOperator "'=='"
syn match cfOperator "'!='"
syn match cfOperator "++"
syn match cfOperator "'++'"
syn match cfOperator "::"
syn match cfOperator "#"
syn match cfOperator "'#'"
syn match cfOperator "<"
syn match cfOperator ">"
syn match cfOperator "<="
syn match cfOperator ">="
syn match cfOperator "'<'"
syn match cfOperator "'>'"
syn match cfOperator "'<='"
syn match cfOperator "'>='"
syn match cfOperator "'<+'"
syn match cfOperator "'>+'"
syn match cfOperator "'<=+'"
syn match cfOperator "'>=+'"
syn match cfOperator "<<"
syn match cfOperator ">>"
syn match cfOperator "'<<'"
syn match cfOperator "'>>'"
syn match cfOperator "'>>+'"
syn match cfOperator "+"
syn match cfOperator "'+'"
syn match cfOperator "\*"
syn match cfOperator "/"
syn match cfOperator "%"
syn match cfOperator "'\*'"
syn match cfOperator "'/'"
syn match cfOperator "'%'"
syn match cfOperator "'\*+'"
syn match cfOperator "\*\*"
syn match cfOperator "'\*\*'"
syn match cfOperator "\~"
syn keyword cfOperator head
syn keyword cfOperator tail
syn keyword cfOperator length
syn keyword cfOperator width
syn match cfOperator "'\~'"
syn match cfOperator "'msb'"
syn match cfOperator "'msbs'"
syn match cfOperator "'lsb'"
syn match cfOperator "'lsbs'"
syn match cfOperator "(\*)"
syn match cfOperator "(\*\*)"
syn match cfOperator "(#)"
syn match cfSpecial "<-"
syn match cfSpecial "->"
" Synchronization
syn sync minlines=50
syn sync maxlines=500
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_cf_syntax_inits")
if version < 508
let did_cf_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
" HiLink cfIdentifier Identifier
HiLink cfBraceErr Error
HiLink cfBrackErr Error
HiLink cfParenErr Error
HiLink cfCommentErr Error
HiLink cfComment Comment
HiLink cfDocComment Comment
HiLink cfKeyword Keyword
HiLink cfOperator Keyword
HiLink cfNil Constant
HiLink cfEmpty Constant
HiLink cfBoolean Boolean
HiLink cfInteger Number
HiLink cfFloat Float
HiLink cfConst Constant
HiLink cfString String
HiLink cfTodo Todo
HiLink cfEncl Keyword
HiLink cfSpecial Type
HiLink cfSeperator Special
delcommand HiLink
endif
let b:current_syntax = "confluence"
|