annotate runtime/syntax/dictdconf.vim @ 2678:faf4b09c396e v7.3.097

updated for version 7.3.097 Problem: Using ":call" inside "if 0" does not see that a function returns a Dict and gives error for "." as string concatenation. Solution: Use eval0() to skip over the expression. (Yasuhiro Matsumoto)
author Bram Moolenaar <bram@vim.org>
date Tue, 04 Jan 2011 19:03:27 +0100
parents 1f3b1021f002
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: dictd(8) configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn keyword dictdconfTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 syn region dictdconfComment display oneline start='#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ contains=dictdconfTodo,dictdconfSpecialC,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17 \ @Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 syn keyword dictdconfSpecialC LASTLINE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 syn match dictdconfBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 \ nextgroup=dictdconfKeyword,dictdconfComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 \ skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 syn keyword dictdconfKeyword contained access
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 \ nextgroup=dictdconfAccessG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28 syn region dictdconfAccessG contained transparent
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 \ matchgroup=dictdconfDelimiter start='{'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 \ matchgroup=dictdconfDelimiter end='}'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 \ contains=dictdconfAccess,dictdconfComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 syn keyword dictdconfAccess contained allow deny authonly user
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 \ nextgroup=dictdconfString skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 syn keyword dictdconfKeyword contained database
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 \ nextgroup=dictdconfDatabase skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 syn match dictdconfDatabase contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 \ '[[:alnum:]_/.*-][[:alnum:]_/.*-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 \ nextgroup=dictdconfSpecG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 syn region dictdconfDatabase contained display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 \ start=+"+ skip=+""\|\\\\\|\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 \ nextgroup=dictdconfSpecG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 syn region dictdconfSpecG contained transparent
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 \ matchgroup=dictdconfDelimiter start='{'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 \ matchgroup=dictdconfDelimiter end='}'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49 \ contains=dictdconfSpec,dictdconfAccess,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50 \ dictdconfComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 syn keyword dictdconfSpec contained data index index_suffix index_word
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 \ filter prefilter postfilter name info
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54 \ disable_strat
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55 \ nextgroup=dictdconfString skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57 syn keyword dictdconfSpec contained invisible
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 syn keyword dictdconfKeyword contained database_virtual
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60 \ nextgroup=dictdconfVDatabase skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62 syn match dictdconfVDatabase contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63 \ '[[:alnum:]_/.*-][[:alnum:]_/.*-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64 \ nextgroup=dictdconfVSpecG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65 syn region dictdconfVDatabase contained display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 \ start=+"+ skip=+""\|\\\\\|\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67 \ nextgroup=dictdconfVSpecG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69 syn region dictdconfVSpecG contained transparent
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
70 \ matchgroup=dictdconfDelimiter start='{'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
71 \ matchgroup=dictdconfDelimiter end='}'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
72 \ contains=dictdconfVSpec,dictdconfAccess,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
73 \ dictdconfComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
74
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
75 syn keyword dictdconfVSpec contained name info database_list disable_strat
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
76 \ nextgroup=dictdconfString skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
77
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
78 syn keyword dictdconfVSpec contained invisible
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
79
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
80 syn keyword dictdconfKeyword contained database_plugin
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
81 \ nextgroup=dictdconfPDatabase skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
82
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
83 syn match dictdconfPDatabase contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
84 \ '[[:alnum:]_/.*-][[:alnum:]_/.*-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85 \ nextgroup=dictdconfPSpecG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
86 syn region dictdconfPDatabase contained display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 \ start=+"+ skip=+""\|\\\\\|\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88 \ nextgroup=dictdconfPSpecG skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
89
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90 syn region dictdconfPSpecG contained transparent
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
91 \ matchgroup=dictdconfDelimiter start='{'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
92 \ matchgroup=dictdconfDelimiter end='}'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
93 \ contains=dictdconfPSpec,dictdconfAccess,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
94 \ dictdconfComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
95
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
96 syn keyword dictdconfPSpec contained name info plugin data disable_strat
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
97 \ nextgroup=dictdconfString skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
98
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
99 syn keyword dictdconfPSpec contained invisible
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
100
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
101 syn keyword dictdconfKeyword contained database_exit
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
102
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
103 syn keyword dictdconfKeyword contained site
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
104 \ nextgroup=dictdconfString skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
105
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
106 syn keyword dictdconfKeyword contained user
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
107 \ nextgroup=dictdconfUsername skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
108
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
109 syn match dictdconfUsername contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
110 \ '[[:alnum:]_/.*-][[:alnum:]_/.*-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
111 \ nextgroup=dictdconfSecret skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
112 syn region dictdconfUsername contained display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
113 \ start=+"+ skip=+""+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
114 \ nextgroup=dictdconfSecret skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
115
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
116 syn match dictdconfSecret contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
117 \ '[[:alnum:]_/.*-][[:alnum:]_/.*-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
118 syn region dictdconfSecret contained display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
119 \ start=+"+ skip=+""+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
120
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
121 syn match dictdconfString contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
122 \ '[[:alnum:]_/.*-][[:alnum:]_/.*-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
123 syn region dictdconfString contained display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
124 \ start=+"+ skip=+""\|\\\\\|\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
125
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
126 hi def link dictdconfTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
127 hi def link dictdconfComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
128 hi def link dictdconfSpecialC Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
129 hi def link dictdconfKeyword Keyword
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
130 hi def link dictdconfIdentifier Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
131 hi def link dictdconfAccess dictdconfIdentifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
132 hi def link dictdconfDatabase dictdconfString
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
133 hi def link dictdconfSpec dictdconfIdentifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
134 hi def link dictdconfVDatabase dictdconfDatabase
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
135 hi def link dictdconfVSpec dictdconfSpec
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
136 hi def link dictdconfPDatabase dictdconfDatabase
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
137 hi def link dictdconfPSpec dictdconfSpec
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
138 hi def link dictdconfUsername dictdconfString
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
139 hi def link dictdconfSecret Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
140 hi def link dictdconfString String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
141 hi def link dictdconfDelimiter Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
142
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
143 let b:current_syntax = "dictdconf"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
144
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
145 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
146 unlet s:cpo_save