You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@tcl.apache.org by mx...@apache.org on 2013/09/20 16:59:16 UTC

svn commit: r1525024 - in /tcl/rivet/trunk: ChangeLog contrib/tcl.vim

Author: mxmanghi
Date: Fri Sep 20 14:59:16 2013
New Revision: 1525024

URL: http://svn.apache.org/r1525024
Log:
    * contrib/tcl.vim: Vim's syntax highlighting extension including also
    rivet's command set (experimental)


Added:
    tcl/rivet/trunk/contrib/tcl.vim
Modified:
    tcl/rivet/trunk/ChangeLog

Modified: tcl/rivet/trunk/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/ChangeLog?rev=1525024&r1=1525023&r2=1525024&view=diff
==============================================================================
--- tcl/rivet/trunk/ChangeLog (original)
+++ tcl/rivet/trunk/ChangeLog Fri Sep 20 14:59:16 2013
@@ -1,3 +1,7 @@
+2013-09-20 Massimo Manghi <mx...@apache.org>
+    * contrib/tcl.vim: Vim's syntax highlighting extension including also
+    rivet's command set (experimental)
+
 2013-09-18 Massimo Manghi <mx...@apache.org>
     * rivet/init.tcl: removed paranoid debugging log messages
 

Added: tcl/rivet/trunk/contrib/tcl.vim
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/contrib/tcl.vim?rev=1525024&view=auto
==============================================================================
--- tcl/rivet/trunk/contrib/tcl.vim (added)
+++ tcl/rivet/trunk/contrib/tcl.vim Fri Sep 20 14:59:16 2013
@@ -0,0 +1,35 @@
+" syntax highlighting extention to include also the Rivet command set and various arguments accepted
+" Language: Tcl
+" Maintainer: Massimo Manghi <mx...@apache.org>
+" Filenames: *.tcl
+"
+" Place this file in ~/.vim/after/syntax to get it loaded after the system wide vim syntax highlighting
+
+syn keyword rivetArguments      contained get list exists number all
+syn keyword rivetCommand        abort_code abort_page apache_log_error apache_table clock_to_rfc850_gmt
+syn keyword rivetCommand        cookie debug env escape_sgml_chars escape_string escape_shell_command
+syn keyword rivetCommand        headers html http_accept import_keyvalue_pairs include inspect
+syn keyword rivetCommand        lempty lmatch load_cookies load_env load_headers load_response makeurl
+syn keyword rivetCommand        no_body parray parse raw_post read_file unescape_string upload 
+syn keyword rivetCommand        var_qs var_post var wrap wrapline
+syn match   rivetNamespace      "::rivet::"
+
+if version >= 508 || !exists("did_tcl_syntax_inits")
+  if version < 508
+    let did_tcl_syntax_inits = 1
+    command -nargs=+ HiLink hi link <args>
+  else
+    command -nargs=+ HiLink hi def link <args>
+  endif
+
+  HiLink rivetCommand       Statement
+  HiLink rivetNamespace     Special
+  HiLink rivetArguments     Special
+
+  delcommand HiLink
+endif
+let b:current_syntax = "tcl"
+
+"highlight rivetCommand      ctermfg=Green guifg=Green
+"highlight rivetCndRef       ctermfg=Green guifg=Green
+



---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: site-cvs-help@tcl.apache.org