annotate runtime/syntax/dnsmasq.vim @ 21528:e0aa9b81f6a9 v8.2.1314

patch 8.2.1314: Vim9: rule for comment after :function is confusing Commit: https://github.com/vim/vim/commit/9898107f54a330c6d9629976250a393169c698ca Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 29 14:40:25 2020 +0200 patch 8.2.1314: Vim9: rule for comment after :function is confusing Problem: Vim9: rule for comment after :function is confusing. Solution: Allow double quoted comment after :function in vim9script. (closes #6556)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jul 2020 14:45:05 +0200
parents 43efa4f5a8ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
1 " Vim syntax file
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
2 " Maintainer: Thilo Six
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
3 " Contact: vim-foo@xk2c-foo.de
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
4 " :3s+-foo++g
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
5 " Description: highlight dnsmasq configuration files
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
6 " File: runtime/syntax/dnsmasq.vim
7176
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
7 " Version: 2.76
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
8 " Last Change: 2015 Sep 27
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
9 " Modeline: vim: ts=8:sw=2:sts=2:
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
10 "
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
11 " License: VIM License
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
12 " Vim is Charityware, see ":help Uganda"
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
13 "
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
14 " Options: You might want to add this to your vimrc:
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
15 "
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
16 " if &background == "dark"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
17 " let dnsmasq_backrgound_light = 0
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
18 " else
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
19 " let dnsmasq_backrgound_light = 1
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
20 " endif
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 "
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7176
diff changeset
23 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7176
diff changeset
24 if exists("b:current_syntax") || &compatible
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 finish
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
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
28 let s:cpo_save = &cpo
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
29 set cpo&vim
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
30
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 if !exists("b:dnsmasq_backrgound_light")
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
32 if exists("dnsmasq_backrgound_light")
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
33 let b:dnsmasq_backrgound_light = dnsmasq_backrgound_light
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
34 else
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
35 let b:dnsmasq_backrgound_light = 0
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
36 endif
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 endif
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 " case on
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 syn case match
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 syn match DnsmasqValues "=.*"hs=s+1 contains=DnsmasqComment,DnsmasqSpecial
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
44 syn match DnsmasqSpecial display '=\|@\|,\|!\|:' nextgroup=DnsmasqValues
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
45 syn match DnsmasqSpecial "#"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
47 syn match DnsmasqIPv4 "\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>" nextgroup=DnsmasqSubnet2,DnsmasqRange
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
48 syn match DnsmasqSubnet "\<255.\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{2\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>"
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
49 syn match DnsmasqSubnet2 contained "\/\([0-4]\?[0-9]\)\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
50 syn match DnsmasqRange contained "-"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
51 syn match DnsmasqMac "\<\(\x\x\?:\)\{5}\x\x\?"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
53 syn match DnsmasqTime "\<\(\d\{1,3}\)[hm]\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 " String
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
56 syn match DnsmasqString "\".*\"" contains=@Spell
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
57 syn match DnsmasqString "'.*'" contains=@Spell
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 " Comments
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
60 syn keyword DnsmasqTodo FIXME TODO XXX NOTE contained
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
61 syn match DnsmasqComment "\(^\|\s\+\)#.*$" contains=@Spell,DnsmasqTodo
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
63 " highlight trailing spaces
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
64 syn match DnsmasqTrailSpace "[ \t]\+$"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
65 syn match DnsmasqTrailSpace "[ \t]\+$" containedin=ALL
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
66
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
67 syn match DnsmasqKeywordSpecial "\<set\>:"me=e-1
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
68 syn match DnsmasqKeywordSpecial "\<tag\>:"me=e-1
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
69 syn match DnsmasqKeywordSpecial ",\<static\>"hs=s+1 contains=DnsmasqSpecial
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
70 syn match DnsmasqKeywordSpecial ",\<infinite\>"hs=s+1 contains=DnsmasqSpecial
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
71 syn match DnsmasqKeywordSpecial "\<encap\>:"me=e-1
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
72 syn match DnsmasqKeywordSpecial "\<interface\>:"me=e-1
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
73 syn match DnsmasqKeywordSpecial "\<vi-encap\>:"me=e-1
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
74 syn match DnsmasqKeywordSpecial "\<net\>:"me=e-1
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
75 syn match DnsmasqKeywordSpecial "\<vendor\>:"me=e-1
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
76 syn match DnsmasqKeywordSpecial "\<opt\>:"me=e-1
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
77 syn match DnsmasqKeywordSpecial "\<option\>:"me=e-1
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
78 syn match DnsmasqKeywordSpecial ",\<ignore\>"hs=s+1 contains=DnsmasqSpecial
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
79 syn match DnsmasqKeywordSpecial "\<id\>:"me=e-1
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
80
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 syn match DnsmasqKeyword "^\s*add-mac\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
82 syn match DnsmasqKeyword "^\s*add-subnet\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
83 syn match DnsmasqKeyword "^\s*addn-hosts\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
84 syn match DnsmasqKeyword "^\s*address\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
85 syn match DnsmasqKeyword "^\s*alias\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 syn match DnsmasqKeyword "^\s*all-servers\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
87 syn match DnsmasqKeyword "^\s*auth-zone\>"
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
88 syn match DnsmasqKeyword "^\s*bind-dynamic\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 syn match DnsmasqKeyword "^\s*bind-interfaces\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
90 syn match DnsmasqKeyword "^\s*bogus-nxdomain\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 syn match DnsmasqKeyword "^\s*bogus-priv\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
92 syn match DnsmasqKeyword "^\s*bootp-dynamic\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
93 syn match DnsmasqKeyword "^\s*bridge-interface\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
94 syn match DnsmasqKeyword "^\s*cache-size\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 syn match DnsmasqKeyword "^\s*clear-on-reload\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
96 syn match DnsmasqKeyword "^\s*cname\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
97 syn match DnsmasqKeyword "^\s*conf-dir\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
98 syn match DnsmasqKeyword "^\s*conf-file\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
99 syn match DnsmasqKeyword "^\s*conntrack\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
100 syn match DnsmasqKeyword "^\s*dhcp-alternate-port\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 syn match DnsmasqKeyword "^\s*dhcp-authoritative\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
102 syn match DnsmasqKeyword "^\s*dhcp-boot\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
103 syn match DnsmasqKeyword "^\s*dhcp-broadcast\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
104 syn match DnsmasqKeyword "^\s*dhcp-circuitid\>"
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
105 syn match DnsmasqKeyword "^\s*dhcp-client-update\>"
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
106 syn match DnsmasqKeyword "^\s*dhcp-duid\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107 syn match DnsmasqKeyword "^\s*dhcp-fqdn\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
108 syn match DnsmasqKeyword "^\s*dhcp-generate-names\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
109 syn match DnsmasqKeyword "^\s*dhcp-host\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
110 syn match DnsmasqKeyword "^\s*dhcp-hostsfile\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
111 syn match DnsmasqKeyword "^\s*dhcp-ignore\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
112 syn match DnsmasqKeyword "^\s*dhcp-ignore-names\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
113 syn match DnsmasqKeyword "^\s*dhcp-lease-max\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
114 syn match DnsmasqKeyword "^\s*dhcp-leasefile\>"
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
115 syn match DnsmasqKeyword "^\s*dhcp-luascript\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
116 syn match DnsmasqKeyword "^\s*dhcp-mac\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
117 syn match DnsmasqKeyword "^\s*dhcp-match\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118 syn match DnsmasqKeyword "^\s*dhcp-no-override\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
119 syn match DnsmasqKeyword "^\s*dhcp-option\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
120 syn match DnsmasqKeyword "^\s*dhcp-option-force\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
121 syn match DnsmasqKeyword "^\s*dhcp-optsfile\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
122 syn match DnsmasqKeyword "^\s*dhcp-proxy\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
123 syn match DnsmasqKeyword "^\s*dhcp-range\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
124 syn match DnsmasqKeyword "^\s*dhcp-relay\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
125 syn match DnsmasqKeyword "^\s*dhcp-remoteid\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
126 syn match DnsmasqKeyword "^\s*dhcp-script\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 syn match DnsmasqKeyword "^\s*dhcp-scriptuser\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
128 syn match DnsmasqKeyword "^\s*dhcp-sequential-ip\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
129 syn match DnsmasqKeyword "^\s*dhcp-subscrid\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
130 syn match DnsmasqKeyword "^\s*dhcp-userclass\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
131 syn match DnsmasqKeyword "^\s*dhcp-vendorclass\>"
7176
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
132 syn match DnsmasqKeyword "^\s*dhcp-hostsdir\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
133 syn match DnsmasqKeyword "^\s*dns-rr\>"
5862
306caa30d83b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 5425
diff changeset
134 syn match DnsmasqKeyword "^\s*dnssec\>"
306caa30d83b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 5425
diff changeset
135 syn match DnsmasqKeyword "^\s*dnssec-check-unsigned\>"
306caa30d83b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 5425
diff changeset
136 syn match DnsmasqKeyword "^\s*dnssec-no-timecheck\>"
7176
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
137 syn match DnsmasqKeyword "^\s*dnssec-timestamp\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
138 syn match DnsmasqKeyword "^\s*dns-forward-max\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
139 syn match DnsmasqKeyword "^\s*domain\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140 syn match DnsmasqKeyword "^\s*domain-needed\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
141 syn match DnsmasqKeyword "^\s*edns-packet-max\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 syn match DnsmasqKeyword "^\s*enable-dbus\>"
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
143 syn match DnsmasqKeyword "^\s*enable-ra\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 syn match DnsmasqKeyword "^\s*enable-tftp\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
145 syn match DnsmasqKeyword "^\s*except-interface\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 syn match DnsmasqKeyword "^\s*expand-hosts\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147 syn match DnsmasqKeyword "^\s*filterwin2k\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
148 syn match DnsmasqKeyword "^\s*group\>"
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
149 syn match DnsmasqKeyword "^\s*host-record\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
150 syn match DnsmasqKeyword "^\s*interface\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
151 syn match DnsmasqKeyword "^\s*interface-name\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
152 syn match DnsmasqKeyword "^\s*ipset\>"
7176
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
153 syn match DnsmasqKeyword "^\s*ignore-address\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154 syn match DnsmasqKeyword "^\s*keep-in-foreground\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155 syn match DnsmasqKeyword "^\s*leasefile-ro\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
156 syn match DnsmasqKeyword "^\s*listen-address\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
157 syn match DnsmasqKeyword "^\s*local\>"
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
158 syn match DnsmasqKeyword "^\s*localmx\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
159 syn match DnsmasqKeyword "^\s*local-ttl\>"
5862
306caa30d83b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 5425
diff changeset
160 syn match DnsmasqKeyword "^\s*local-service\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161 syn match DnsmasqKeyword "^\s*localise-queries\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
162 syn match DnsmasqKeyword "^\s*log-async\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163 syn match DnsmasqKeyword "^\s*log-dhcp\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
164 syn match DnsmasqKeyword "^\s*log-facility\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165 syn match DnsmasqKeyword "^\s*log-queries\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
166 syn match DnsmasqKeyword "^\s*max-ttl\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
167 syn match DnsmasqKeyword "^\s*max-cache-ttl\>"
7176
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
168 syn match DnsmasqKeyword "^\s*min-cache-ttl\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
169 syn match DnsmasqKeyword "^\s*min-port\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
170 syn match DnsmasqKeyword "^\s*mx-host\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
171 syn match DnsmasqKeyword "^\s*mx-target\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
172 syn match DnsmasqKeyword "^\s*naptr-record\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
173 syn match DnsmasqKeyword "^\s*neg-ttl\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174 syn match DnsmasqKeyword "^\s*no-daemon\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
175 syn match DnsmasqKeyword "^\s*no-dhcp-interface\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176 syn match DnsmasqKeyword "^\s*no-hosts\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
177 syn match DnsmasqKeyword "^\s*no-negcache\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
178 syn match DnsmasqKeyword "^\s*no-ping\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
179 syn match DnsmasqKeyword "^\s*no-poll\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
180 syn match DnsmasqKeyword "^\s*no-resolv\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
181 syn match DnsmasqKeyword "^\s*pid-file\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
182 syn match DnsmasqKeyword "^\s*port\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
183 syn match DnsmasqKeyword "^\s*proxy-dnssec\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
184 syn match DnsmasqKeyword "^\s*ptr-record\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
185 syn match DnsmasqKeyword "^\s*pxe-prompt\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
186 syn match DnsmasqKeyword "^\s*pxe-service\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
187 syn match DnsmasqKeyword "^\s*query-port\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
188 syn match DnsmasqKeyword "^\s*quiet-ra\>"
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
189 syn match DnsmasqKeyword "^\s*quiet-dhcp\>"
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
190 syn match DnsmasqKeyword "^\s*quiet-dhcp6\>"
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
191 syn match DnsmasqKeyword "^\s*ra-param\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
192 syn match DnsmasqKeyword "^\s*read-ethers\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
193 syn match DnsmasqKeyword "^\s*rebind-domain-ok\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
194 syn match DnsmasqKeyword "^\s*rebind-localhost-ok\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
195 syn match DnsmasqKeyword "^\s*resolv-file\>"
5862
306caa30d83b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 5425
diff changeset
196 syn match DnsmasqKeyword "^\s*rev-server\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
197 syn match DnsmasqKeyword "^\s*selfmx\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
198 syn match DnsmasqKeyword "^\s*server\>"
5862
306caa30d83b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 5425
diff changeset
199 syn match DnsmasqKeyword "^\s*servers-file\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
200 syn match DnsmasqKeyword "^\s*srv-host\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
201 syn match DnsmasqKeyword "^\s*stop-dns-rebind\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
202 syn match DnsmasqKeyword "^\s*strict-order\>"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3557
diff changeset
203 syn match DnsmasqKeyword "^\s*synth-domain\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
204 syn match DnsmasqKeyword "^\s*tag-if\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
205 syn match DnsmasqKeyword "^\s*test\>"
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
206 syn match DnsmasqKeyword "^\s*tftp-max\>"
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
207 syn match DnsmasqKeyword "^\s*tftp-lowercase\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
208 syn match DnsmasqKeyword "^\s*tftp-no-blocksize\>"
7176
30042ddff503 commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d
Christian Brabandt <cb@256bit.org>
parents: 5862
diff changeset
209 syn match DnsmasqKeyword "^\s*tftp-no-fail\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
210 syn match DnsmasqKeyword "^\s*tftp-port-range\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
211 syn match DnsmasqKeyword "^\s*tftp-root\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
212 syn match DnsmasqKeyword "^\s*tftp-secure\>"
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
213 syn match DnsmasqKeyword "^\s*tftp-unique-root\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
214 syn match DnsmasqKeyword "^\s*txt-record\>"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
215 syn match DnsmasqKeyword "^\s*user\>"
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
216 syn match DnsmasqKeyword "^\s*version\>"
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
217
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
218
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
219 if b:dnsmasq_backrgound_light == 1
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
220 hi def DnsmasqKeyword ctermfg=DarkGreen guifg=DarkGreen
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
221 else
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
222 hi def link DnsmasqKeyword Keyword
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
223 endif
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
224 hi def link DnsmasqKeywordSpecial Type
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
225 hi def link DnsmasqTodo Todo
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
226 hi def link DnsmasqSpecial Constant
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
227 hi def link DnsmasqIPv4 Identifier
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
228 hi def link DnsmasqSubnet2 DnsmasqSubnet
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
229 hi def link DnsmasqSubnet DnsmasqMac
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
230 hi def link DnsmasqRange DnsmasqMac
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
231 hi def link DnsmasqMac Preproc
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
232 hi def link DnsmasqTime Preproc
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
233 hi def link DnsmasqComment Comment
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
234 hi def link DnsmasqTrailSpace DiffDelete
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
235 hi def link DnsmasqString Constant
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
236 hi def link DnsmasqValues Normal
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
237
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
238 let b:current_syntax = "dnsmasq"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
239
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
240 let &cpo = s:cpo_save
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
241 unlet s:cpo_save
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
242