annotate runtime/syntax/fstab.vim @ 2451:0b8612c2814d vim73

Fix: changing case of a character removed combining characters.
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 14:22:48 +0200
parents 7bc41231fbc7
children 605c9ce57ec3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
2 " Language: fstab file
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
3 " Maintaner: Radu Dineiu <radu.dineiu@gmail.com>
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
4 " URL: http://ld.yi.org/vim/fstab.vim
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
5 " Last Change: 2009 Feb 04
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
6 " Version: 0.93
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
7 "
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
8 " Credits:
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
9 " David Necas (Yeti) <yeti@physics.muni.cz>
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
10 " Stefano Zacchiroli <zack@debian.org>
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
11 " Georgi Georgiev <chutz@gg3.net>
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
12 " James Vega <jamessan@debian.org>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
13 " Elias Probst <mail@eliasprobst.eu>
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
14 "
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
15 " Options:
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
16 " let fstab_unknown_fs_errors = 1
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
17 " highlight unknown filesystems as errors
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " General
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn cluster fsGeneralCluster contains=fsComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match fsComment /\s*#.*/
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
28 syn match fsOperator /[,=:#]/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Device
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
32 syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
33 syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts sysfs usbfs
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
35 syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
36 syn keyword fsDeviceKeyword contained sshfs nextgroup=fsDeviceSshfs
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
37 syn match fsDeviceKeyword contained /^[a-zA-Z0-9.\-]\+\ze:/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
39 syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
40 syn match fsDeviceSshfs contained /#[_=[:alnum:]\.\/+-]\+@[a-z0-9._-]\+\a\{2}:[^ \t]\+/hs=s+1 contains=fsOperator
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Mount Point
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn cluster fsMountPointCluster contains=fsMountPointKeyword,fsMountPointError
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
44 syn match fsMountPointError /\%([^ \ta-zA-Z0-9_\/#@\.-]\|\s\+\zs\w\{-}\ze\s\)/ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword fsMountPointKeyword contained none swap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Type
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
48 syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
49 syn match fsTypeUnknown /\s\+\zs\w\+/ contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
50 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 ext4 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
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " -------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " Options: General
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
55 syn cluster fsOptionsCluster contains=fsOperator,fsOptionsGeneral,fsOptionsKeywords,fsTypeUnknown
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match fsOptionsNumber /\d\+/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match fsOptionsNumberOctal /[0-8]\+/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match fsOptionsString /[a-zA-Z0-9_-]\+/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword fsOptionsYesNo yes no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword fsOptionsSize 512 1024 2048
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
62 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
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match fsOptionsGeneral /_netdev/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " Options: adfs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
66 syn match fsOptionsKeywords contained /\<\%([ug]id\|o\%(wn\|th\)mask\)=/ nextgroup=fsOptionsNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " Options: affs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
69 syn match fsOptionsKeywords contained /\<\%(set[ug]id\|mode\|reserved\)=/ nextgroup=fsOptionsNumber
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
70 syn match fsOptionsKeywords contained /\<\%(prefix\|volume\|root\)=/ nextgroup=fsOptionsString
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
71 syn match fsOptionsKeywords contained /\<bs=/ nextgroup=fsOptionsSize
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword fsOptionsKeywords contained protect usemp verbose
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " Options: cd9660
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword fsOptionsKeywords contained extatt gens norrip nostrictjoilet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " Options: devpts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " -- everything already defined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " Options: ext2
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
81 syn match fsOptionsKeywords contained /\<check=*/ nextgroup=@fsOptionsCheckCluster
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
82 syn match fsOptionsKeywords contained /\<errors=/ nextgroup=fsOptionsExt2Errors
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
83 syn match fsOptionsKeywords contained /\<\%(res[gu]id\|sb\)=/ nextgroup=fsOptionsNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword fsOptionsExt2Check contained none normal strict
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword fsOptionsExt2Errors contained continue panic
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
86 syn match fsOptionsExt2Errors contained /\<remount-ro\>/
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
87 syn keyword fsOptionsKeywords contained acl bsddf minixdf debug grpid bsdgroups minixdf noacl nocheck nogrpid oldalloc orlov sysvgroups nouid32 nobh user_xattr nouser_xattr
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 " Options: ext3
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
90 syn match fsOptionsKeywords contained /\<journal=/ nextgroup=fsOptionsExt3Journal
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
91 syn match fsOptionsKeywords contained /\<data=/ nextgroup=fsOptionsExt3Data
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
92 syn match fsOptionsKeywords contained /\<commit=/ nextgroup=fsOptionsNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword fsOptionsExt3Journal contained update inum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword fsOptionsExt3Data contained journal ordered writeback
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
95 syn keyword fsOptionsKeywords contained noload user_xattr nouser_xattr acl noacl
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
96
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
97 " Options: ext4
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
98 syn match fsOptionsKeywords contained /\<journal=/ nextgroup=fsOptionsExt4Journal
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
99 syn match fsOptionsKeywords contained /\<data=/ nextgroup=fsOptionsExt4Data
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
100 syn match fsOptionsKeywords contained /\<barrier=/ nextgroup=fsOptionsExt4Barrier
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
101 syn match fsOptionsKeywords contained /\<journal_dev=/ nextgroup=fsOptionsNumber
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
102 syn match fsOptionsKeywords contained /\<resuid=/ nextgroup=fsOptionsNumber
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
103 syn match fsOptionsKeywords contained /\<resgid=/ nextgroup=fsOptionsNumber
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
104 syn match fsOptionsKeywords contained /\<sb=/ nextgroup=fsOptionsNumber
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
105 syn match fsOptionsKeywords contained /\<commit=/ nextgroup=fsOptionsNumber
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
106 syn keyword fsOptionsExt4Journal contained update inum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
107 syn keyword fsOptionsExt4Data contained journal ordered writeback
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
108 syn match fsOptionsExt4Barrier /[0-1]/
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
109 syn keyword fsOptionsKeywords contained noload extents orlov oldalloc user_xattr nouser_xattr acl noacl reservation noreservation bsddf minixdf check=none nocheck debug grpid nogroupid sysvgroups bsdgroups quota noquota grpquota usrquota bh nobh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 " Options: fat
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
112 syn match fsOptionsKeywords contained /\<blocksize=/ nextgroup=fsOptionsSize
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
113 syn match fsOptionsKeywords contained /\<\%([dfu]mask\|codepage\)=/ nextgroup=fsOptionsNumberOctal
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn match fsOptionsKeywords contained /\%(cvf_\%(format\|option\)\|iocharset\)=/ nextgroup=fsOptionsString
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
115 syn match fsOptionsKeywords contained /\<check=/ nextgroup=@fsOptionsCheckCluster
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
116 syn match fsOptionsKeywords contained /\<conv=*/ nextgroup=fsOptionsConv
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
117 syn match fsOptionsKeywords contained /\<fat=/ nextgroup=fsOptionsFatType
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
118 syn match fsOptionsKeywords contained /\<dotsOK=/ nextgroup=fsOptionsYesNo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword fsOptionsFatCheck contained r n s relaxed normal strict
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword fsOptionsConv contained b t a binary text auto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword fsOptionsFatType contained 12 16 32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword fsOptionsKeywords contained quiet sys_immutable showexec dots nodots
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
124 " Options: hfs
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
125 syn match fsOptionsKeywords contained /\<\%(creator|type\)=/ nextgroup=fsOptionsString
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
126 syn match fsOptionsKeywords contained /\<\%(dir\|file\|\)_umask=/ nextgroup=fsOptionsNumberOctal
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
127 syn match fsOptionsKeywords contained /\<\%(session\|part\)=/ nextgroup=fsOptionsNumber
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
128
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
129 " Options: ffs
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
130 syn keyword fsOptionsKeyWords contained softdep
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
131
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " Options: hpfs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
133 syn match fsOptionsKeywords contained /\<case=/ nextgroup=fsOptionsHpfsCase
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword fsOptionsHpfsCase contained lower asis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 " Options: iso9660
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
137 syn match fsOptionsKeywords contained /\<map=/ nextgroup=fsOptionsIsoMap
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
138 syn match fsOptionsKeywords contained /\<block=/ nextgroup=fsOptionsSize
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
139 syn match fsOptionsKeywords contained /\<\%(session\|sbsector\)=/ nextgroup=fsOptionsNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn keyword fsOptionsIsoMap contained n o a normal off acorn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword fsOptionsKeywords contained norock nojoilet unhide cruft
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword fsOptionsConv contained m mtext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
144 " Options: jfs
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
145 syn keyword fsOptionsKeywords nointegrity integrity
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
146
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " Options: nfs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
148 syn match fsOptionsKeywords contained /\<\%(rsize\|wsize\|timeo\|retrans\|acregmin\|acregmax\|acdirmin\|acdirmax\|actimeo\|retry\|port\|mountport\|mounthost\|mountprog\|mountvers\|nfsprog\|nfsvers\|namelen\)=/ nextgroup=fsOptionsString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword fsOptionsKeywords contained bg fg soft hard intr cto ac tcp udp lock nobg nofg nosoft nohard nointr noposix nocto noac notcp noudp nolock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 " Options: ntfs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
152 syn match fsOptionsKeywords contained /\<\%(posix=*\|uni_xlate=\)/ nextgroup=fsOptionsNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword fsOptionsKeywords contained utf8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 " Options: proc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 " -- everything already defined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 " Options: reiserfs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
159 syn match fsOptionsKeywords contained /\<hash=/ nextgroup=fsOptionsReiserHash
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
160 syn match fsOptionsKeywords contained /\<resize=/ nextgroup=fsOptionsNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword fsOptionsReiserHash contained rupasov tea r5 detect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword fsOptionsKeywords contained hashed_relocation noborder nolog notail no_unhashed_relocation replayonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
164 " Options: sshfs
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
165 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
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
166 syn match fsOptionsKeywords contained /\<\%(ControlMaster\|StrictHostKeyChecking\|VerifyHostKeyDNS\)=/ nextgroup=fsOptionsSshYesNoAsk
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
167 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
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
168 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
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
169 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
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
170 syn keyword fsOptionsSshYesNoAsk contained yes no ask
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
171
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
172 " Options: subfs
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
173 syn match fsOptionsKeywords contained /\<fs=/ nextgroup=fsOptionsString
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
174 syn keyword fsOptionsKeywords contained procuid
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
175
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
176 " Options: swap
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
177 syn match fsOptionsKeywords contained /\<pri=/ nextgroup=fsOptionsNumber
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
178
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
179 " Options: tmpfs
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
180 syn match fsOptionsKeywords contained /\<nr_\%(blocks\|inodes\)=/ nextgroup=fsOptionsNumber
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
181
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 " Options: udf
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
183 syn match fsOptionsKeywords contained /\<\%(anchor\|partition\|lastblock\|fileset\|rootdir\)=/ nextgroup=fsOptionsString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword fsOptionsKeywords contained unhide undelete strict novrs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 " Options: ufs
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
187 syn match fsOptionsKeywords contained /\<ufstype=/ nextgroup=fsOptionsUfsType
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
188 syn match fsOptionsKeywords contained /\<onerror=/ nextgroup=fsOptionsUfsError
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
189 syn keyword fsOptionsUfsType contained old hp 44bsd sun sunx86 nextstep openstep
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
190 syn match fsOptionsUfsType contained /\<nextstep-cd\>/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn keyword fsOptionsUfsError contained panic lock umount repair
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
193 " Options: usbfs
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
194 syn match fsOptionsKeywords contained /\<\%(dev\|bus\|list\)\%(id\|gid\)=/ nextgroup=fsOptionsNumber
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
195 syn match fsOptionsKeywords contained /\<\%(dev\|bus\|list\)mode=/ nextgroup=fsOptionsNumberOctal
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
196
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 " Options: vfat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn keyword fsOptionsKeywords contained nonumtail posix utf8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn match fsOptionsKeywords contained /shortname=/ nextgroup=fsOptionsVfatShortname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn keyword fsOptionsVfatShortname contained lower win95 winnt mixed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 " Options: xfs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match fsOptionsKeywords contained /\%(biosize\|logbufs\|logbsize\|logdev\|rtdev\|sunit\|swidth\)=/ nextgroup=fsOptionsString
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
204 syn keyword fsOptionsKeywords contained dmapi xdsm noalign noatime noquota norecovery osyncisdsync quota usrquota uqnoenforce grpquota gqnoenforce
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 " Frequency / Pass No.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn cluster fsFreqPassCluster contains=fsFreqPassNumber,fsFreqPassError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match fsFreqPassError /\s\+\zs\%(\D.*\|\S.*\|\d\+\s\+[^012]\)\ze/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn match fsFreqPassNumber /\d\+\s\+[012]\s*/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 " Groups
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn match fsDevice /^\s*\zs.\{-1,}\s/me=e-1 nextgroup=fsMountPoint contains=@fsDeviceCluster,@fsGeneralCluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn match fsMountPoint /\s\+.\{-}\s/me=e-1 nextgroup=fsType contains=@fsMountPointCluster,@fsGeneralCluster contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn match fsType /\s\+.\{-}\s/me=e-1 nextgroup=fsOptions contains=@fsTypeCluster,@fsGeneralCluster contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn match fsOptions /\s\+.\{-}\s/me=e-1 nextgroup=fsFreqPass contains=@fsOptionsCluster,@fsGeneralCluster contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn match fsFreqPass /\s\+.\{-}$/ contains=@fsFreqPassCluster,@fsGeneralCluster contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 " Whole line comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match fsCommentLine /^#.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 if version >= 508 || !exists("did_config_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 let did_config_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 command! -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 command! -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 HiLink fsOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 HiLink fsComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 HiLink fsCommentLine Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 HiLink fsTypeKeyword Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 HiLink fsDeviceKeyword Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 HiLink fsDeviceLabel String
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
236 HiLink fsDeviceUUID String
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
237 HiLink fsDeviceSshfs String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 HiLink fsFreqPassNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
1118
2b8ff9e3c520 updated for version 7.1a
vimboss
parents: 834
diff changeset
240 if exists('fstab_unknown_fs_errors') && fstab_unknown_fs_errors == 1
834
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
241 HiLink fsTypeUnknown Error
5117153003bd updated for version 7.0e
vimboss
parents: 397
diff changeset
242 endif
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
243
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 HiLink fsDeviceError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 HiLink fsMountPointError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 HiLink fsMountPointKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 HiLink fsFreqPassError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 HiLink fsOptionsGeneral Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 HiLink fsOptionsKeywords Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 HiLink fsOptionsNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 HiLink fsOptionsNumberOctal Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 HiLink fsOptionsString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 HiLink fsOptionsSize Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 HiLink fsOptionsExt2Check String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 HiLink fsOptionsExt2Errors String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 HiLink fsOptionsExt3Journal String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 HiLink fsOptionsExt3Data String
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
259 HiLink fsOptionsExt4Journal String
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
260 HiLink fsOptionsExt4Data String
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1618
diff changeset
261 HiLink fsOptionsExt4Barrier Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 HiLink fsOptionsFatCheck String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 HiLink fsOptionsConv String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 HiLink fsOptionsFatType Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 HiLink fsOptionsYesNo String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 HiLink fsOptionsHpfsCase String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 HiLink fsOptionsIsoMap String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 HiLink fsOptionsReiserHash String
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1118
diff changeset
269 HiLink fsOptionsSshYesNoAsk String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 HiLink fsOptionsUfsType String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 HiLink fsOptionsUfsError String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 HiLink fsOptionsVfatShortname String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 let b:current_syntax = "fstab"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 " vim: ts=8 ft=vim