annotate runtime/syntax/privoxy.vim @ 22446:0cdb03e73ce9 v8.2.1771

patch 8.2.1771: synIDattr() cannot get the value of ctermul Commit: https://github.com/vim/vim/commit/391c36279415d0b8c5dba1ba11b668add04be963 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 29 20:59:17 2020 +0200 patch 8.2.1771: synIDattr() cannot get the value of ctermul Problem: synIDattr() cannot get the value of ctermul. Solution: Add the "ul" value for "what". (closes https://github.com/vim/vim/issues/7037)
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Sep 2020 21:00:04 +0200
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