Ticket #4384: privoxy.syntax

File privoxy.syntax, 5.0 KB (added by Bogdan107, 20 months ago)

Syntax for Privoxy actions files

Line 
1# Privoxy action file syntax highlighting
2# Version: 2022-07-02
3# Author: Bogdan Pylypenko <bogdan.pylypenko107@gmail.com>
4# This definition is under the GNU GPL version 3.0.
5
6context default
7
8context { }\n magenta
9    keyword \\ brown
10
11    keyword \+add-header yellow
12    keyword \+block yellow
13    keyword \+change-x-forwarded-for yellow
14    keyword \+client-header-filter yellow
15    keyword \+client-body-filter yellow
16    keyword \+client-header-tagger yellow
17    keyword \+content-type-overwrite yellow
18    keyword \+crunch-client-header yellow
19    keyword \+crunch-if-none-match yellow
20    keyword \+crunch-incoming-cookies yellow
21    keyword \+crunch-server-header yellow
22    keyword \+crunch-outgoing-cookies yellow
23    keyword \+deanimate-gifs yellow
24    keyword \+delay-response yellow
25    keyword \+downgrade-http-version yellow
26    keyword \+external-filter yellow
27    keyword \+fast-redirects yellow
28    keyword \+filter yellow
29    keyword \+force-text-mode yellow
30    keyword \+forward-override yellow
31    keyword \+handle-as-empty-document yellow
32    keyword \+handle-as-image yellow
33    keyword \+hide-accept-language yellow
34    keyword \+hide-content-disposition yellow
35    keyword \+hide-if-modified-since yellow
36    keyword \+hide-from-header yellow
37    keyword \+hide-referrer yellow
38    keyword \+hide-user-agent yellow
39    keyword \+https-inspection yellow
40    keyword \+ignore-certificate-errors yellow
41    keyword \+limit-connect yellow
42    keyword \+limit-cookie-lifetime yellow
43    keyword \+prevent-compression yellow
44    keyword \+overwrite-last-modified yellow
45    keyword \+redirect yellow
46    keyword \+server-header-filter yellow
47    keyword \+server-header-tagger yellow
48    keyword \+suppress-tag yellow
49    keyword \+session-cookies-only yellow
50    keyword \+set-image-blocker yellow
51
52    keyword \-add-header green
53    keyword \-block green
54    keyword \-change-x-forwarded-for green
55    keyword \-client-header-filter green
56    keyword \-client-body-filter green
57    keyword \-client-header-tagger green
58    keyword \-content-type-overwrite green
59    keyword \-crunch-client-header green
60    keyword \-crunch-if-none-match green
61    keyword \-crunch-incoming-cookies green
62    keyword \-crunch-server-header green
63    keyword \-crunch-outgoing-cookies green
64    keyword \-deanimate-gifs green
65    keyword \-delay-response green
66    keyword \-downgrade-http-version green
67    keyword \-external-filter green
68    keyword \-fast-redirects green
69    keyword \-filter green
70    keyword \-force-text-mode green
71    keyword \-forward-override green
72    keyword \-handle-as-empty-document green
73    keyword \-handle-as-image green
74    keyword \-hide-accept-language green
75    keyword \-hide-content-disposition green
76    keyword \-hide-if-modified-since green
77    keyword \-hide-from-header green
78    keyword \-hide-referrer green
79    keyword \-hide-user-agent green
80    keyword \-https-inspection green
81    keyword \-ignore-certificate-errors green
82    keyword \-limit-connect green
83    keyword \-limit-cookie-lifetime green
84    keyword \-prevent-compression green
85    keyword \-overwrite-last-modified green
86    keyword \-redirect green
87    keyword \-server-header-filter green
88    keyword \-server-header-tagger green
89    keyword \-suppress-tag green
90    keyword \-session-cookies-only green
91    keyword \-set-image-blocker green
92
93    keyword block cyan
94    keyword add cyan
95    keyword last cyan
96    keyword first  cyan
97    keyword simple-check cyan
98    keyword check-decoded-url cyan
99    keyword block cyan
100    keyword forward-socks4a cyan
101    keyword forward-socks5 cyan
102    keyword forward-webserver cyan
103    keyword forward cyan
104    keyword conditional-block cyan
105    keyword conditional-forge cyan
106    keyword forge cyan
107    keyword reset-to-request-time cyan
108    keyword randomize cyan
109
110    # 8.5.18 + 9.2
111    keyword js-annoyances  cyan
112    keyword js-events cyan
113    keyword html-annoyances cyan
114    keyword content-cookies cyan
115    keyword refresh-tags cyan
116    keyword unsolicited-popups cyan
117    keyword all-popups cyan
118    keyword img-reorder cyan
119    keyword banners-by-size cyan
120    keyword banners-by-link cyan
121    keyword webbugs cyan
122    keyword tiny-textforms cyan
123    keyword jumping-windows cyan
124    keyword frameset-borders cyan
125    keyword iframes cyan
126    keyword demoronizer cyan
127    keyword shockwave-flash cyan
128    keyword quicktime-kioskmode cyan
129    keyword fun cyan
130    keyword crude-parental cyan
131    keyword ie-exploits cyan
132    keyword site-specifics cyan
133    keyword no-ping cyan
134    keyword github cyan
135    keyword google cyan
136    keyword imdb cyan
137    keyword yahoo cyan
138    keyword msn cyan
139    keyword blogspot cyan
140    keyword sourceforge cyan
141    keyword xml-to-html cyan
142    keyword html-to-xml cyan
143    keyword no-ping cyan
144    keyword hide-tor-exit-notation cyan
145
146# Lines, which ignored by Privoxy, if it starts with "- ":
147context linestart -\s \n gray
148
149# Comments:
150context linestart # \n brown
151    spellcheck
152context linestart \s\[\s\]# \n brown
153    spellcheck
154context linestart /\s \n brown
155    spellcheck