Commits

Audrius Kažukauskas committed 6ca1ac6

Upgrade to httplog.vim 0.3 plus a couple of improvements.

  • Participants
  • Parent commits a3f0157

Comments (0)

Files changed (1)

File syntax/httplog.vim

 
 syn match httplogIP	/\v^[[:xdigit:].:]+/ contains=httplogLocal,httplogLAN
 syn match httplogTime	/\v\s\zs\[[^]]+\]\ze\s/
-syn match httplogPage	/\v\s\zs"(GET|POST|HEAD|PUT|DELETE) [^"]+"\ze\s/
+syn match httplogPage	/\v\s\zs"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE) [^"]+"\ze\s/
 syn match httplogResult	/\v\s\zs[1-4]\d{2}\ze\s%(\d+|-)/
-syn match httplogError	/\v\s\zs5\d{2}\ze\s\d+/
+syn match httplogError	/\v\s\zs5\d{2}\ze\s%(\d+|-)/
 syn match httplogRef	/\v\s\zs"(http[^"]+|-)"\ze\s/
 syn match httplogUA	/\v\s\zs"[^"]+"$/ contains=httplogBrowser
 syn match httplogBrowser	/\<UCWEB\d\@=/
 syn match httplogBrowser	/\v(".*Chrome.*)@<!<Safari>/
-syn match httplogBrowser	/\v(".*)@<=<Chrome>(.*Chrome.*")@!/
-syn keyword httplogBrowser	Firefox MSIE Konqueror ChromePlus Opera w3m Wget Lynx Epiphany Links TheWorld contained
-syn keyword httplogBrowser	gvfs
-syn keyword httplogBrowser	Googlebot Baiduspider W3C_Validator Jigsaw contained
-syn match httplogLAN	/\v(192\.168\.\d+\.\d+)/ contained
-syn match httplogLocal	/\v(::1|127\.0\.0\.1|192\.168\.1\.11)\s/ contained
+syn match httplogBrowser	/\v(".*%(Chrom|Google Web Preview).*)@<!<Chrome>(.*Chrome.*")@!/
+syn match httplogBrowser	/\<Feedfetcher-Google\>/
+syn match httplogBrowser	/\<Google Web Preview\>/
+syn keyword httplogBrowser	Firefox MSIE Konqueror Chromium ChromePlus Opera w3m Wget Lynx Epiphany Links TheWorld contained
+syn keyword httplogBrowser	gvfs curl pacman PackageKit contained
+syn keyword httplogBrowser	Googlebot Baiduspider Sosospider W3C_Validator Jigsaw PhantomJS contained
+syn match httplogLAN	/\v^192\.168\.\d+\.\d+/ contained
+syn match httplogLAN	/\v^172\.(1[6-9]|2[0-9]|3[01])\.\d+\.\d+/ contained
+syn match httplogLAN	/\v^10\.\d+\.\d+\.\d+/ contained
+syn match httplogLocal	/^::1|^127\.0\.0\.1\>/ contained
 
 hi link httplogIP	Identifier
 hi link httplogTime	Constant