SOURCES: lighttpd.vim - improvements and addons by Fred Peeterman <fred#pee...

glen glen at pld-linux.org
Wed Jan 28 12:07:29 CET 2009


Author: glen                         Date: Wed Jan 28 11:07:29 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- improvements and addons by Fred Peeterman <fred#peeterman.de>

---- Files affected:
SOURCES:
   lighttpd.vim (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/lighttpd.vim
diff -u SOURCES/lighttpd.vim:1.6 SOURCES/lighttpd.vim:1.7
--- SOURCES/lighttpd.vim:1.6	Sun Jan 18 22:38:47 2009
+++ SOURCES/lighttpd.vim	Wed Jan 28 12:07:22 2009
@@ -1,5 +1,6 @@
 " Vim syntax file
 " Language:     lighttpd config, http://www.lighttpd.net/
+" URL:          http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lighttpd.vim
 " Version Info: $Revision$
 " Maintainer:   Elan Ruusamae <glen at pld-linux.org>
 " Last Change:  $Date$ UTC
@@ -21,13 +22,15 @@
 endif
 
 " define the lighttpd syntax
-syn match   lighttpdDelimiter   "[()\[\];,]"
-syn match   lighttpdOperator    "[=|&\*\+\<\>]"
+" see also http://redmine.lighttpd.net/wiki/lighttpd/Docs:Configuration
+syn match   lighttpdDelimiter   "[{}()\[\];,]"
+syn match   lighttpdOperator    "[~!=|&\*\+\<\>]"
 syn match   lighttpdComment     "\(#.*\)"
 syn match   lighttpdNumber      "[-+]\=\<\d\+\(\.\d*\)\=\>"
 syn region  lighttpdString      start=+"+ skip=+\\"+ end=+"+
 syn keyword lighttpdConditional else
-syn match   lighttpdServerVar   /\$\(HTTP\|SERVER\)\>/
+syn match   lighttpdServerVar   /\$\(HTTP\|SERVER\|PHYSICAL\)\>/
+syn match   lighttpdFunction    /"\(cookie\|host\|useragent\|referer\|url\|querystring\|remoteip\|scheme\|socket\|path\|existing-path\)"/
 
 " internal keywords
 syn keyword lighttpdKeyword   include include_shell
@@ -204,8 +207,9 @@
   HiLink lighttpdOperator    Operator
   HiLink lighttpdComment     Comment
   HiLink lighttpdNumber      Number
+  HiLink lighttpdFunction    Function
   HiLink lighttpdKeyword     Keyword
-  HiLink lighttpdOption      Function
+  HiLink lighttpdOption      Option
   HiLink lighttpdSpecial     Special
   HiLink lighttpdConditional Conditional
   HiLink lighttpdString      String
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lighttpd.vim?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list