annotate runtime/syntax/mrxvtrc.vim @ 846:db44f7b81373 v7.0f03

updated for version 7.0f03
author vimboss
date Thu, 27 Apr 2006 21:47:44 +0000
parents
children 96cd8222a819
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
846
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
1 " Created : Wed 26 Apr 2006 01:20:53 AM CDT
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
2 " Modified : Thu 27 Apr 2006 02:29:25 PM CDT
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
3 " Author : Gautam Iyer <gi1242@users.sourceforge.net>
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
4 " Description : Syntax file for mrxvtrc
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
5
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
6 " Quit when a syntax file was already loaded
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
8 finish
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
9 endif
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
10
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
11 " Define options.
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
12 let s:boolOpts = '(highlightTabOnBell|syncTabTitle|hideTabbar|autohideTabbar|bottomTabbar|hideButtons|syncTabIcon|veryBoldFont|maximized|fullscreen|reverseVideo|loginShell|jumpScroll|scrollBar|scrollbarRight|scrollbarFloating|scrollTtyOutputInhibit|scrollTtyKeypress|scrollWithBuffer|transparent|transparentForce|transparentScrollbar|transparentMenubar|transparentTabbar|tabUsePixmap|utmpInhibit|visualBell|mapAlert|meta8|mouseWheelScrollPage|multibyte_cursor|tripleclickwords|showMenu|xft|xftNomFont|xftSlowOutput|xftAntialias|xftHinting|xftAutoHint|xftGlobalAdvance|tabShell|cmdAllTabs|cmdInitTabs|protectSecondary|thai|borderLess|overrideRedirect|holdExit|broadcast|smartResize|smoothResize|pointerBlank|cursorBlink|noSysConfig|disableMacros|linuxHomeEndKey|sessionMgt)'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
13
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
14 let s:colorOpts = '(vt\d+.(foreground|background)|background|foreground|ufBackground|textShadow|i?tab(Foreground|Background)|color([0-9]|1[0-5]|BD|UL|RV)|(scroll|trough|highlight|cursor|pointer|border|tint)Color|cursorColor2)'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
15
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
16 let s:numOpts = '(vt\d+.saveLines|maxTabWidth|minVisibleTabs|saveLines|scrollbarThickness|xftmSize|xftSize|desktop|externalBorder|internalBorder|lineSpace|pointerBlankDelay|cursorBlinkInterval|initTermNumber|shading|backgroundFade|bgRefreshInterval|fading|opacity|opacityDegree|xftPSize)'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
17
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
18 let s:strOpts = '(vt\d+\.(tabTitle|command)|tabTitle|termName|title|clientName|iconName|bellCommand|holdExitText|backspaceKey|deleteKey|printPipe|cutChars|answerbackString|smClientID|geometry|confFileSave|path|boldFont|m?font[1-5]?|xftFont|xftmFont|xftPFont|inputMethod|greektoggle_key|menu|menubarPixmap|vt\d+\.Pixmap|Pixmap|scrollbarPixmap|tabbarPixmap|appIcon|multichar_encoding)'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
19
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
20 syn case match
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
21
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
22 syn match mrxvtrcComment contains=@Spell '^\s*!.*$'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
23 syn match mrxvtrcComment '\v^\s*!\s*\w+[.*]\w+.*:.*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
24
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
25 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
26 " Generic options (string / color / number / boolean)
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
27 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
28 syn match mrxvtrcOptErr '\v^\s*\w+[.*]?.{-}(:|$)'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
29 exec 'syn match mrxvtrcBoolOpts nextgroup=mrxvtrcBoolVal,mrxvtrcValErr'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
30 \ '"\v^\w+[.*]'.s:boolOpts.':\s*"'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
31 exec 'syn match mrxvtrcNumOpts nextgroup=mrxvtrcNumVal,mrxvtrcValErr'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
32 \ '"\v^\w+[.*]'.s:numOpts.':\s*"'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
33 exec 'syn match mrxvtrcColorOpts nextgroup=mrxvtrcColorVal'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
34 \ '"\v^\w+[.*]'.s:colorOpts.':\s*"'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
35 exec 'syn match mrxvtrcStrOpts nextgroup=mrxvtrcStrVal,mrxvtrcValErr'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
36 \ '"\v^\w+[.*]'.s:strOpts.':\s*"'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
37
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
38 syn case ignore
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
39
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
40 syn match mrxvtrcValErr contained '\v.+$'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
41 syn keyword mrxvtrcBoolVal contained 0 1 yes no on off true false
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
42 syn match mrxvtrcStrVal contained '\v.+$'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
43 syn match mrxvtrcColorVal contained '\v#[0-9a-f]{6}\s*$'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
44 syn match mrxvtrcNumVal contained '\v[+-]?(0[0-7]+|\d+|0x[0-9a-f]+)$'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
45
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
46 syn case match
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
47
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
48 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
49 " Options with special values
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
50 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
51 syn match mrxvtrcOptions nextgroup=mrxvtrcSBstyle,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
52 \ '\v^\w+[.*]scrollbarStyle:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
53 syn keyword mrxvtrcSBstyle contained plain xterm rxvt next sgi
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
54
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
55 syn match mrxvtrcOptions nextgroup=mrxvtrcSBalign,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
56 \ '\v^\w+[.*]scrollbarAlign:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
57 syn keyword mrxvtrcSBalign contained top bottom
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
58
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
59 syn match mrxvtrcOptions nextgroup=mrxvtrcTSmode,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
60 \ '\v^\w+[.*]textShadowMode:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
61 syn keyword mrxvtrcTSmode contained
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
62 \ none top bottom left right topleft topright
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
63 \ botleft botright
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
64
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
65 syn match mrxvtrcOptions nextgroup=mrxvtrcGrkKbd,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
66 \ '\v^\w+[.*]greek_keyboard:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
67 syn keyword mrxvtrcGrkKbd contained iso ibm
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
68
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
69 syn match mrxvtrcOptions nextgroup=mrxvtrcXftWt,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
70 \ '\v^\w+[.*]xftWeight:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
71 syn keyword mrxvtrcXftWt contained light medium bold
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
72
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
73 syn match mrxvtrcOptions nextgroup=mrxvtrcXftSl,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
74 \ '\v^\w+[.*]xftSlant:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
75 syn keyword mrxvtrcXftSl contained roman italic oblique
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
76
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
77 syn match mrxvtrcOptions nextgroup=mrxvtrcXftWd,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
78 \ '\v^\w+[.*]xftWidth:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
79 syn keyword mrxvtrcXftWd contained
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
80 \ ultracondensed ultraexpanded
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
81 \ condensed expanded normal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
82
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
83 syn match mrxvtrcOptions nextgroup=mrxvtrcXftHt,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
84 \ '\v^\w+[.*]xftRGBA:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
85 syn keyword mrxvtrcXftHt contained rgb bgr vrgb vbgr none
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
86
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
87 syn match mrxvtrcOptions nextgroup=mrxvtrcPedit,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
88 \ '\v^\w+[.*]preeditType:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
89 syn keyword mrxvtrcPedit contained OverTheSpot OffTheSpot Root
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
90
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
91 syn match mrxvtrcOptions nextgroup=mrxvtrcMod,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
92 \ '\v^\w+[.*]modifier:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
93 syn keyword mrxvtrcMod contained
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
94 \ alt meta hyper super mod1 mod2 mod3 mod4 mod5
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
95
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
96 syn match mrxvtrcOptions nextgroup=mrxvtrcSelSty,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
97 \ '\v^\w+[.*]selectStyle:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
98 syn keyword mrxvtrcSelSty contained old oldword
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
99
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
100
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
101 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
102 " Macros
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
103 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
104 syn match mrxvtrcOptions nextgroup=mrxvtrcMacro,mrxvtrcValErr
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
105 \ '\v\c^\w+[.*]macro.(primary\+)?((ctrl|alt|meta|shift)\+)*\w+:\s*'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
106 syn keyword mrxvtrcMacro contained nextgroup=mrxvtrcMacroArg
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
107 \ Dummy Esc Str NewTab Close GotoTab MoveTab
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
108 \ Scroll Copy Paste ToggleSubwin ResizeFont
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
109 \ ToggleVeryBold ToggleTransparency
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
110 \ ToggleBroadcast ToggleHold SetTitle
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
111 \ PrintScreen SaveConfig ToggleMacros
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
112 syn match mrxvtrcMacroArg contained '.\+$'
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
113
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
114
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
115 unlet s:strOpts s:boolOpts s:colorOpts s:numOpts
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
116
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
117 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
118 " Highlighting groups
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
119 "
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
120 hi def link mrxvtrcComment Comment
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
121
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
122 hi def link mrxvtrcBoolOpts Statement
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
123 hi def link mrxvtrcColorOpts mrxvtrcBoolOpts
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
124 hi def link mrxvtrcNumOpts mrxvtrcBoolOpts
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
125 hi def link mrxvtrcStrOpts mrxvtrcBoolOpts
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
126 hi def link mrxvtrcOptions mrxvtrcBoolOpts
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
127
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
128 hi def link mrxvtrcBoolVal Boolean
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
129 hi def link mrxvtrcStrVal String
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
130 hi def link mrxvtrcColorVal Constant
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
131 hi def link mrxvtrcNumVal Number
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
132
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
133 hi def link mrxvtrcSBstyle mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
134 hi def link mrxvtrcSBalign mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
135 hi def link mrxvtrcTSmode mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
136 hi def link mrxvtrcGrkKbd mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
137 hi def link mrxvtrcXftWt mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
138 hi def link mrxvtrcXftSl mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
139 hi def link mrxvtrcXftWd mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
140 hi def link mrxvtrcXftHt mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
141 hi def link mrxvtrcPedit mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
142 hi def link mrxvtrcMod mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
143 hi def link mrxvtrcSelSty mrxvtrcStrVal
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
144
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
145 hi def link mrxvtrcMacro Identifier
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
146 hi def link mrxvtrcMacroArg String
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
147
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
148 hi def link mrxvtrcOptErr Error
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
149 hi def link mrxvtrcValErr Error
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
150
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
151 let b:current_syntax = "mrxvtrc"