annotate runtime/syntax/privoxy.vim @ 13243:899b19739188

Added tag v8.0.1495 for changeset 5b0faf628a552f66f037fb61574ac46eeeebad94
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2018 18:30:08 +0100
parents e63691e7c504
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
1 " Vim syntax file
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Language: Privoxy actions file
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
4 " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/syntax/privoxy.vim
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
5 " Last Change: 2007 Mar 30
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
6
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
7 " Privoxy 3.0.6
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
8
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
9 if exists("b:current_syntax")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
10 finish
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
11 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
12
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
13 let s:cpo_save = &cpo
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
14 set cpo&vim
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
15
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
16 setlocal iskeyword=@,48-57,_,-
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
17
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
18 syn keyword privoxyTodo contained TODO FIXME XXX NOTE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
19 syn match privoxyComment "#.*" contains=privoxyTodo,@Spell
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
20
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
21 syn region privoxyActionLine matchgroup=privoxyActionLineDelimiter start="^\s*\zs{" end="}\ze\s*$"
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
22 \ contains=privoxyEnabledPrefix,privoxyDisabledPrefix
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
23
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
24 syn match privoxyEnabledPrefix "\%(^\|\s\|{\)\@<=+\l\@=" nextgroup=privoxyAction,privoxyFilterAction contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
25 syn match privoxyDisabledPrefix "\%(^\|\s\|{\)\@<=-\l\@=" nextgroup=privoxyAction,privoxyFilterAction contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
26
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
27 syn match privoxyAction "\%(add-header\|block\|content-type-overwrite\|crunch-client-header\|crunch-if-none-match\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
28 syn match privoxyAction "\%(crunch-incoming-cookies\|crunch-outgoing-cookies\|crunch-server-header\|deanimate-gifs\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
29 syn match privoxyAction "\%(downgrade-http-version\|fast-redirects\|filter-client-headers\|filter-server-headers\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
30 syn match privoxyAction "\%(filter\|force-text-mode\|handle-as-empty-document\|handle-as-image\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
31 syn match privoxyAction "\%(hide-accept-language\|hide-content-disposition\|hide-forwarded-for-headers\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
32 syn match privoxyAction "\%(hide-from-header\|hide-if-modified-since\|hide-referrer\|hide-user-agent\|inspect-jpegs\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
33 syn match privoxyAction "\%(kill-popups\|limit-connect\|overwrite-last-modified\|prevent-compression\|redirect\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
34 syn match privoxyAction "\%(send-vanilla-wafer\|send-wafer\|session-cookies-only\|set-image-blocker\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
35 syn match privoxyAction "\%(treat-forbidden-connects-like-blocks\)\>"
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
36
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
37 syn match privoxyFilterAction "filter{[^}]*}" contained contains=privoxyFilterArg,privoxyActionBraces
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
38 syn match privoxyActionBraces "[{}]" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
39 syn keyword privoxyFilterArg js-annoyances js-events html-annoyances content-cookies refresh-tags unsolicited-popups all-popups
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
40 \ img-reorder banners-by-size banners-by-link webbugs tiny-textforms jumping-windows frameset-borders demoronizer
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
41 \ shockwave-flash quicktime-kioskmode fun crude-parental ie-exploits site-specifics no-ping google yahoo msn blogspot
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
42 \ x-httpd-php-to-html html-to-xml xml-to-html hide-tor-exit-notation contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
43
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
44 " Alternative spellings
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
45 syn match privoxyAction "\%(kill-popup\|hide-referer\|prevent-keeping-cookies\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
46
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
47 " Pre-3.0 compatibility
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
48 syn match privoxyAction "\%(no-cookie-read\|no-cookie-set\|prevent-reading-cookies\|prevent-setting-cookies\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
49 syn match privoxyAction "\%(downgrade\|hide-forwarded\|hide-from\|image\|image-blocker\|no-compression\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
50 syn match privoxyAction "\%(no-cookies-keep\|no-cookies-read\|no-cookies-set\|no-popups\|vanilla-wafer\|wafer\)\>" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
51
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
52 syn match privoxySetting "\<for-privoxy-version\>"
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
53
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
54 syn match privoxyHeader "^\s*\zs{{\%(alias\|settings\)}}\ze\s*$"
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
55
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
56 hi def link privoxyAction Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
57 hi def link privoxyFilterAction Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
58 hi def link privoxyActionLineDelimiter Delimiter
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
59 hi def link privoxyDisabledPrefix SpecialChar
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
60 hi def link privoxyEnabledPrefix SpecialChar
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
61 hi def link privoxyHeader PreProc
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
62 hi def link privoxySetting Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
63 hi def link privoxyFilterArg Constant
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
64
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
65 hi def link privoxyComment Comment
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
66 hi def link privoxyTodo Todo
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
67
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
68 let b:current_syntax = "privoxy"
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
69
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
70 let &cpo = s:cpo_save
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
71 unlet s:cpo_save