Mercurial > vim
annotate runtime/syntax/xf86conf.vim @ 18761:e3785af3ba0f v8.1.2370
patch 8.1.2370: build problems on VMS
Commit: https://github.com/vim/vim/commit/0c5c3faef2d54151a8c144539e3e5a3350fb18c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 22:38:16 2019 +0100
patch 8.1.2370: build problems on VMS
Problem: Build problems on VMS.
Solution: Adjust the build file. (Zoltan Arpadffy)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 22:45:04 +0100 |
parents | 43efa4f5a8ea |
children | cc751d944b7e |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " This is a GENERATED FILE. Please always refer to source file at the URI below. | |
3 " Language: XF86Config (XFree86 configuration file) | |
2642 | 4 " Former Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> |
5 " Last Change: 2010 Nov 01 | |
7 | 6 " URL: http://trific.ath.cx/Ftp/vim/syntax/xf86conf.vim |
7 " Required Vim Version: 6.0 | |
8 " | |
9 " Options: let xf86conf_xfree86_version = 3 or 4 | |
10 " to force XFree86 3.x or 4.x XF86Config syntax | |
11 | |
12 " Setup | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2642
diff
changeset
|
13 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2642
diff
changeset
|
14 if exists("b:current_syntax") |
7 | 15 finish |
16 endif | |
17 | |
18 if !exists("b:xf86conf_xfree86_version") | |
19 if exists("xf86conf_xfree86_version") | |
20 let b:xf86conf_xfree86_version = xf86conf_xfree86_version | |
21 else | |
22 let b:xf86conf_xfree86_version = 4 | |
23 endif | |
24 endif | |
25 | |
26 syn case ignore | |
27 | |
28 " Comments | |
29 syn match xf86confComment "#.*$" contains=xf86confTodo | |
30 syn case match | |
31 syn keyword xf86confTodo FIXME TODO XXX NOT contained | |
32 syn case ignore | |
33 syn match xf86confTodo "???" contained | |
34 | |
35 " Sectioning errors | |
36 syn keyword xf86confSectionError Section contained | |
37 syn keyword xf86confSectionError EndSection | |
38 syn keyword xf86confSubSectionError SubSection | |
39 syn keyword xf86confSubSectionError EndSubSection | |
40 syn keyword xf86confModeSubSectionError Mode | |
41 syn keyword xf86confModeSubSectionError EndMode | |
42 syn cluster xf86confSectionErrors contains=xf86confSectionError,xf86confSubSectionError,xf86confModeSubSectionError | |
43 | |
44 " Values | |
45 if b:xf86conf_xfree86_version >= 4 | |
46 syn region xf86confString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=xf86confSpecialChar,xf86confConstant,xf86confOptionName oneline keepend nextgroup=xf86confValue skipwhite | |
47 else | |
48 syn region xf86confString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=xf86confSpecialChar,xf86confOptionName oneline keepend | |
49 endif | |
50 syn match xf86confSpecialChar "\\\d\d\d\|\\." contained | |
51 syn match xf86confDecimalNumber "\(\s\|-\)\zs\d*\.\=\d\+\>" | |
52 syn match xf86confFrequency "\(\s\|-\)\zs\d\+\.\=\d*\(Hz\|k\|kHz\|M\|MHz\)" | |
53 syn match xf86confOctalNumber "\<0\o\+\>" | |
54 syn match xf86confOctalNumberError "\<0\o\+[89]\d*\>" | |
55 syn match xf86confHexadecimalNumber "\<0x\x\+\>" | |
56 syn match xf86confValue "\s\+.*$" contained contains=xf86confComment,xf86confString,xf86confFrequency,xf86conf\w\+Number,xf86confConstant | |
57 syn keyword xf86confOption Option nextgroup=xf86confString skipwhite | |
58 syn match xf86confModeLineValue "\"[^\"]\+\"\(\_s\+[0-9.]\+\)\{9}" nextgroup=xf86confSync skipwhite skipnl | |
59 | |
60 " Sections and subsections | |
61 if b:xf86conf_xfree86_version >= 4 | |
2642 | 62 syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\|InputClass\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,xf86confSectionError |
7 | 63 syn region xf86confSectionModule matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Module\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionAny,xf86confComment,xf86confOption,xf86confKeyword |
64 syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword | |
65 syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment | |
66 syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOption,xf86confKeyword | |
67 syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors | |
68 syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confKeyword,@xf86confSectionErrors | |
69 syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors | |
70 else | |
71 syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Device\|Keyboard\|Pointer\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword | |
72 syn region xf86confSectionMX matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Module\|Xinput\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionAny,xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword | |
73 syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword | |
74 syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword | |
75 syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword,@xf86confSectionErrors | |
76 syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword,@xf86confSectionErrors | |
77 syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword,@xf86confSectionErrors | |
78 endif | |
79 | |
80 " Options | |
81 if b:xf86conf_xfree86_version >= 4 | |
82 command -nargs=+ Xf86confdeclopt syn keyword xf86confOptionName <args> contained | |
83 else | |
84 command -nargs=+ Xf86confdeclopt syn keyword xf86confOptionName <args> contained nextgroup=xf86confValue,xf86confComment skipwhite | |
85 endif | |
86 | |
87 Xf86confdeclopt 18bitBus AGPFastWrite AGPMode Accel AllowClosedownGrabs AllowDeactivateGrabs | |
88 Xf86confdeclopt AllowMouseOpenFail AllowNonLocalModInDev AllowNonLocalXvidtune AlwaysCore | |
89 Xf86confdeclopt AngleOffset AutoRepeat BaudRate BeamTimeout Beep BlankTime BlockWrite BottomX | |
90 Xf86confdeclopt BottomY ButtonNumber ButtonThreshold Buttons ByteSwap CacheLines ChordMiddle | |
91 Xf86confdeclopt ClearDTR ClearDTS ClickMode CloneDisplay CloneHSync CloneMode CloneVRefresh | |
92 Xf86confdeclopt ColorKey Composite CompositeSync CoreKeyboard CorePointer Crt2Memory CrtScreen | |
93 Xf86confdeclopt CrtcNumber CyberShadow CyberStretch DDC DDCMode DMAForXv DPMS Dac6Bit DacSpeed | |
94 Xf86confdeclopt DataBits Debug DebugLevel DefaultServerLayout DeltaX DeltaY Device DeviceName | |
95 Xf86confdeclopt DisableModInDev DisableVidModeExtension Display Display1400 DontVTSwitch | |
96 Xf86confdeclopt DontZap DontZoom DoubleScan DozeMode DozeScan DozeTime DragLockButtons | |
97 Xf86confdeclopt DualCount DualRefresh EarlyRasPrecharge Emulate3Buttons Emulate3Timeout | |
98 Xf86confdeclopt EmulateWheel EmulateWheelButton EmulateWheelInertia EnablePageFlip EnterCount | |
99 Xf86confdeclopt EstimateSizesAggressively ExternDisp FPClock16 FPClock24 FPClock32 | |
100 Xf86confdeclopt FPClock8 FPDither FastDram FifoAggresive FifoConservative FifoModerate | |
101 Xf86confdeclopt FireGL3000 FixPanelSize FlatPanel FlipXY FlowControl ForceCRT1 ForceCRT2Type | |
102 Xf86confdeclopt ForceLegacyCRT ForcePCIMode FpmVRAM FrameBufferWC FullMMIO GammaBrightness | |
103 Xf86confdeclopt HWClocks HWCursor HandleSpecialKeys HistorySize Interlace Interlaced InternDisp | |
104 Xf86confdeclopt InvX InvY InvertX InvertY KeepShape LCDClock LateRasPrecharge LcdCenter | |
105 Xf86confdeclopt LeftAlt Linear MGASDRAM MMIO MMIOCache MTTR MaxX MaxY MaximumXPosition | |
106 Xf86confdeclopt MaximumYPosition MinX MinY MinimumXPosition MinimumYPosition NoAccel | |
107 Xf86confdeclopt NoAllowMouseOpenFail NoAllowNonLocalModInDev NoAllowNonLocalXvidtune | |
108 Xf86confdeclopt NoBlockWrite NoCompositeSync NoCompression NoCrtScreen NoCyberShadow NoDCC | |
109 Xf86confdeclopt NoDDC NoDac6Bit NoDebug NoDisableModInDev NoDisableVidModeExtension NoDontZap | |
110 Xf86confdeclopt NoDontZoom NoFireGL3000 NoFixPanelSize NoFpmVRAM NoFrameBufferWC NoHWClocks | |
111 Xf86confdeclopt NoHWCursor NoHal NoLcdCenter NoLinear NoMGASDRAM NoMMIO NoMMIOCache NoMTTR | |
112 Xf86confdeclopt NoOverClockMem NoOverlay NoPC98 NoPM NoPciBurst NoPciRetry NoProbeClock | |
113 Xf86confdeclopt NoSTN NoSWCursor NoShadowFb NoShowCache NoSlowEDODRAM NoStretch NoSuspendHack | |
114 Xf86confdeclopt NoTexturedVideo NoTrapSignals NoUseFBDev NoUseModeline NoUseVclk1 NoVTSysReq | |
115 Xf86confdeclopt NoXVideo NvAGP OSMImageBuffers OffTime Origin OverClockMem Overlay | |
116 Xf86confdeclopt PC98 PCIBurst PM PWMActive PWMSleep PanelDelayCompensation PanelHeight | |
117 Xf86confdeclopt PanelOff PanelWidth Parity PciBurst PciRetry Pixmap Port PressDur PressPitch | |
118 Xf86confdeclopt PressVol ProbeClocks ProgramFPRegs Protocol RGBBits ReleaseDur ReleasePitch | |
119 Xf86confdeclopt ReportingMode Resolution RightAlt RightCtl Rotate STN SWCursor SampleRate | |
120 Xf86confdeclopt ScreenNumber ScrollLock SendCoreEvents SendDragEvents Serial ServerNumLock | |
121 Xf86confdeclopt SetLcdClk SetMClk SetRefClk ShadowFb ShadowStatus ShowCache SleepMode | |
122 Xf86confdeclopt SleepScan SleepTime SlowDram SlowEDODRAM StandbyTime StopBits Stretch | |
123 Xf86confdeclopt SuspendHack SuspendTime SwapXY SyncOnGreen TV TVOutput TVOverscan TVStandard | |
124 Xf86confdeclopt TVXPosOffset TVYPosOffset TexturedVideo Threshold Tilt TopX TopY TouchTime | |
125 Xf86confdeclopt TrapSignals Type USB UseBIOS UseFB UseFBDev UseFlatPanel UseModeline | |
126 Xf86confdeclopt UseROMData UseVclk1 VTInit VTSysReq VTime VideoKey Vmin XAxisMapping | |
127 Xf86confdeclopt XLeds XVideo XaaNoCPUToScreenColorExpandFill XaaNoColor8x8PatternFillRect | |
128 Xf86confdeclopt XaaNoColor8x8PatternFillTrap XaaNoDashedBresenhamLine XaaNoDashedTwoPointLine | |
129 Xf86confdeclopt XaaNoImageWriteRect XaaNoMono8x8PatternFillRect XaaNoMono8x8PatternFillTrap | |
130 Xf86confdeclopt XaaNoOffscreenPixmaps XaaNoPixmapCache XaaNoScanlineCPUToScreenColorExpandFill | |
131 Xf86confdeclopt XaaNoScanlineImageWriteRect XaaNoScreenToScreenColorExpandFill | |
132 Xf86confdeclopt XaaNoScreenToScreenCopy XaaNoSolidBresenhamLine XaaNoSolidFillRect | |
133 Xf86confdeclopt XaaNoSolidFillTrap XaaNoSolidHorVertLine XaaNoSolidTwoPointLine Xinerama | |
134 Xf86confdeclopt XkbCompat XkbDisable XkbGeometry XkbKeycodes XkbKeymap XkbLayout XkbModel | |
135 Xf86confdeclopt XkbOptions XkbRules XkbSymbols XkbTypes XkbVariant XvBskew XvHsync XvOnCRT2 | |
136 Xf86confdeclopt XvRskew XvVsync YAxisMapping ZAxisMapping ZoomOnLCD | |
137 | |
138 delcommand Xf86confdeclopt | |
139 | |
140 " Keywords | |
141 syn keyword xf86confKeyword Device Driver FontPath Group Identifier Load ModelName ModulePath Monitor RGBPath VendorName VideoAdaptor Visual nextgroup=xf86confComment,xf86confString skipwhite | |
142 syn keyword xf86confKeyword BiosBase Black BoardName BusID ChipID ChipRev Chipset nextgroup=xf86confComment,xf86confValue | |
143 syn keyword xf86confKeyword ClockChip Clocks DacSpeed DefaultDepth DefaultFbBpp nextgroup=xf86confComment,xf86confValue | |
144 syn keyword xf86confKeyword DefaultColorDepth nextgroup=xf86confComment,xf86confValue | |
145 syn keyword xf86confKeyword Depth DisplaySize DotClock FbBpp Flags Gamma HorizSync nextgroup=xf86confComment,xf86confValue | |
146 syn keyword xf86confKeyword Hskew HTimings InputDevice IOBase MemBase Mode nextgroup=xf86confComment,xf86confValue | |
147 syn keyword xf86confKeyword Modes Ramdac Screen TextClockFreq UseModes VendorName nextgroup=xf86confComment,xf86confValue | |
148 syn keyword xf86confKeyword VertRefresh VideoRam ViewPort Virtual VScan VTimings nextgroup=xf86confComment,xf86confValue | |
149 syn keyword xf86confKeyword Weight White nextgroup=xf86confComment,xf86confValue | |
150 syn keyword xf86confModeLine ModeLine nextgroup=xf86confComment,xf86confModeLineValue skipwhite skipnl | |
151 | |
152 " Constants | |
153 if b:xf86conf_xfree86_version >= 4 | |
154 syn keyword xf86confConstant true false on off yes no omit contained | |
155 else | |
156 syn keyword xf86confConstant Meta Compose Control | |
157 endif | |
158 syn keyword xf86confConstant StaticGray GrayScale StaticColor PseudoColor TrueColor DirectColor contained | |
159 syn keyword xf86confConstant Absolute RightOf LeftOf Above Below Relative StaticGray GrayScale StaticColor PseudoColor TrueColor DirectColor contained | |
160 syn match xf86confSync "\(\s\+[+-][CHV]_*Sync\)\+" contained | |
161 | |
162 " Synchronization | |
163 if b:xf86conf_xfree86_version >= 4 | |
2642 | 164 syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\|InputClass\)\"" |
7 | 165 syn sync match xf86confSyncSectionModule grouphere xf86confSectionModule "^\s*Section\s\+\"Module\"" |
166 syn sync match xf86confSyncSectionModes groupthere xf86confSectionModes "^\s*Section\s\+\"Modes\"" | |
167 else | |
168 syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Device\|Keyboard\|Pointer\)\"" | |
169 syn sync match xf86confSyncSectionMX grouphere xf86confSectionMX "^\s*Section\s\+\"\(Module\|Xinput\)\"" | |
170 endif | |
171 syn sync match xf86confSyncSectionMonitor groupthere xf86confSectionMonitor "^\s*Section\s\+\"Monitor\"" | |
172 syn sync match xf86confSyncSectionScreen groupthere xf86confSectionScreen "^\s*Section\s\+\"Screen\"" | |
173 syn sync match xf86confSyncEndSection groupthere NONE "^\s*End_*Section\s*$" | |
174 | |
175 " Define the default highlighting | |
176 hi def link xf86confComment Comment | |
177 hi def link xf86confTodo Todo | |
178 hi def link xf86confSectionDelim Statement | |
179 hi def link xf86confOptionName Identifier | |
180 | |
181 hi def link xf86confSectionError xf86confError | |
182 hi def link xf86confSubSectionError xf86confError | |
183 hi def link xf86confModeSubSectionError xf86confError | |
184 hi def link xf86confOctalNumberError xf86confError | |
185 hi def link xf86confError Error | |
186 | |
187 hi def link xf86confOption xf86confKeyword | |
188 hi def link xf86confModeLine xf86confKeyword | |
189 hi def link xf86confKeyword Type | |
190 | |
191 hi def link xf86confDecimalNumber xf86confNumber | |
192 hi def link xf86confOctalNumber xf86confNumber | |
193 hi def link xf86confHexadecimalNumber xf86confNumber | |
194 hi def link xf86confFrequency xf86confNumber | |
195 hi def link xf86confModeLineValue Constant | |
196 hi def link xf86confNumber Constant | |
197 | |
198 hi def link xf86confSync xf86confConstant | |
199 hi def link xf86confConstant Special | |
200 hi def link xf86confSpecialChar Special | |
201 hi def link xf86confString String | |
202 | |
203 hi def link xf86confValue Constant | |
204 | |
205 let b:current_syntax = "xf86conf" |