3312
|
1 " Description : Vim syntax file for mrxvtrc (for mrxvt-0.5.0 and up)
|
846
|
2 " Created : Wed 26 Apr 2006 01:20:53 AM CDT
|
3312
|
3 " Modified : Thu 02 Feb 2012 08:37:45 PM EST
|
|
4 " Maintainer : GI <a@b.c>, where a='gi1242+vim', b='gmail', c='com'
|
846
|
5
|
|
6 " Quit when a syntax file was already loaded
|
|
7 if exists("b:current_syntax")
|
|
8 finish
|
|
9 endif
|
|
10
|
3312
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
846
|
14 syn case match
|
|
15
|
1125
|
16 " Errors
|
|
17 syn match mrxvtrcError contained '\v\S+'
|
|
18
|
|
19 " Comments
|
|
20 syn match mrxvtrcComment contains=@Spell '^\s*[!#].*$'
|
|
21 syn match mrxvtrcComment '\v^\s*[#!]\s*\w+[.*]\w+.*:.*'
|
846
|
22
|
|
23 "
|
1125
|
24 " Options.
|
846
|
25 "
|
1125
|
26 syn match mrxvtrcClass '\v^\s*\w+[.*]'
|
|
27 \ nextgroup=mrxvtrcOptions,mrxvtrcProfile,@mrxvtrcPOpts,mrxvtrcError
|
846
|
28
|
1125
|
29 " Boolean options
|
|
30 syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcBColon,mrxvtrcError
|
|
31 \ highlightTabOnBell syncTabTitle hideTabbar
|
|
32 \ autohideTabbar bottomTabbar hideButtons
|
|
33 \ syncTabIcon veryBoldFont maximized
|
|
34 \ fullscreen reverseVideo loginShell
|
|
35 \ jumpScroll scrollBar scrollbarRight
|
|
36 \ scrollbarFloating scrollTtyOutputInhibit
|
1624
|
37 \ scrollTtyKeypress transparentForce
|
|
38 \ transparentScrollbar transparentMenubar
|
|
39 \ transparentTabbar tabUsePixmap utmpInhibit
|
|
40 \ visualBell mapAlert meta8
|
|
41 \ mouseWheelScrollPage multibyte_cursor
|
1125
|
42 \ tripleclickwords showMenu xft xftNomFont
|
|
43 \ xftSlowOutput xftAntialias xftHinting
|
|
44 \ xftAutoHint xftGlobalAdvance cmdAllTabs
|
|
45 \ protectSecondary thai borderLess
|
1624
|
46 \ overrideRedirect broadcast smartResize
|
|
47 \ pointerBlank cursorBlink noSysConfig
|
|
48 \ disableMacros linuxHomeEndKey sessionMgt
|
|
49 \ boldColors smoothResize useFifo veryBright
|
1125
|
50 syn match mrxvtrcOptions contained nextgroup=mrxvtrcBColon,mrxvtrcError
|
|
51 \ '\v<transparent>'
|
|
52 syn match mrxvtrcBColon contained skipwhite
|
|
53 \ nextgroup=mrxvtrcBoolVal,mrxvtrcError ':'
|
846
|
54 syn case ignore
|
1125
|
55 syn keyword mrxvtrcBoolVal contained skipwhite nextgroup=mrxvtrcError
|
|
56 \ 0 1 yes no on off true false
|
846
|
57 syn case match
|
|
58
|
1125
|
59 " Color options
|
|
60 syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcCColon,mrxvtrcError
|
|
61 \ ufBackground textShadow tabForeground
|
|
62 \ itabForeground tabBackground itabBackground
|
|
63 \ scrollColor troughColor highlightColor
|
|
64 \ cursorColor cursorColor2 pointerColor
|
|
65 \ borderColor tintColor
|
|
66 syn match mrxvtrcOptions contained nextgroup=mrxvtrcCColon,mrxvtrcError
|
|
67 \ '\v<color([0-9]|1[0-5]|BD|UL|RV)>'
|
|
68 syn match mrxvtrcCColon contained skipwhite
|
|
69 \ nextgroup=mrxvtrcColorVal ':'
|
|
70 syn match mrxvtrcColorVal contained skipwhite nextgroup=mrxvtrcError
|
|
71 \ '\v#[0-9a-fA-F]{6}'
|
|
72
|
|
73 " Numeric options
|
|
74 syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcNColon,mrxvtrcError
|
|
75 \ maxTabWidth minVisibleTabs
|
|
76 \ scrollbarThickness xftmSize xftSize desktop
|
|
77 \ externalBorder internalBorder lineSpace
|
|
78 \ pointerBlankDelay cursorBlinkInterval
|
|
79 \ shading backgroundFade bgRefreshInterval
|
1624
|
80 \ fading opacity opacityDegree xftPSize
|
1125
|
81 syn match mrxvtrcNColon contained skipwhite
|
|
82 \ nextgroup=mrxvtrcNumVal,mrxvtrcError ':'
|
|
83 syn match mrxvtrcNumVal contained skipwhite nextgroup=mrxvtrcError
|
|
84 \ '\v[+-]?<(0[0-7]+|\d+|0x[0-9a-f]+)>'
|
846
|
85
|
1125
|
86 " String options
|
|
87 syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcSColon,mrxvtrcError
|
|
88 \ tabTitle termName title clientName iconName
|
|
89 \ bellCommand backspaceKey deleteKey
|
|
90 \ printPipe cutChars answerbackString
|
|
91 \ smClientID geometry path boldFont xftFont
|
|
92 \ xftmFont xftPFont inputMethod
|
|
93 \ greektoggle_key menu menubarPixmap
|
|
94 \ scrollbarPixmap tabbarPixmap appIcon
|
|
95 \ multichar_encoding initProfileList
|
|
96 syn match mrxvtrcOptions contained nextgroup=mrxvtrcSColon,mrxvtrcError
|
|
97 \ '\v<m?font[1-5]?>'
|
|
98 syn match mrxvtrcSColon contained skipwhite nextgroup=mrxvtrcStrVal ':'
|
|
99 syn match mrxvtrcStrVal contained '\v\S.*'
|
846
|
100
|
1125
|
101 " Profile options
|
|
102 syn cluster mrxvtrcPOpts contains=mrxvtrcPSOpts,mrxvtrcPCOpts,mrxvtrcPNOpts
|
|
103 syn match mrxvtrcProfile contained nextgroup=@mrxvtrcPOpts,mrxvtrcError
|
|
104 \ '\vprofile\d+\.'
|
|
105 syn keyword mrxvtrcPSOpts contained nextgroup=mrxvtrcSColon,mrxvtrcError
|
|
106 \ tabTitle command holdExitText holdExitTitle
|
|
107 \ Pixmap workingDirectory titleFormat
|
1624
|
108 \ winTitleFormat
|
1125
|
109 syn keyword mrxvtrcPCOpts contained nextgroup=mrxvtrcCColon,mrxvtrcError
|
|
110 \ background foreground
|
|
111 syn keyword mrxvtrcPNOpts contained nextgroup=mrxvtrcNColon,mrxvtrcError
|
|
112 \ holdExit saveLines
|
|
113
|
|
114 " scrollbarStyle
|
|
115 syn match mrxvtrcOptions contained skipwhite
|
|
116 \ nextgroup=mrxvtrcSBstyle,mrxvtrcError
|
|
117 \ '\v<scrollbarStyle:'
|
|
118 syn keyword mrxvtrcSBstyle contained skipwhite nextgroup=mrxvtrcError
|
|
119 \ plain xterm rxvt next sgi
|
|
120
|
|
121 " scrollbarAlign
|
|
122 syn match mrxvtrcOptions contained skipwhite
|
|
123 \ nextgroup=mrxvtrcSBalign,mrxvtrcError
|
|
124 \ '\v<scrollbarAlign:'
|
|
125 syn keyword mrxvtrcSBalign contained skipwhite nextgroup=mrxvtrcError
|
|
126 \ top bottom
|
|
127
|
|
128 " textShadowMode
|
|
129 syn match mrxvtrcOptions contained skipwhite
|
|
130 \ nextgroup=mrxvtrcTSmode,mrxvtrcError
|
|
131 \ '\v<textShadowMode:'
|
|
132 syn keyword mrxvtrcTSmode contained skipwhite nextgroup=mrxvtrcError
|
846
|
133 \ none top bottom left right topleft topright
|
|
134 \ botleft botright
|
|
135
|
1125
|
136 " greek_keyboard
|
|
137 syn match mrxvtrcOptions contained skipwhite
|
|
138 \ nextgroup=mrxvtrcGrkKbd,mrxvtrcError
|
|
139 \ '\v<greek_keyboard:'
|
|
140 syn keyword mrxvtrcGrkKbd contained skipwhite nextgroup=mrxvtrcError
|
|
141 \ iso ibm
|
846
|
142
|
1125
|
143 " xftWeight
|
|
144 syn match mrxvtrcOptions contained skipwhite
|
|
145 \ nextgroup=mrxvtrcXftWt,mrxvtrcError
|
|
146 \ '\v<(xftWeight|xftBoldWeight):'
|
|
147 syn keyword mrxvtrcXftWt contained skipwhite nextgroup=mrxvtrcError
|
|
148 \ light medium demibold bold black
|
846
|
149
|
1125
|
150 " xftSlant
|
|
151 syn match mrxvtrcOptions contained skipwhite
|
|
152 \ nextgroup=mrxvtrcXftSl,mrxvtrcError
|
|
153 \ '\v<xftSlant:'
|
|
154 syn keyword mrxvtrcXftSl contained skipwhite nextgroup=mrxvtrcError
|
|
155 \ roman italic oblique
|
|
156
|
|
157 " xftWidth
|
|
158 syn match mrxvtrcOptions contained skipwhite
|
|
159 \ nextgroup=mrxvtrcXftWd,mrxvtrcError
|
|
160 \ '\v<xftWidth:'
|
|
161 syn keyword mrxvtrcXftWd contained skipwhite nextgroup=mrxvtrcError
|
846
|
162 \ ultracondensed ultraexpanded
|
|
163 \ condensed expanded normal
|
|
164
|
1125
|
165 " xftRGBA
|
|
166 syn match mrxvtrcOptions contained skipwhite
|
|
167 \ nextgroup=mrxvtrcXftHt,mrxvtrcError
|
|
168 \ '\v<xftRGBA:'
|
|
169 syn keyword mrxvtrcXftHt contained skipwhite nextgroup=mrxvtrcError
|
|
170 \ rgb bgr vrgb vbgr none
|
846
|
171
|
1125
|
172 " preeditType
|
|
173 syn match mrxvtrcOptions contained skipwhite
|
|
174 \ nextgroup=mrxvtrcPedit,mrxvtrcError
|
|
175 \ '\v<preeditType:'
|
|
176 syn keyword mrxvtrcPedit contained skipwhite nextgroup=mrxvtrcError
|
|
177 \ OverTheSpot OffTheSpot Root
|
846
|
178
|
1125
|
179 " modifier
|
|
180 syn match mrxvtrcOptions contained skipwhite
|
|
181 \ nextgroup=mrxvtrcMod,mrxvtrcError
|
|
182 \ '\v<modifier:'
|
|
183 syn keyword mrxvtrcMod contained skipwhite nextgroup=mrxvtrcError
|
846
|
184 \ alt meta hyper super mod1 mod2 mod3 mod4 mod5
|
|
185
|
1125
|
186 " selectStyle
|
|
187 syn match mrxvtrcOptions contained skipwhite
|
|
188 \ nextgroup=mrxvtrcSelSty,mrxvtrcError
|
|
189 \ '\v<selectStyle:'
|
|
190 syn keyword mrxvtrcSelSty contained skipwhite nextgroup=mrxvtrcError
|
|
191 \ old oldword
|
846
|
192
|
|
193
|
|
194 "
|
|
195 " Macros
|
|
196 "
|
1125
|
197 syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcKey,mrxvtrcError
|
|
198 \ macro
|
|
199 syn case ignore
|
|
200 syn match mrxvtrcKey contained skipwhite
|
|
201 \ nextgroup=mrxvtrcMacro,mrxvtrcError
|
|
202 \ '\v\.((primary|add|ctrl|alt|meta|shift)\+)*\w+:'
|
|
203 syn case match
|
|
204
|
|
205 " Macros without arguments
|
|
206 syn keyword mrxvtrcMacro contained skipwhite nextgroup=mrxvtrcError
|
|
207 \ Dummy Copy Paste ToggleVeryBold
|
|
208 \ ToggleTransparency ToggleBroadcast
|
|
209 \ ToggleHold SetTitle ToggleMacros
|
1624
|
210 \ ToggleFullscreen Raise
|
1125
|
211
|
|
212 " Macros with a string argument
|
|
213 syn keyword mrxvtrcMacro contained skipwhite nextgroup=mrxvtrcStrVal
|
|
214 \ Esc Str Exec Scroll PrintScreen SaveConfig
|
846
|
215
|
1125
|
216 " Macros with a numeric argument
|
|
217 syn keyword mrxvtrcMacro contained skipwhite
|
|
218 \ nextgroup=mrxvtrcNumVal,mrxvtrcError
|
1624
|
219 \ Close GotoTab MoveTab ResizeFont UseFifo
|
846
|
220
|
1125
|
221 " NewTab macro
|
|
222 syn keyword mrxvtrcMacro contained skipwhite
|
|
223 \ nextgroup=mrxvtrcTitle,mrxvtrcShell,mrxvtrcCmd
|
|
224 \ NewTab
|
|
225 syn region mrxvtrcTitle contained oneline skipwhite
|
|
226 \ nextgroup=mrxvtrcShell,mrxvtrcCmd
|
|
227 \ start='"' end='"'
|
|
228 syn match mrxvtrcShell contained nextgroup=mrxvtrcCmd '!'
|
|
229 syn match mrxvtrcCmd contained '\v[^!" \t].*'
|
|
230
|
|
231 " ToggleSubwin macro
|
|
232 syn keyword mrxvtrcMacro contained skipwhite
|
|
233 \ nextgroup=mrxvtrcSubwin,mrxvtrcError
|
|
234 \ ToggleSubwin
|
|
235 syn match mrxvtrcSubwin contained skipwhite nextgroup=mrxvtrcError
|
|
236 \ '\v[-+]?[bmst]>'
|
846
|
237
|
|
238 "
|
|
239 " Highlighting groups
|
|
240 "
|
1125
|
241 hi def link mrxvtrcError Error
|
846
|
242 hi def link mrxvtrcComment Comment
|
|
243
|
1125
|
244 hi def link mrxvtrcClass Statement
|
|
245 hi def link mrxvtrcOptions mrxvtrcClass
|
|
246 hi def link mrxvtrcBColon mrxvtrcClass
|
|
247 hi def link mrxvtrcCColon mrxvtrcClass
|
|
248 hi def link mrxvtrcNColon mrxvtrcClass
|
|
249 hi def link mrxvtrcSColon mrxvtrcClass
|
|
250 hi def link mrxvtrcProfile mrxvtrcClass
|
|
251 hi def link mrxvtrcPSOpts mrxvtrcClass
|
|
252 hi def link mrxvtrcPCOpts mrxvtrcClass
|
|
253 hi def link mrxvtrcPNOpts mrxvtrcClass
|
846
|
254
|
|
255 hi def link mrxvtrcBoolVal Boolean
|
|
256 hi def link mrxvtrcStrVal String
|
|
257 hi def link mrxvtrcColorVal Constant
|
|
258 hi def link mrxvtrcNumVal Number
|
|
259
|
|
260 hi def link mrxvtrcSBstyle mrxvtrcStrVal
|
|
261 hi def link mrxvtrcSBalign mrxvtrcStrVal
|
|
262 hi def link mrxvtrcTSmode mrxvtrcStrVal
|
|
263 hi def link mrxvtrcGrkKbd mrxvtrcStrVal
|
|
264 hi def link mrxvtrcXftWt mrxvtrcStrVal
|
|
265 hi def link mrxvtrcXftSl mrxvtrcStrVal
|
|
266 hi def link mrxvtrcXftWd mrxvtrcStrVal
|
|
267 hi def link mrxvtrcXftHt mrxvtrcStrVal
|
|
268 hi def link mrxvtrcPedit mrxvtrcStrVal
|
|
269 hi def link mrxvtrcMod mrxvtrcStrVal
|
|
270 hi def link mrxvtrcSelSty mrxvtrcStrVal
|
|
271
|
|
272 hi def link mrxvtrcMacro Identifier
|
1125
|
273 hi def link mrxvtrcKey mrxvtrcClass
|
|
274 hi def link mrxvtrcTitle mrxvtrcStrVal
|
|
275 hi def link mrxvtrcShell Special
|
|
276 hi def link mrxvtrcCmd PreProc
|
|
277 hi def link mrxvtrcSubwin mrxvtrcStrVal
|
846
|
278
|
|
279 let b:current_syntax = "mrxvtrc"
|
3312
|
280
|
|
281 let &cpo = s:cpo_save
|
|
282 unlet s:cpo_save
|