1
" Syntax highlighting extention to include also the Rivet command set and various arguments accepted
3
" Maintainer: Massimo Manghi <mxmanghi@apache.org>
6
" Place this file in ~/.vim/after/syntax to have it loaded after
7
" the system wide vim syntax highlighting gets loaded
10
syn keyword rivetArguments get list exists number all set exists unset names
11
syn keyword rivetArguments array_get clear redirect add type numeric channel
12
syn keyword rivetArguments save data size type filename
13
syn keyword rivetCommand abort_code abort_page apache_log_error apache_table clock_to_rfc850_gmt
14
syn keyword rivetCommand cookie debug env escape_sgml_chars escape_string escape_shell_command
15
syn keyword rivetCommand headers html http_accept import_keyvalue_pairs include inspect
16
syn keyword rivetCommand lempty lmatch load_cookies load_env load_headers load_response makeurl
17
syn keyword rivetCommand no_body parray parse raw_post read_file unescape_string upload
18
syn keyword rivetCommand var_qs var_post var wrap wrapline
19
syn match rivetNamespace "::rivet::"
21
if version >= 508 || !exists("did_tcl_syntax_inits")
23
let did_tcl_syntax_inits = 1
24
command -nargs=+ HiLink hi link <args>
26
command -nargs=+ HiLink hi def link <args>
29
HiLink rivetCommand Statement
30
HiLink rivetArguments Special
31
highlight rivetNamespace ctermfg=White guifg=Yellow guibg=Red
35
let b:current_syntax = "tcl"
37
"highlight rivetCommand ctermfg=Green guifg=Green
38
"highlight rivetCndRef ctermfg=Green guifg=Green