annotate runtime/syntax/dnsmasq.vim @ 2823:8bd38abda314 v7.3.187

updated for version 7.3.187 Problem: The RISC OS port has obvious errors and is not being maintained. Solution: Remove the RISC OS files and code.
author Bram Moolenaar <bram@vim.org>
date Tue, 10 May 2011 16:41:25 +0200
parents 0877b8d6370e
children c869ff170ddc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: dnsmasq(8) configuration file
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Thilo Six <T.Six@gmx.de>
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Last Change: 2011 Apr 28
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " Credits: This file is a mix of cfg.vim, wget.vim and xf86conf.vim, credits go to:
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " Igor N. Prischepoff
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " Doug Kearns
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 " David Ne\v{c}as
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 "
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 " Options: let dnsmasq_backrgound_light = 1
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 "
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 if version < 600
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 syntax clear
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 elseif exists ("b:current_syntax")
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 finish
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 endif
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 if !exists("b:dnsmasq_backrgound_light")
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 if exists("dnsmasq_backrgound_light")
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 let b:dnsmasq_backrgound_light = dnsmasq_backrgound_light
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 else
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 let b:dnsmasq_backrgound_light = 0
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 endif
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 endif
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 " case on
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 syn case match
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 "Parameters
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 syn match DnsmasqParams "^.\{-}="me=e-1 contains=DnsmasqComment
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 "... and their values (don't want to highlight '=' sign)
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 syn match DnsmasqValues "=.*"hs=s+1 contains=DnsmasqComment,DnsmasqSpecial
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 "...because we do it here.
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 syn match DnsmasqEq display '=\|@\|/\|,' nextgroup=DnsmasqValues
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 syn match DnsmasqSpecial "#"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 " String
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 syn match DnsmasqString "\".*\""
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 syn match DnsmasqString "'.*'"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 " Comments
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 syn match DnsmasqComment "^#.*$" contains=DnsmasqTodo
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 syn match DnsmasqComment "[ \t]#.*$" contains=DnsmasqTodo
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 syn keyword DnsmasqTodo FIXME TODO XXX NOT contained
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 syn match DnsmasqKeyword "^\s*add-mac\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 syn match DnsmasqKeyword "^\s*all-servers\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 syn match DnsmasqKeyword "^\s*bind-interfaces\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 syn match DnsmasqKeyword "^\s*bogus-priv\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 syn match DnsmasqKeyword "^\s*clear-on-reload\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 syn match DnsmasqKeyword "^\s*dhcp-authoritative\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 syn match DnsmasqKeyword "^\s*dhcp-fqdn\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 syn match DnsmasqKeyword "^\s*dhcp-no-override\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 syn match DnsmasqKeyword "^\s*dhcp-scriptuser\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 syn match DnsmasqKeyword "^\s*domain-needed\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 syn match DnsmasqKeyword "^\s*enable-dbus\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 syn match DnsmasqKeyword "^\s*enable-tftp\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 syn match DnsmasqKeyword "^\s*expand-hosts\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 syn match DnsmasqKeyword "^\s*filterwin2k\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 syn match DnsmasqKeyword "^\s*keep-in-foreground\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 syn match DnsmasqKeyword "^\s*leasefile-ro\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 syn match DnsmasqKeyword "^\s*localise-queries\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 syn match DnsmasqKeyword "^\s*localmx\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 syn match DnsmasqKeyword "^\s*log-dhcp\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72 syn match DnsmasqKeyword "^\s*log-queries\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 syn match DnsmasqKeyword "^\s*no-daemon\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74 syn match DnsmasqKeyword "^\s*no-hosts\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 syn match DnsmasqKeyword "^\s*no-negcache\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76 syn match DnsmasqKeyword "^\s*no-ping\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77 syn match DnsmasqKeyword "^\s*no-poll\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 syn match DnsmasqKeyword "^\s*no-resolv\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79 syn match DnsmasqKeyword "^\s*proxy-dnssec\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 syn match DnsmasqKeyword "^\s*read-ethers\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 syn match DnsmasqKeyword "^\s*rebind-localhost-ok\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82 syn match DnsmasqKeyword "^\s*selfmx\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83 syn match DnsmasqKeyword "^\s*stop-dns-rebind\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 syn match DnsmasqKeyword "^\s*strict-order\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 syn match DnsmasqKeyword "^\s*tftp-no-blocksize\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 syn match DnsmasqKeyword "^\s*tftp-secure\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 syn match DnsmasqKeyword "^\s*tftp-unique-root\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90 if b:dnsmasq_backrgound_light == 1
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 hi def DnsmasqParams ctermfg=DarkGreen guifg=DarkGreen
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92 hi def DnsmasqKeyword ctermfg=DarkGreen guifg=DarkGreen
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 else
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94 hi def link DnsmasqKeyword Keyword
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 hi def link DnsmasqParams Keyword
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 endif
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97 hi def link DnsmasqTodo Todo
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 hi def link DnsmasqSpecial Constant
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99 hi def link DnsmasqComment Comment
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100 hi def link DnsmasqString Constant
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 hi def link DnsmasqValues Normal
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102 hi def link DnsmasqEq Constant
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104 let b:current_syntax = "dnsmasq"