~ubuntu-branches/ubuntu/trusty/libapache2-mod-rivet/trusty

« back to all changes in this revision

Viewing changes to contrib/tcl.vim

  • Committer: Package Import Robot
  • Author(s): Massimo Manghi
  • Date: 2013-10-02 11:44:17 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20131002114417-aimbnyf22r39iv39
Tags: 2.1.3-1
* New upstream code 2.1.3 
* Removed package dh-apache2 from Build-Depends
* Undone patch removing distclean target from doc/Makefile.am

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
" Syntax highlighting extention to include also the Rivet command set and various arguments accepted
 
2
" Language: Tcl
 
3
" Maintainer: Massimo Manghi <mxmanghi@apache.org>
 
4
" Filenames: *.tcl
 
5
"
 
6
" Place this file in ~/.vim/after/syntax to have it loaded after
 
7
" the system wide vim syntax highlighting gets loaded
 
8
"
 
9
 
 
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::"
 
20
 
 
21
if version >= 508 || !exists("did_tcl_syntax_inits")
 
22
  if version < 508
 
23
    let did_tcl_syntax_inits = 1
 
24
    command -nargs=+ HiLink hi link <args>
 
25
  else
 
26
    command -nargs=+ HiLink hi def link <args>
 
27
  endif
 
28
 
 
29
  HiLink rivetCommand       Statement
 
30
  HiLink rivetArguments     Special
 
31
  highlight rivetNamespace  ctermfg=White guifg=Yellow guibg=Red
 
32
 
 
33
  delcommand HiLink
 
34
endif
 
35
let b:current_syntax = "tcl"
 
36
 
 
37
"highlight rivetCommand      ctermfg=Green guifg=Green
 
38
"highlight rivetCndRef       ctermfg=Green guifg=Green
 
39