Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/fstab.vim @ 34:e170173ecb68 current-release
before ack base protocol.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 26 Nov 2008 15:02:10 +0900 |
parents | 76efa0be13f1 |
children | c16898406ff2 |
comparison
equal
deleted
inserted
replaced
33:7d0d8b831f5a | 34:e170173ecb68 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: fstab file | 2 " Language: fstab file |
3 " Maintaner: Radu Dineiu <radu.dineiu@gmail.com> | 3 " Maintaner: Radu Dineiu <radu.dineiu@gmail.com> |
4 " URL: http://ld.yi.org/vim/fstab.vim | 4 " URL: http://ld.yi.org/vim/fstab.vim |
5 " Last Change: 2007 Apr 24 | 5 " Last Change: 2008 Jan 16 |
6 " Version: 0.91 | 6 " Version: 0.92 |
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> |
12 " James Vega <jamessan@debian.org> | |
12 " | 13 " |
13 " Options: | 14 " Options: |
14 " let fstab_unknown_fs_errors = 1 | 15 " let fstab_unknown_fs_errors = 1 |
15 " highlight unknown filesystems as errors | 16 " highlight unknown filesystems as errors |
16 | 17 |
21 endif | 22 endif |
22 | 23 |
23 " General | 24 " General |
24 syn cluster fsGeneralCluster contains=fsComment | 25 syn cluster fsGeneralCluster contains=fsComment |
25 syn match fsComment /\s*#.*/ | 26 syn match fsComment /\s*#.*/ |
26 syn match fsOperator /[,=:]/ | 27 syn match fsOperator /[,=:#]/ |
27 | 28 |
28 " Device | 29 " Device |
29 syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError | 30 syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError |
30 syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained | 31 syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained |
31 syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts sysfs usbfs | 32 syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts sysfs usbfs |
32 syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel | 33 syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel |
33 syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID | 34 syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID |
35 syn keyword fsDeviceKeyword contained sshfs nextgroup=fsDeviceSshfs | |
34 syn match fsDeviceKeyword contained /^[a-zA-Z0-9.\-]\+\ze:/ | 36 syn match fsDeviceKeyword contained /^[a-zA-Z0-9.\-]\+\ze:/ |
35 syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator | 37 syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
36 syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator | 38 syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
39 syn match fsDeviceSshfs contained /#[_=[:alnum:]\.\/+-]\+@[a-z0-9._-]\+\a\{2}:[^ \t]\+/hs=s+1 contains=fsOperator | |
37 | 40 |
38 " Mount Point | 41 " Mount Point |
39 syn cluster fsMountPointCluster contains=fsMountPointKeyword,fsMountPointError | 42 syn cluster fsMountPointCluster contains=fsMountPointKeyword,fsMountPointError |
40 syn match fsMountPointError /\%([^ \ta-zA-Z0-9_\/#@\.-]\|\s\+\zs\w\{-}\ze\s\)/ contained | 43 syn match fsMountPointError /\%([^ \ta-zA-Z0-9_\/#@\.-]\|\s\+\zs\w\{-}\ze\s\)/ contained |
41 syn keyword fsMountPointKeyword contained none swap | 44 syn keyword fsMountPointKeyword contained none swap |
42 | 45 |
43 " Type | 46 " Type |
44 syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown | 47 syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown |
45 syn match fsTypeUnknown /\s\+\zs\w\+/ contained | 48 syn match fsTypeUnknown /\s\+\zs\w\+/ contained |
46 syn keyword fsTypeKeyword contained adfs ados affs atfs audiofs auto autofs befs bfs cd9660 cfs cifs coda cramfs devfs devpts e2compr efs ext2 ext2fs ext3 fdesc ffs filecore hfs hpfs iso9660 jffs jffs2 jfs kernfs lfs linprocfs mfs minix msdos ncpfs nfs none ntfs null nwfs overlay ovlfs portal proc procfs ptyfs qnx4 reiserfs romfs shm smbfs std subfs swap sysfs sysv tcfs tmpfs udf ufs umap umsdos union usbfs userfs vfat vs3fs vxfs wrapfs wvfs xfs zisofs | 49 syn keyword fsTypeKeyword contained adfs ados affs atfs audiofs auto autofs befs bfs cd9660 cfs cifs coda cramfs devfs devpts e2compr efs ext2 ext2fs ext3 fdesc ffs filecore fuse hfs hpfs iso9660 jffs jffs2 jfs kernfs lfs linprocfs mfs minix msdos ncpfs nfs none ntfs null nwfs overlay ovlfs portal proc procfs ptyfs qnx4 reiserfs romfs shm smbfs sshfs std subfs swap sysfs sysv tcfs tmpfs udf ufs umap umsdos union usbfs userfs vfat vs3fs vxfs wrapfs wvfs xfs zisofs |
47 | 50 |
48 " Options | 51 " Options |
49 " ------- | 52 " ------- |
50 " Options: General | 53 " Options: General |
51 syn cluster fsOptionsCluster contains=fsOperator,fsOptionsGeneral,fsOptionsKeywords,fsTypeUnknown | 54 syn cluster fsOptionsCluster contains=fsOperator,fsOptionsGeneral,fsOptionsKeywords,fsTypeUnknown |
141 syn match fsOptionsKeywords contained /\<hash=/ nextgroup=fsOptionsReiserHash | 144 syn match fsOptionsKeywords contained /\<hash=/ nextgroup=fsOptionsReiserHash |
142 syn match fsOptionsKeywords contained /\<resize=/ nextgroup=fsOptionsNumber | 145 syn match fsOptionsKeywords contained /\<resize=/ nextgroup=fsOptionsNumber |
143 syn keyword fsOptionsReiserHash contained rupasov tea r5 detect | 146 syn keyword fsOptionsReiserHash contained rupasov tea r5 detect |
144 syn keyword fsOptionsKeywords contained hashed_relocation noborder nolog notail no_unhashed_relocation replayonly | 147 syn keyword fsOptionsKeywords contained hashed_relocation noborder nolog notail no_unhashed_relocation replayonly |
145 | 148 |
149 " Options: sshfs | |
150 syn match fsOptionsKeywords contained /\<\%(BatchMode\|ChallengeResponseAuthentication\|CheckHostIP\|ClearAllForwardings\|Compression\|EnableSSHKeysign\|ForwardAgent\|ForwardX11\|ForwardX11Trusted\|GatewayPorts\|GSSAPIAuthentication\|GSSAPIDelegateCredentials\|HashKnownHosts\|HostbasedAuthentication\|IdentitiesOnly\|NoHostAuthenticationForLocalhost\|PasswordAuthentication\|PubkeyAuthentication\|RhostsRSAAuthentication\|RSAAuthentication\|TCPKeepAlive\|UsePrivilegedPort\|cache\)=/ nextgroup=fsOptionsYesNo | |
151 syn match fsOptionsKeywords contained /\<\%(ControlMaster\|StrictHostKeyChecking\|VerifyHostKeyDNS\)=/ nextgroup=fsOptionsSshYesNoAsk | |
152 syn match fsOptionsKeywords contained /\<\%(AddressFamily\|BindAddress\|Cipher\|Ciphers\|ControlPath\|DynamicForward\|EscapeChar\|GlobalKnownHostsFile\|HostKeyAlgorithms\|HostKeyAlias\|HostName\|IdentityFile\|KbdInteractiveDevices\|LocalForward\|LogLevel\|MACs\|PreferredAuthentications\|Protocol\|ProxyCommand\|RemoteForward\|RhostsAuthentication\|SendEnv\|SmartcardDevice\|User\|UserKnownHostsFile\|XAuthLocation\|comment\|workaround\|idmap\|ssh_command\|sftp_server\|fsname\)=/ nextgroup=fsOptionsString | |
153 syn match fsOptionsKeywords contained /\<\%(CompressionLevel\|ConnectionAttempts\|ConnectTimeout\|NumberOfPasswordPrompts\|Port\|ServerAliveCountMax\|ServerAliveInterval\|cache_timeout\|cache_X_timeout\|ssh_protocol\|directport\|max_read\|umask\|uid\|gid\|entry_timeout\|negative_timeout\|attr_timeout\)=/ nextgroup=fsOptionsNumber | |
154 syn keyword fsOptionsKeywords contained reconnect sshfs_sync no_readahead sshfs_debug transform_symlinks allow_other allow_root nonempty default_permissions large_read hard_remove use_ino readdir_ino direct_io kernel_cache | |
155 syn keyword fsOptionsSshYesNoAsk contained yes no ask | |
156 | |
146 " Options: subfs | 157 " Options: subfs |
147 syn match fsOptionsKeywords contained /\<fs=/ nextgroup=fsOptionsString | 158 syn match fsOptionsKeywords contained /\<fs=/ nextgroup=fsOptionsString |
148 syn keyword fsOptionsKeywords contained procuid | 159 syn keyword fsOptionsKeywords contained procuid |
149 | 160 |
150 " Options: swap | 161 " Options: swap |
206 | 217 |
207 HiLink fsTypeKeyword Type | 218 HiLink fsTypeKeyword Type |
208 HiLink fsDeviceKeyword Identifier | 219 HiLink fsDeviceKeyword Identifier |
209 HiLink fsDeviceLabel String | 220 HiLink fsDeviceLabel String |
210 HiLink fsDeviceUUID String | 221 HiLink fsDeviceUUID String |
222 HiLink fsDeviceSshfs String | |
211 HiLink fsFreqPassNumber Number | 223 HiLink fsFreqPassNumber Number |
212 | 224 |
213 if exists('fstab_unknown_fs_errors') && fstab_unknown_fs_errors == 1 | 225 if exists('fstab_unknown_fs_errors') && fstab_unknown_fs_errors == 1 |
214 HiLink fsTypeUnknown Error | 226 HiLink fsTypeUnknown Error |
215 endif | 227 endif |
228 | |
216 HiLink fsDeviceError Error | 229 HiLink fsDeviceError Error |
217 HiLink fsMountPointError Error | 230 HiLink fsMountPointError Error |
218 HiLink fsMountPointKeyword Keyword | 231 HiLink fsMountPointKeyword Keyword |
219 HiLink fsFreqPassError Error | 232 HiLink fsFreqPassError Error |
220 | 233 |
233 HiLink fsOptionsFatType Number | 246 HiLink fsOptionsFatType Number |
234 HiLink fsOptionsYesNo String | 247 HiLink fsOptionsYesNo String |
235 HiLink fsOptionsHpfsCase String | 248 HiLink fsOptionsHpfsCase String |
236 HiLink fsOptionsIsoMap String | 249 HiLink fsOptionsIsoMap String |
237 HiLink fsOptionsReiserHash String | 250 HiLink fsOptionsReiserHash String |
251 HiLink fsOptionsSshYesNoAsk String | |
238 HiLink fsOptionsUfsType String | 252 HiLink fsOptionsUfsType String |
239 HiLink fsOptionsUfsError String | 253 HiLink fsOptionsUfsError String |
240 | 254 |
241 HiLink fsOptionsVfatShortname String | 255 HiLink fsOptionsVfatShortname String |
242 | 256 |