Mercurial > vim
comparison runtime/syntax/fstab.vim @ 12826:f690da1b3c04
Update runtime files.
commit https://github.com/vim/vim/commit/7f2e9d7c9cdfc5201a899b7b610edf64bf80c45f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 11 20:58:53 2017 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 11 Nov 2017 21:00:05 +0100 |
parents | 46763b01cd9a |
children | d23afa4d8b63 |
comparison
equal
deleted
inserted
replaced
12825:4c1a7b0a6f5c | 12826:f690da1b3c04 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: fstab file | 2 " Language: fstab file |
3 " Maintainer: Radu Dineiu <radu.dineiu@gmail.com> | 3 " Maintainer: Radu Dineiu <radu.dineiu@gmail.com> |
4 " URL: https://raw.github.com/rid9/vim-fstab/master/fstab.vim | 4 " URL: https://raw.github.com/rid9/vim-fstab/master/fstab.vim |
5 " Last Change: 2013 May 21 | 5 " Last Change: 2017 Nov 09 |
6 " Version: 1.0 | 6 " Version: 1.2 |
7 " | 7 " |
8 " Credits: | 8 " Credits: |
9 " David Necas (Yeti) <yeti@physics.muni.cz> | 9 " David Necas (Yeti) <yeti@physics.muni.cz> |
10 " Stefano Zacchiroli <zack@debian.org> | 10 " Stefano Zacchiroli <zack@debian.org> |
11 " Georgi Georgiev <chutz@gg3.net> | 11 " Georgi Georgiev <chutz@gg3.net> |
36 syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError | 36 syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError |
37 syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained | 37 syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained |
38 syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts devtmpfs sysfs usbfs | 38 syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts devtmpfs sysfs usbfs |
39 syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel | 39 syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel |
40 syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID | 40 syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID |
41 syn keyword fsDeviceKeyword contained PARTLABEL nextgroup=fsDevicePARTLABEL | |
42 syn keyword fsDeviceKeyword contained PARTUUID nextgroup=fsDevicePARTUUID | |
41 syn keyword fsDeviceKeyword contained sshfs nextgroup=fsDeviceSshfs | 43 syn keyword fsDeviceKeyword contained sshfs nextgroup=fsDeviceSshfs |
42 syn match fsDeviceKeyword contained /^[a-zA-Z0-9.\-]\+\ze:/ | 44 syn match fsDeviceKeyword contained /^[a-zA-Z0-9.\-]\+\ze:/ |
43 syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator | 45 syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
44 syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator | 46 syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
47 syn match fsDevicePARTLABEL contained /=[^ \t]\+/hs=s+1 contains=fsOperator | |
48 syn match fsDevicePARTUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator | |
45 syn match fsDeviceSshfs contained /#[_=[:alnum:]\.\/+-]\+@[a-z0-9._-]\+\a\{2}:[^ \t]\+/hs=s+1 contains=fsOperator | 49 syn match fsDeviceSshfs contained /#[_=[:alnum:]\.\/+-]\+@[a-z0-9._-]\+\a\{2}:[^ \t]\+/hs=s+1 contains=fsOperator |
46 | 50 |
47 " Mount Point | 51 " Mount Point |
48 syn cluster fsMountPointCluster contains=fsMountPointKeyword,fsMountPointError | 52 syn cluster fsMountPointCluster contains=fsMountPointKeyword,fsMountPointError |
49 syn match fsMountPointError /\%([^ \ta-zA-Z0-9_\/#@\.-]\|\s\+\zs\w\{-}\ze\s\)/ contained | 53 syn match fsMountPointError /\%([^ \ta-zA-Z0-9_\/#@\.-]\|\s\+\zs\w\{-}\ze\s\)/ contained |
62 syn match fsOptionsNumberOctal /[0-8]\+/ | 66 syn match fsOptionsNumberOctal /[0-8]\+/ |
63 syn match fsOptionsString /[a-zA-Z0-9_-]\+/ | 67 syn match fsOptionsString /[a-zA-Z0-9_-]\+/ |
64 syn keyword fsOptionsYesNo yes no | 68 syn keyword fsOptionsYesNo yes no |
65 syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck | 69 syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck |
66 syn keyword fsOptionsSize 512 1024 2048 | 70 syn keyword fsOptionsSize 512 1024 2048 |
67 syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand nosuid nosymfollow nouser owner rbind rdonly remount ro rq rw suid suiddir supermount sw sync union update user users xx | 71 syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand norelatime nosuid nosymfollow nouser owner rbind rdonly relatime remount ro rq rw suid suiddir supermount sw sync union update user users wxallowed xx |
68 syn match fsOptionsGeneral /_netdev/ | 72 syn match fsOptionsGeneral /_netdev/ |
69 | 73 |
70 " Options: adfs | 74 " Options: adfs |
71 syn match fsOptionsKeywords contained /\<\%([ug]id\|o\%(wn\|th\)mask\)=/ nextgroup=fsOptionsNumber | 75 syn match fsOptionsKeywords contained /\<\%([ug]id\|o\%(wn\|th\)mask\)=/ nextgroup=fsOptionsNumber |
72 | 76 |
135 syn match fsOptionsKeywords contained /\<\%(creator|type\)=/ nextgroup=fsOptionsString | 139 syn match fsOptionsKeywords contained /\<\%(creator|type\)=/ nextgroup=fsOptionsString |
136 syn match fsOptionsKeywords contained /\<\%(dir\|file\|\)_umask=/ nextgroup=fsOptionsNumberOctal | 140 syn match fsOptionsKeywords contained /\<\%(dir\|file\|\)_umask=/ nextgroup=fsOptionsNumberOctal |
137 syn match fsOptionsKeywords contained /\<\%(session\|part\)=/ nextgroup=fsOptionsNumber | 141 syn match fsOptionsKeywords contained /\<\%(session\|part\)=/ nextgroup=fsOptionsNumber |
138 | 142 |
139 " Options: ffs | 143 " Options: ffs |
140 syn keyword fsOptionsKeyWords contained softdep | 144 syn keyword fsOptionsKeyWords contained noperm softdep |
141 | 145 |
142 " Options: hpfs | 146 " Options: hpfs |
143 syn match fsOptionsKeywords contained /\<case=/ nextgroup=fsOptionsHpfsCase | 147 syn match fsOptionsKeywords contained /\<case=/ nextgroup=fsOptionsHpfsCase |
144 syn keyword fsOptionsHpfsCase contained lower asis | 148 syn keyword fsOptionsHpfsCase contained lower asis |
145 | 149 |
226 syn match fsFreqPass /\s\+.\{-}$/ contains=@fsFreqPassCluster,@fsGeneralCluster contained | 230 syn match fsFreqPass /\s\+.\{-}$/ contains=@fsFreqPassCluster,@fsGeneralCluster contained |
227 | 231 |
228 " Whole line comments | 232 " Whole line comments |
229 syn match fsCommentLine /^#.*$/ contains=@Spell | 233 syn match fsCommentLine /^#.*$/ contains=@Spell |
230 | 234 |
231 | |
232 hi def link fsOperator Operator | 235 hi def link fsOperator Operator |
233 hi def link fsComment Comment | 236 hi def link fsComment Comment |
234 hi def link fsCommentLine Comment | 237 hi def link fsCommentLine Comment |
235 | 238 |
236 hi def link fsTypeKeyword Type | 239 hi def link fsTypeKeyword Type |
237 hi def link fsDeviceKeyword Identifier | 240 hi def link fsDeviceKeyword Identifier |
238 hi def link fsDeviceLabel String | 241 hi def link fsDeviceLabel String |
239 hi def link fsDeviceUUID String | 242 hi def link fsDeviceUUID String |
243 hi def link fsDevicePARTLABEL String | |
244 hi def link fsDevicePARTUUID String | |
240 hi def link fsDeviceSshfs String | 245 hi def link fsDeviceSshfs String |
241 hi def link fsFreqPassNumber Number | 246 hi def link fsFreqPassNumber Number |
242 | 247 |
243 if exists('fstab_unknown_fs_errors') && fstab_unknown_fs_errors == 1 | 248 if exists('fstab_unknown_fs_errors') && fstab_unknown_fs_errors == 1 |
244 hi def link fsTypeUnknown Error | 249 hi def link fsTypeUnknown Error |
245 endif | 250 endif |
246 | 251 |
247 if !exists('fstab_unknown_device_errors') || fstab_unknown_device_errors == 1 | 252 if !exists('fstab_unknown_device_errors') || fstab_unknown_device_errors == 1 |
248 hi def link fsDeviceError Error | 253 hi def link fsDeviceError Error |
249 endif | 254 endif |
250 | 255 |
251 hi def link fsMountPointError Error | 256 hi def link fsMountPointError Error |
252 hi def link fsMountPointKeyword Keyword | 257 hi def link fsMountPointKeyword Keyword |
253 hi def link fsFreqPassError Error | 258 hi def link fsFreqPassError Error |
276 hi def link fsOptionsUfsType String | 281 hi def link fsOptionsUfsType String |
277 hi def link fsOptionsUfsError String | 282 hi def link fsOptionsUfsError String |
278 | 283 |
279 hi def link fsOptionsVfatShortname String | 284 hi def link fsOptionsVfatShortname String |
280 | 285 |
281 | |
282 let b:current_syntax = "fstab" | 286 let b:current_syntax = "fstab" |
283 | 287 |
284 let &cpo = s:cpo_save | 288 let &cpo = s:cpo_save |
285 unlet s:cpo_save | 289 unlet s:cpo_save |
286 | 290 |