Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 2 | " Language: fstab file |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 3 | " Maintainer: Radu Dineiu <radu.dineiu@gmail.com> |
Bram Moolenaar | 7e6a515 | 2021-01-02 16:39:53 +0100 | [diff] [blame] | 4 | " URL: https://raw.github.com/rid9/vim-fstab/master/syntax/fstab.vim |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 5 | " Last Change: 2024 Jul 11 |
| 6 | " Version: 1.6.4 |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 7 | " |
| 8 | " Credits: |
| 9 | " David Necas (Yeti) <yeti@physics.muni.cz> |
| 10 | " Stefano Zacchiroli <zack@debian.org> |
| 11 | " Georgi Georgiev <chutz@gg3.net> |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 12 | " James Vega <jamessan@debian.org> |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 13 | " Elias Probst <mail@eliasprobst.eu> |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 14 | |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 15 | " Options: |
| 16 | " let fstab_unknown_fs_errors = 1 |
| 17 | " highlight unknown filesystems as errors |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 18 | " |
| 19 | " let fstab_unknown_device_errors = 0 |
| 20 | " do not highlight unknown devices as errors |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 21 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 22 | " quit when a syntax file was already loaded |
| 23 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | finish |
| 25 | endif |
| 26 | |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 27 | let s:cpo_save = &cpo |
| 28 | set cpo&vim |
| 29 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 30 | " General |
| 31 | syn cluster fsGeneralCluster contains=fsComment |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 32 | syn match fsComment /\s*#.*/ contains=@Spell |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 33 | syn match fsOperator /[,=:#]/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 34 | |
| 35 | " Device |
| 36 | syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 37 | syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 38 | syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts devtmpfs sysfs usbfs tracefs overlay |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 39 | syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 40 | syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID |
Bram Moolenaar | 7f2e9d7 | 2017-11-11 20:58:53 +0100 | [diff] [blame] | 41 | syn keyword fsDeviceKeyword contained PARTLABEL nextgroup=fsDevicePARTLABEL |
| 42 | syn keyword fsDeviceKeyword contained PARTUUID nextgroup=fsDevicePARTUUID |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 43 | syn keyword fsDeviceKeyword contained sshfs nextgroup=fsDeviceSshfs |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 44 | syn match fsDeviceKeyword contained /^[a-zA-Z0-9.\-]\+\ze:/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 45 | syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 46 | syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
Bram Moolenaar | 7f2e9d7 | 2017-11-11 20:58:53 +0100 | [diff] [blame] | 47 | syn match fsDevicePARTLABEL contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
| 48 | syn match fsDevicePARTUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 49 | syn match fsDeviceSshfs contained /#[_=[:alnum:]\.\/+-]\+@[a-z0-9._-]\+\a\{2}:[^ \t]\+/hs=s+1 contains=fsOperator |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 50 | |
| 51 | " Mount Point |
| 52 | syn cluster fsMountPointCluster contains=fsMountPointKeyword,fsMountPointError |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 53 | syn match fsMountPointError /\%([^ \ta-zA-Z0-9_\/#@\.-]\|\s\+\zs\w\{-}\ze\s\)/ contained |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 54 | syn keyword fsMountPointKeyword contained none swap |
| 55 | |
| 56 | " Type |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 57 | syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown |
| 58 | syn match fsTypeUnknown /\s\+\zs\w\+/ contained |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 59 | syn keyword fsTypeKeyword contained adfs ados affs anon_inodefs atfs audiofs auto autofs bdev befs bfs btrfs binfmt_misc cd9660 ceph cfs cgroup cifs coda coherent configfs cpuset cramfs debugfs devfs devpts devtmpfs dlmfs e2compr ecryptfs efivarfs efs erofs exfat ext2 ext2fs ext3 ext4 f2fs fdesc ffs filecore fuse fuseblk fusectl gfs2 hfs hfsplus hpfs hugetlbfs iso9660 jffs jffs2 jfs kernfs lfs linprocfs mfs minix mqueue msdos ncpfs nfs nfs4 nfsd nilfs2 none ntfs ntfs3 null nwfs ocfs2 omfs overlay ovlfs pipefs portal proc procfs pstore ptyfs pvfs2 qnx4 qnx6 reiserfs ramfs romfs rpc_pipefs securityfs shm smbfs spufs squashfs sockfs sshfs std subfs swap sysfs sysv tcfs tmpfs tracefs ubifs udf ufs umap umsdos union usbfs userfs v9fs vfat virtiofs vs3fs vxfs wrapfs wvfs xenfs xenix xfs zisofs zonefs |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 60 | |
| 61 | " Options |
| 62 | " ------- |
| 63 | " Options: General |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 64 | syn cluster fsOptionsCluster contains=fsOperator,fsOptionsGeneral,fsOptionsKeywords,fsTypeUnknown |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 65 | syn match fsOptionsNumber /\d\+/ |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 66 | syn match fsOptionsNumberSigned /[-+]\?\d\+/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 67 | syn match fsOptionsNumberOctal /[0-8]\+/ |
| 68 | syn match fsOptionsString /[a-zA-Z0-9_-]\+/ |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 69 | syn keyword fsOptionsTrueFalse true false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | syn keyword fsOptionsYesNo yes no |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 71 | syn keyword fsOptionsYN y n |
| 72 | syn keyword fsOptions01 0 1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 73 | syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck |
| 74 | syn keyword fsOptionsSize 512 1024 2048 |
Bram Moolenaar | f1dcd14 | 2022-12-31 15:30:45 +0000 | [diff] [blame] | 75 | syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop managed mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand norelatime nosuid nosymfollow nouser owner pamconsole rbind rdonly relatime remount ro rq rw suid suiddir supermount sw sync union update user users wxallowed xx nofail failok lazytime |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 76 | syn match fsOptionsGeneral /_netdev/ |
| 77 | |
Bram Moolenaar | f1dcd14 | 2022-12-31 15:30:45 +0000 | [diff] [blame] | 78 | syn match fsOptionsKeywords contained /\<x-systemd\.\%(requires\|before\|after\|wanted-by\|required-by\|requires-mounts-for\|idle-timeout\|device-timeout\|mount-timeout\)=/ nextgroup=fsOptionsString |
| 79 | syn match fsOptionsKeywords contained /\<x-systemd\.\%(device-bound\|automount\|makefs\|growfs\|rw-only\)/ |
| 80 | syn match fsOptionsKeywords contained /\<x-initrd\.mount/ |
| 81 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 82 | syn match fsOptionsKeywords contained /\<cache=/ nextgroup=fsOptionsCache |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 83 | syn keyword fsOptionsCache contained yes no none strict loose fscache mmap |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 84 | |
| 85 | syn match fsOptionsKeywords contained /\<dax=/ nextgroup=fsOptionsDax |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 86 | syn keyword fsOptionsDax contained inode never always |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 87 | |
| 88 | syn match fsOptionsKeywords contained /\<errors=/ nextgroup=fsOptionsErrors |
| 89 | syn keyword fsOptionsErrors contained continue panic withdraw remount-ro recover zone-ro zone-offline repair |
| 90 | |
| 91 | syn match fsOptionsKeywords contained /\<\%(sec\)=/ nextgroup=fsOptionsSecurityMode |
| 92 | syn keyword fsOptionsSecurityMode contained none krb5 krb5i ntlm ntlmi ntlmv2 ntlmv2i ntlmssp ntlmsspi sys lkey lkeyi lkeyp spkm spkmi spkmp |
| 93 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 94 | " Options: adfs |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 95 | syn match fsOptionsKeywords contained /\<\%([ug]id\|o\%(wn\|th\)mask\)=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 96 | syn match fsOptionsKeywords contained /\<ftsuffix=/ nextgroup=fsOptions01 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 97 | |
| 98 | " Options: affs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 99 | syn match fsOptionsKeywords contained /\<mode=/ nextgroup=fsOptionsString |
| 100 | syn match fsOptionsKeywords contained /\<\%(set[ug]id\|reserved\)=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 101 | syn match fsOptionsKeywords contained /\<\%(prefix\|volume\|root\)=/ nextgroup=fsOptionsString |
| 102 | syn match fsOptionsKeywords contained /\<bs=/ nextgroup=fsOptionsSize |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 103 | syn keyword fsOptionsKeywords contained protect usemp verbose nofilenametruncate mufs |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 104 | |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 105 | " Options: btrfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 106 | syn match fsOptionsKeywords contained /\<\%(subvol\|subvolid\|subvolrootid\|device\|compress\|compress-force\|check_int_print_mask\|space_cache\)=/ nextgroup=fsOptionsString |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 107 | syn match fsOptionsKeywords contained /\<\%(max_inline\|alloc_start\|thread_pool\|metadata_ratio\|check_int_print_mask\)=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 108 | syn match fsOptionsKeywords contained /\<discard=/ nextgroup=fsOptionsBtrfsDiscard |
| 109 | syn keyword fsOptionsBtrfsDiscard sync async |
| 110 | syn match fsOptionsKeywords contained /\<fatal_errors=/ nextgroup=fsOptionsBtrfsFatalErrors |
| 111 | syn keyword fsOptionsBtrfsFatalErrors bug panic |
| 112 | syn match fsOptionsKeywords contained /\<fragment=/ nextgroup=fsOptionsBtrfsFragment |
| 113 | syn keyword fsOptionsBtrfsFragment data metadata all |
| 114 | syn keyword fsOptionsKeywords contained degraded datasum nodatasum datacow nodatacow barrier nobarrier ssd ssd_spread nossd nossd_spread noacl treelog notreelog flushoncommit noflushoncommit space_cache nospace_cache clear_cache user_subvol_rm_allowed autodefrag noautodefrag inode_cache noinode_cache enospc_debug noenospc_debug recovery check_int check_int_data skip_balance discard nodiscard compress compress-force nologreplay rescan_uuid_tree rescue usebackuproot |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 115 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 116 | " Options: cd9660 |
| 117 | syn keyword fsOptionsKeywords contained extatt gens norrip nostrictjoilet |
| 118 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 119 | " Options: ceph |
| 120 | syn match fsOptionsKeywords contained /\<\%(mon_addr\|fsid\|rasize\|mount_timeout\|caps_max\)=/ nextgroup=fsOptionsString |
| 121 | syn keyword fsOptionsKeywords contained rbytes norbytes nocrc dcache nodcache noasyncreaddir noquotadf nocopyfrom |
| 122 | syn match fsOptionsKeywords contained /\<recover_session=/ nextgroup=fsOptionsCephRecoverSession |
| 123 | syn keyword fsOptionsCephRecoverSession contained no clean |
| 124 | |
| 125 | " Options: cifs |
| 126 | syn match fsOptionsKeywords contained /\<\%(user\|password\|credentials\|servernetbiosname\|servern\|netbiosname\|file_mode\|dir_mode\|ip\|domain\|prefixpath\)=/ nextgroup=fsOptionsString |
| 127 | syn match fsOptionsKeywords contained /\<\%(cruid\|backupuid\|backupgid\)=/ nextgroup=fsOptionsNumber |
| 128 | syn keyword fsOptionsKeywords contained forceuid forcegid guest setuids nosetuids perm noperm dynperm strictcache rwpidforward mapchars nomapchars cifsacl nocase ignorecase nobrl sfu serverino noserverino nounix fsc multiuser posixpaths noposixpaths |
| 129 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 130 | " Options: devpts |
| 131 | " -- everything already defined |
| 132 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 133 | " Options: ecryptfs |
| 134 | syn match fsOptionsKeywords contained /\<\%(ecryptfs_\%(sig\|fnek_sig\|cipher\|key_bytes\)\|key\)=/ nextgroup=fsOptionsString |
| 135 | syn keyword fsOptionsKeywords contained ecryptfs_passthrough no_sig_cache ecryptfs_encrypted_view ecryptfs_xattr |
| 136 | syn match fsOptionsKeywords contained /\<ecryptfs_enable_filename_crypto=/ nextgroup=fsOptionsYN |
| 137 | syn match fsOptionsKeywords contained /\<verbosity=/ nextgroup=fsOptions01 |
| 138 | |
| 139 | " Options: erofs |
| 140 | syn match fsOptionsKeywords contained /\<cache_strategy=/ nextgroup=fsOptionsEroCacheStrategy |
| 141 | syn keyword fsOptionsEroCacheStrategy contained disabled readahead readaround |
| 142 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 143 | " Options: ext2 |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 144 | syn match fsOptionsKeywords contained /\<check=*/ nextgroup=@fsOptionsCheckCluster |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 145 | syn match fsOptionsKeywords contained /\<\%(res[gu]id\|sb\)=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 146 | syn keyword fsOptionsExt2Check contained none normal strict |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 147 | syn match fsOptionsErrors contained /\<remount-ro\>/ |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 148 | syn keyword fsOptionsKeywords contained acl bsddf minixdf debug grpid bsdgroups minixdf nocheck nogrpid oldalloc orlov sysvgroups nouid32 nobh user_xattr nouser_xattr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 149 | |
| 150 | " Options: ext3 |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 151 | syn match fsOptionsKeywords contained /\<journal=/ nextgroup=fsOptionsExt3Journal |
| 152 | syn match fsOptionsKeywords contained /\<data=/ nextgroup=fsOptionsExt3Data |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 153 | syn match fsOptionsKeywords contained /\<data_err=/ nextgroup=fsOptionsExt3DataErr |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 154 | syn match fsOptionsKeywords contained /\<commit=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 155 | syn match fsOptionsKeywords contained /\<jqfmt=/ nextgroup=fsOptionsExt3Jqfmt |
| 156 | syn match fsOptionsKeywords contained /\<\%(usrjquota\|grpjquota\)=/ nextgroup=fsOptionsString |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 157 | syn keyword fsOptionsExt3Journal contained update inum |
| 158 | syn keyword fsOptionsExt3Data contained journal ordered writeback |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 159 | syn keyword fsOptionsExt3DataErr contained ignore abort |
| 160 | syn keyword fsOptionsExt3Jqfmt contained vfsold vfsv0 vfsv1 |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 161 | syn keyword fsOptionsKeywords contained noload user_xattr nouser_xattr acl |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 162 | |
| 163 | " Options: ext4 |
| 164 | syn match fsOptionsKeywords contained /\<journal=/ nextgroup=fsOptionsExt4Journal |
| 165 | syn match fsOptionsKeywords contained /\<data=/ nextgroup=fsOptionsExt4Data |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 166 | syn match fsOptionsKeywords contained /\<barrier=/ nextgroup=fsOptions01 |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 167 | syn match fsOptionsKeywords contained /\<journal_dev=/ nextgroup=fsOptionsNumber |
| 168 | syn match fsOptionsKeywords contained /\<resuid=/ nextgroup=fsOptionsNumber |
| 169 | syn match fsOptionsKeywords contained /\<resgid=/ nextgroup=fsOptionsNumber |
| 170 | syn match fsOptionsKeywords contained /\<sb=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 171 | syn match fsOptionsKeywords contained /\<\%(commit\|inode_readahead_blks\|stripe\|max_batch_time\|min_batch_time\|init_itable\|max_dir_size_kb\)=/ nextgroup=fsOptionsNumber |
| 172 | syn match fsOptionsKeywords contained /\<journal_ioprio=/ nextgroup=fsOptionsExt4JournalIoprio |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 173 | syn keyword fsOptionsExt4Journal contained update inum |
| 174 | syn keyword fsOptionsExt4Data contained journal ordered writeback |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 175 | syn keyword fsOptionsExt4JournalIoprio contained 0 1 2 3 4 5 6 7 |
| 176 | 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 journal_checksum nojournal_checksum journal_async_commit delalloc nodelalloc auto_da_alloc noauto_da_alloc noinit_itable block_validity noblock_validity dioread_lock dioread_nolock i_version nombcache prjquota |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 177 | |
| 178 | " Options: fat |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 179 | syn match fsOptionsKeywords contained /\<blocksize=/ nextgroup=fsOptionsSize |
| 180 | syn match fsOptionsKeywords contained /\<\%([dfu]mask\|codepage\)=/ nextgroup=fsOptionsNumberOctal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 181 | syn match fsOptionsKeywords contained /\%(cvf_\%(format\|option\)\|iocharset\)=/ nextgroup=fsOptionsString |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 182 | syn match fsOptionsKeywords contained /\<check=/ nextgroup=@fsOptionsCheckCluster |
| 183 | syn match fsOptionsKeywords contained /\<conv=*/ nextgroup=fsOptionsConv |
| 184 | syn match fsOptionsKeywords contained /\<fat=/ nextgroup=fsOptionsFatType |
| 185 | syn match fsOptionsKeywords contained /\<dotsOK=/ nextgroup=fsOptionsYesNo |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 186 | syn keyword fsOptionsFatCheck contained r n s relaxed normal strict |
| 187 | syn keyword fsOptionsConv contained b t a binary text auto |
| 188 | syn keyword fsOptionsFatType contained 12 16 32 |
| 189 | syn keyword fsOptionsKeywords contained quiet sys_immutable showexec dots nodots |
| 190 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 191 | " Options: fuse |
| 192 | syn match fsOptionsKeywords contained /\<\%(fd\|user_id\|group_id\|blksize\)=/ nextgroup=fsOptionsNumber |
| 193 | syn match fsOptionsKeywords contained /\<\%(rootmode\)=/ nextgroup=fsOptionsString |
| 194 | |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 195 | " Options: hfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 196 | syn match fsOptionsKeywords contained /\<\%(creator\|type\)=/ nextgroup=fsOptionsString |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 197 | syn match fsOptionsKeywords contained /\<\%(dir\|file\|\)_umask=/ nextgroup=fsOptionsNumberOctal |
| 198 | syn match fsOptionsKeywords contained /\<\%(session\|part\)=/ nextgroup=fsOptionsNumber |
| 199 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 200 | " Options: hfsplus |
| 201 | syn match fsOptionsKeywords contained /\<nls=/ nextgroup=fsOptionsString |
| 202 | syn keyword fsOptionsKeywords contained decompose nodecompose |
| 203 | |
| 204 | " Options: f2fs |
| 205 | syn match fsOptionsKeywords contained /\<background_gc=/ nextgroup=fsOptionsF2fsBackgroundGc |
| 206 | syn keyword fsOptionsF2fsBackgroundGc contained on off sync |
| 207 | syn match fsOptionsKeywords contained /\<active_logs=/ nextgroup=fsOptionsF2fsActiveLogs |
| 208 | syn keyword fsOptionsF2fsActiveLogs contained 2 4 6 |
| 209 | syn match fsOptionsKeywords contained /\<alloc_mode=/ nextgroup=fsOptionsF2fsAllocMode |
| 210 | syn keyword fsOptionsF2fsAllocMode contained reuse default |
| 211 | syn match fsOptionsKeywords contained /\<fsync_mode=/ nextgroup=fsOptionsF2fsFsyncMode |
| 212 | syn keyword fsOptionsF2fsFsyncMode contained posix strict nobarrier |
| 213 | syn match fsOptionsKeywords contained /\<compress_mode=/ nextgroup=fsOptionsF2fsCompressMode |
| 214 | syn keyword fsOptionsF2fsCompressMode contained fs user |
| 215 | syn match fsOptionsKeywords contained /\<discard_unit=/ nextgroup=fsOptionsF2fsDiscardUnit |
| 216 | syn keyword fsOptionsF2fsDiscardUnit contained block segment section |
| 217 | syn match fsOptionsKeywords contained /\<memory=/ nextgroup=fsOptionsF2fsMemory |
| 218 | syn keyword fsOptionsF2fsMemory contained normal low |
| 219 | syn match fsOptionsKeywords contained /\<\%(inline_xattr_size\|reserve_root\|fault_injection\|fault_type\|io_bits\|compress_log_size\)=/ nextgroup=fsOptionsNumber |
| 220 | syn match fsOptionsKeywords contained /\<\%(prjjquota\|test_dummy_encryption\|checkpoint\|compress_algorithm\|compress_extension\|nocompress_extension\)=/ nextgroup=fsOptionsString |
| 221 | syn keyword fsOptionsKeyWords contained gc_merge nogc_merge disable_roll_forward no_heap disable_ext_identify inline_xattr noinline_xattr inline_data noinline_data inline_dentry noinline_dentry flush_merge fastboot extent_cache noextent_cache data_flush offusrjquota offgrpjquota offprjjquota test_dummy_encryption checkpoint_merge nocheckpoint_merge compress_chksum compress_cache inlinecrypt atgc |
| 222 | |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 223 | " Options: ffs |
Bram Moolenaar | 7f2e9d7 | 2017-11-11 20:58:53 +0100 | [diff] [blame] | 224 | syn keyword fsOptionsKeyWords contained noperm softdep |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 225 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 226 | " Options: gfs2 |
| 227 | syn match fsOptionsKeywords contained /\<\%(lockproto\|locktable\)=/ nextgroup=fsOptionsString |
| 228 | syn match fsOptionsKeywords contained /\<\%(quota_quantum\|statfs_quantum\|statfs_percent\)=/ nextgroup=fsOptionsNumber |
| 229 | syn match fsOptionsKeywords contained /\<quota=/ nextgroup=fsOptionsGfs2Quota |
| 230 | syn keyword fsOptionsGfs2Quota contained off account on |
| 231 | syn keyword fsOptionsKeywords contained localcaching localflocks ignore_local_fs upgrade spectator meta |
| 232 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 233 | " Options: hpfs |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 234 | syn match fsOptionsKeywords contained /\<case=/ nextgroup=fsOptionsHpfsCase |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 235 | syn keyword fsOptionsHpfsCase contained lower asis |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 236 | syn match fsOptionsKeywords contained /\<chkdsk=/ nextgroup=fsOptionsHpfsChkdsk |
| 237 | syn keyword fsOptionsHpfsChkdsk contained no errors always |
| 238 | syn match fsOptionsKeywords contained /\<eas=/ nextgroup=fsOptionsHpfsEas |
| 239 | syn keyword fsOptionsHpfsEas contained no ro rw |
| 240 | syn match fsOptionsKeywords contained /\<timeshift=/ nextgroup=fsOptionsNumberSigned |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 241 | |
| 242 | " Options: iso9660 |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 243 | syn match fsOptionsKeywords contained /\<map=/ nextgroup=fsOptionsIsoMap |
| 244 | syn match fsOptionsKeywords contained /\<block=/ nextgroup=fsOptionsSize |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 245 | syn match fsOptionsKeywords contained /\<\%(session\|sbsector\|dmode\)=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 246 | syn keyword fsOptionsIsoMap contained n o a normal off acorn |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 247 | syn keyword fsOptionsKeywords contained norock nojoliet hide unhide cruft overriderockperm showassoc |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 248 | syn keyword fsOptionsConv contained m mtext |
| 249 | |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 250 | " Options: jfs |
| 251 | syn keyword fsOptionsKeywords nointegrity integrity |
| 252 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 253 | " Options: nfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 254 | syn match fsOptionsKeywords contained /\<lookupcache=/ nextgroup=fsOptionsNfsLookupCache |
| 255 | syn keyword fsOptionsNfsLookupCache contained all none pos positive |
| 256 | syn match fsOptionsKeywords contained /\<local_lock=/ nextgroup=fsOptionsNfsLocalLock |
| 257 | syn keyword fsOptionsNfsLocalLock contained all flock posix none |
| 258 | syn match fsOptionsKeywords contained /\<\%(mounthost\|mountprog\|nfsprog\|namelen\|proto\|mountproto\|clientaddr\)=/ nextgroup=fsOptionsString |
| 259 | syn match fsOptionsKeywords contained /\<\%(timeo\|retrans\|[rw]size\|acregmin\|acregmax\|acdirmin\|acdirmax\|actimeo\|retry\|port\|mountport\|mountvers\|namlen\|nfsvers\|vers\|minorversion\)=/ nextgroup=fsOptionsNumber |
| 260 | 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 sharecache nosharecache resvport noresvport rdirplus nordirplus |
| 261 | |
| 262 | " Options: nilfs2 |
| 263 | syn match fsOptionsKeywords contained /\<order=/ nextgroup=fsOptionsNilfs2Order |
| 264 | syn keyword fsOptionsNilfs2Order contained relaxed strict |
| 265 | syn match fsOptionsKeywords contained /\<\%([cp]p\)=/ nextgroup=fsOptionsNumber |
| 266 | syn keyword fsOptionsKeywords contained nogc |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 267 | |
| 268 | " Options: ntfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 269 | syn match fsOptionsKeywords contained /\<mft_zone_multiplier=/ nextgroup=fsOptionsNtfsMftZoneMultiplier |
| 270 | syn keyword fsOptionsNtfsMftZoneMultiplier contained 1 2 3 4 |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 271 | syn match fsOptionsKeywords contained /\<\%(posix=*\|uni_xlate=\)/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 272 | syn match fsOptionsKeywords contained /\<\%(sloppy\|show_sys_files\|case_sensitive\|disable_sparse\)=/ nextgroup=fsOptionsTrueFalse |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 273 | syn keyword fsOptionsKeywords contained utf8 |
| 274 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 275 | " Options: ntfs3 |
| 276 | syn keyword fsOptionsKeywords contained noacsrules nohidden sparse showmeta prealloc |
| 277 | |
| 278 | " Options: ntfs-3g |
| 279 | syn match fsOptionsKeywords contained /\<\%(usermapping\|locale\|streams_interface\)=/ nextgroup=fsOptionsString |
| 280 | syn keyword fsOptionsKeywords contained permissions inherit recover norecover ignore_case remove_hiberfile hide_hid_files hide_dot_files windows_names silent no_def_opts efs_raw compression nocompression no_detach |
| 281 | |
| 282 | " Options: ocfs2 |
| 283 | syn match fsOptionsKeywords contained /\<\%(resv_level\|dir_resv_level\)=/ nextgroup=fsOptionsOcfs2ResvLevel |
| 284 | syn keyword fsOptionsOcfs2ResvLevel contained 0 1 2 3 4 5 6 7 8 |
| 285 | syn match fsOptionsKeywords contained /\<coherency=/ nextgroup=fsOptionsOcfs2Coherency |
| 286 | syn keyword fsOptionsOcfs2Coherency contained full buffered |
| 287 | syn match fsOptionsKeywords contained /\<\%(atime_quantum\|preferred_slot\|localalloc\)=/ nextgroup=fsOptionsNumber |
| 288 | syn keyword fsOptionsKeywords contained strictatime inode64 |
| 289 | |
| 290 | " Options: overlay |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 291 | syn match fsOptionsKeywords contained /\<\%(index\|uuid\|nfs_export\|metacopy\)=/ nextgroup=fsOptionsOverlayBool |
| 292 | syn keyword fsOptionsOverlayBool contained on off |
| 293 | syn match fsOptionsKeywords contained /\<\%(lowerdir\|upperdir\|workdir\)=/ nextgroup=fsOptionsOverlayDir |
| 294 | syn match fsOptionsOverlayDir contained /[^,[:space:]]*/ |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 295 | syn match fsOptionsKeywords contained /\<redirect_dir=/ nextgroup=fsOptionsOverlayRedirectDir |
| 296 | syn keyword fsOptionsOverlayRedirectDir contained on follow off nofollow |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 297 | syn match fsOptionsKeywords contained /\<xino=/ nextgroup=fsOptionsOverlayXino |
| 298 | syn keyword fsOptionsOverlayXino contained on off auto |
| 299 | syn keyword fsOptionsKeywords contained userxattr volatile |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 300 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 301 | " Options: proc |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 302 | syn match fsOptionsKeywords contained /\<\%(hidepid\|subset\)=/ nextgroup=fsOptionsString |
| 303 | |
| 304 | " Options: qnx4 |
| 305 | syn match fsOptionsKeywords contained /\<bitmap=/ nextgroup=fsOptionsQnx4Bitmap |
| 306 | syn keyword fsOptionsQnx4Bitmap contained always lazy nonrmv |
| 307 | syn keyword fsOptionsKeywords contained grown noembed overalloc unbusy |
| 308 | |
| 309 | " Options: qnx6 |
| 310 | syn match fsOptionsKeywords contained /\<hold=/ nextgroup=fsOptionsQnx6Hold |
| 311 | syn keyword fsOptionsQnx6Hold contained allow root deny |
| 312 | syn match fsOptionsKeywords contained /\<sync=/ nextgroup=fsOptionsQnx6Sync |
| 313 | syn keyword fsOptionsQnx6Sync contained mandatory optional none |
| 314 | syn match fsOptionsKeywords contained /\<snapshot=/ nextgroup=fsOptionsNumber |
| 315 | syn keyword fsOptionsKeywords contained alignio |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 316 | |
| 317 | " Options: reiserfs |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 318 | syn match fsOptionsKeywords contained /\<hash=/ nextgroup=fsOptionsReiserHash |
| 319 | syn match fsOptionsKeywords contained /\<resize=/ nextgroup=fsOptionsNumber |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 320 | syn keyword fsOptionsReiserHash contained rupasov tea r5 detect |
| 321 | syn keyword fsOptionsKeywords contained hashed_relocation noborder nolog notail no_unhashed_relocation replayonly |
| 322 | |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 323 | " Options: sshfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 324 | 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\)=/ nextgroup=fsOptionsYesNo |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 325 | syn match fsOptionsKeywords contained /\<\%(ControlMaster\|StrictHostKeyChecking\|VerifyHostKeyDNS\)=/ nextgroup=fsOptionsSshYesNoAsk |
| 326 | 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 |
| 327 | 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 |
| 328 | 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 |
| 329 | syn keyword fsOptionsSshYesNoAsk contained yes no ask |
| 330 | |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 331 | " Options: subfs |
| 332 | syn match fsOptionsKeywords contained /\<fs=/ nextgroup=fsOptionsString |
| 333 | syn keyword fsOptionsKeywords contained procuid |
| 334 | |
| 335 | " Options: swap |
| 336 | syn match fsOptionsKeywords contained /\<pri=/ nextgroup=fsOptionsNumber |
| 337 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 338 | " Options: ubifs |
| 339 | syn match fsOptionsKeywords contained /\<\%(compr\|auth_key\|auth_hash_name\)=/ nextgroup=fsOptionsString |
| 340 | syn keyword fsOptionsKeywords contained bulk_read no_bulk_read chk_data_crc no_chk_data_crc |
| 341 | |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 342 | " Options: tmpfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 343 | syn match fsOptionsKeywords contained /\<huge=/ nextgroup=fsOptionsTmpfsHuge |
| 344 | syn keyword fsOptionsTmpfsHuge contained never always within_size advise deny force |
| 345 | syn match fsOptionsKeywords contained /\<\%(size\|mpol\)=/ nextgroup=fsOptionsString |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 346 | syn match fsOptionsKeywords contained /\<nr_\%(blocks\|inodes\)=/ nextgroup=fsOptionsNumber |
| 347 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 348 | " Options: udf |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 349 | syn match fsOptionsKeywords contained /\<\%(anchor\|partition\|lastblock\|fileset\|rootdir\)=/ nextgroup=fsOptionsString |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 350 | syn keyword fsOptionsKeywords contained unhide undelete strict nostrict novrs adinicb noadinicb shortad longad |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 351 | |
| 352 | " Options: ufs |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 353 | syn match fsOptionsKeywords contained /\<ufstype=/ nextgroup=fsOptionsUfsType |
| 354 | syn match fsOptionsKeywords contained /\<onerror=/ nextgroup=fsOptionsUfsError |
| 355 | syn keyword fsOptionsUfsType contained old hp 44bsd sun sunx86 nextstep openstep |
| 356 | syn match fsOptionsUfsType contained /\<nextstep-cd\>/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 357 | syn keyword fsOptionsUfsError contained panic lock umount repair |
| 358 | |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 359 | " Options: usbfs |
| 360 | syn match fsOptionsKeywords contained /\<\%(dev\|bus\|list\)\%(id\|gid\)=/ nextgroup=fsOptionsNumber |
| 361 | syn match fsOptionsKeywords contained /\<\%(dev\|bus\|list\)mode=/ nextgroup=fsOptionsNumberOctal |
| 362 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 363 | " Options: v9fs |
| 364 | syn match fsOptionsKeywords contained /\<\%(trans\)=/ nextgroup=fsOptionsV9Trans |
| 365 | syn keyword fsOptionsV9Trans unix tcp fd virtio rdma |
| 366 | syn match fsOptionsKeywords contained /\<debug=/ nextgroup=fsOptionsV9Debug |
| 367 | syn keyword fsOptionsV9Debug 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 0x100 0x200 0x400 0x800 |
| 368 | syn match fsOptionsKeywords contained /\<version=/ nextgroup=fsOptionsV9Version |
| 369 | syn keyword fsOptionsV9Version 9p2000 9p2000.u 9p2000.L |
| 370 | syn match fsOptionsKeywords contained /\<\%([ua]name\|[rw]fdno\|access\)=/ nextgroup=fsOptionsString |
| 371 | syn match fsOptionsKeywords contained /\<msize=/ nextgroup=fsOptionsNumber |
| 372 | syn keyword fsOptionsKeywords contained noextend dfltuid dfltgid afid nodevmap cachetag |
| 373 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 374 | " Options: vfat |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 375 | syn match fsOptionsKeywords contained /\<shortname=/ nextgroup=fsOptionsVfatShortname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 376 | syn keyword fsOptionsVfatShortname contained lower win95 winnt mixed |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 377 | syn match fsOptionsKeywords contained /\<nfs=/ nextgroup=fsOptionsVfatNfs |
| 378 | syn keyword fsOptionsVfatNfs contained stale_rw nostale_ro |
| 379 | syn match fsOptionsKeywords contained /\<\%(tz\|dos1xfloppy\)=/ nextgroup=fsOptionsString |
| 380 | syn match fsOptionsKeywords contained /\<\%(allow_utime\|codepage\)=/ nextgroup=fsOptionsNumber |
| 381 | syn match fsOptionsKeywords contained /\<time_offset=/ nextgroup=fsOptionsNumberSigned |
| 382 | syn keyword fsOptionsKeywords contained nonumtail posix utf8 usefree flush rodir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 383 | |
| 384 | " Options: xfs |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 385 | syn match fsOptionsKeywords contained /\<logbufs=/ nextgroup=fsOptionsXfsLogBufs |
| 386 | syn keyword fsOptionsXfsLogBufs contained 2 3 4 5 6 7 8 |
| 387 | syn match fsOptionsKeywords contained /\%(allocsize\|biosize\|logbsize\|logdev\|rtdev\|sunit\|swidth\)=/ nextgroup=fsOptionsString |
| 388 | syn keyword fsOptionsKeywords contained dmapi xdsm noalign noatime noquota norecovery osyncisdsync quota usrquota uqnoenforce grpquota gqnoenforce attr2 noattr2 filestreams ikeep noikeep inode32 inode64 largeio nolargeio nouuid uquota qnoenforce gquota pquota pqnoenforce swalloc wsync |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 389 | |
| 390 | " Frequency / Pass No. |
| 391 | syn cluster fsFreqPassCluster contains=fsFreqPassNumber,fsFreqPassError |
| 392 | syn match fsFreqPassError /\s\+\zs\%(\D.*\|\S.*\|\d\+\s\+[^012]\)\ze/ contained |
| 393 | syn match fsFreqPassNumber /\d\+\s\+[012]\s*/ contained |
| 394 | |
| 395 | " Groups |
| 396 | syn match fsDevice /^\s*\zs.\{-1,}\s/me=e-1 nextgroup=fsMountPoint contains=@fsDeviceCluster,@fsGeneralCluster |
| 397 | syn match fsMountPoint /\s\+.\{-}\s/me=e-1 nextgroup=fsType contains=@fsMountPointCluster,@fsGeneralCluster contained |
| 398 | syn match fsType /\s\+.\{-}\s/me=e-1 nextgroup=fsOptions contains=@fsTypeCluster,@fsGeneralCluster contained |
Bram Moolenaar | 938ae28 | 2023-02-20 20:44:55 +0000 | [diff] [blame] | 399 | syn match fsOptions /\s\+.\{-}\%(\s\|$\)/ nextgroup=fsFreqPass contains=@fsOptionsCluster,@fsGeneralCluster contained |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 400 | syn match fsFreqPass /\s\+.\{-}$/ contains=@fsFreqPassCluster,@fsGeneralCluster contained |
| 401 | |
| 402 | " Whole line comments |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 403 | syn match fsCommentLine /^#.*$/ contains=@Spell |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 404 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 405 | hi def link fsOperator Operator |
| 406 | hi def link fsComment Comment |
| 407 | hi def link fsCommentLine Comment |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 408 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 409 | hi def link fsTypeKeyword Type |
| 410 | hi def link fsDeviceKeyword Identifier |
| 411 | hi def link fsDeviceLabel String |
| 412 | hi def link fsDeviceUUID String |
Bram Moolenaar | 7f2e9d7 | 2017-11-11 20:58:53 +0100 | [diff] [blame] | 413 | hi def link fsDevicePARTLABEL String |
| 414 | hi def link fsDevicePARTUUID String |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 415 | hi def link fsDeviceSshfs String |
| 416 | hi def link fsFreqPassNumber Number |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 417 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 418 | if exists('fstab_unknown_fs_errors') && fstab_unknown_fs_errors == 1 |
Bram Moolenaar | 7f2e9d7 | 2017-11-11 20:58:53 +0100 | [diff] [blame] | 419 | hi def link fsTypeUnknown Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 420 | endif |
| 421 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 422 | if !exists('fstab_unknown_device_errors') || fstab_unknown_device_errors == 1 |
Bram Moolenaar | 7f2e9d7 | 2017-11-11 20:58:53 +0100 | [diff] [blame] | 423 | hi def link fsDeviceError Error |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 424 | endif |
| 425 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 426 | hi def link fsMountPointError Error |
| 427 | hi def link fsMountPointKeyword Keyword |
| 428 | hi def link fsFreqPassError Error |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 429 | |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 430 | hi def link fsOptionsBtrfsDiscard String |
| 431 | hi def link fsOptionsBtrfsFatalErrors String |
| 432 | hi def link fsOptionsBtrfsFragment String |
| 433 | hi def link fsOptionsCache String |
| 434 | hi def link fsOptionsCephRecoverSession String |
| 435 | hi def link fsOptionsConv String |
| 436 | hi def link fsOptionsDax String |
| 437 | hi def link fsOptionsEroCacheStrategy String |
| 438 | hi def link fsOptionsErrors String |
| 439 | hi def link fsOptionsExt2Check String |
| 440 | hi def link fsOptionsExt3Data String |
| 441 | hi def link fsOptionsExt3DataErr String |
| 442 | hi def link fsOptionsExt3Journal String |
| 443 | hi def link fsOptionsExt3Jqfmt String |
| 444 | hi def link fsOptionsExt4Data String |
| 445 | hi def link fsOptionsExt4Journal String |
| 446 | hi def link fsOptionsExt4JournalIoprio Number |
| 447 | hi def link fsOptionsF2fsActiveLogs Number |
| 448 | hi def link fsOptionsF2fsAllocMode String |
| 449 | hi def link fsOptionsF2fsBackgroundGc String |
| 450 | hi def link fsOptionsF2fsCompressMode String |
| 451 | hi def link fsOptionsF2fsDiscardUnit String |
| 452 | hi def link fsOptionsF2fsFsyncMode String |
| 453 | hi def link fsOptionsF2fsMemory String |
| 454 | hi def link fsOptionsFatCheck String |
| 455 | hi def link fsOptionsFatType Number |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 456 | hi def link fsOptionsGeneral Type |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 457 | hi def link fsOptionsGfs2Quota String |
| 458 | hi def link fsOptionsHpfsCase String |
| 459 | hi def link fsOptionsHpfsChkdsk String |
| 460 | hi def link fsOptionsHpfsEas String |
| 461 | hi def link fsOptionsIsoMap String |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 462 | hi def link fsOptionsKeywords Keyword |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 463 | hi def link fsOptionsNfsLocalLock String |
| 464 | hi def link fsOptionsNfsLookupCache String |
| 465 | hi def link fsOptionsNilfs2Order String |
| 466 | hi def link fsOptionsNtfsMftZoneMultiplier Number |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 467 | hi def link fsOptionsNumber Number |
| 468 | hi def link fsOptionsNumberOctal Number |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 469 | hi def link fsOptionsNumberSigned Number |
| 470 | hi def link fsOptionsOcfs2Coherency String |
| 471 | hi def link fsOptionsOcfs2ResvLevel Number |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 472 | hi def link fsOptionsOverlayBool Boolean |
| 473 | hi def link fsOptionsOverlayDir String |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 474 | hi def link fsOptionsOverlayRedirectDir String |
Christian Brabandt | 7a22cb8 | 2024-07-11 21:45:41 +0200 | [diff] [blame] | 475 | hi def link fsOptionsOverlayXino String |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 476 | hi def link fsOptionsQnx4Bitmap String |
| 477 | hi def link fsOptionsQnx6Hold String |
| 478 | hi def link fsOptionsQnx6Sync String |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 479 | hi def link fsOptionsReiserHash String |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 480 | hi def link fsOptionsSecurityMode String |
| 481 | hi def link fsOptionsSize Number |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 482 | hi def link fsOptionsSshYesNoAsk String |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 483 | hi def link fsOptionsString String |
| 484 | hi def link fsOptionsTmpfsHuge String |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 485 | hi def link fsOptionsUfsError String |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 486 | hi def link fsOptionsUfsType String |
| 487 | hi def link fsOptionsV9Debug String |
| 488 | hi def link fsOptionsV9Trans String |
| 489 | hi def link fsOptionsV9Version String |
| 490 | hi def link fsOptionsVfatNfs String |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 491 | hi def link fsOptionsVfatShortname String |
Bram Moolenaar | 7db29e4 | 2022-12-11 15:53:04 +0000 | [diff] [blame] | 492 | hi def link fsOptionsXfsLogBufs Number |
| 493 | |
| 494 | hi def link fsOptionsTrueFalse Boolean |
| 495 | hi def link fsOptionsYesNo String |
| 496 | hi def link fsOptionsYN String |
| 497 | hi def link fsOptions01 Number |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 498 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 499 | let b:current_syntax = "fstab" |
| 500 | |
Bram Moolenaar | e6ae622 | 2013-05-21 21:01:10 +0200 | [diff] [blame] | 501 | let &cpo = s:cpo_save |
| 502 | unlet s:cpo_save |
| 503 | |
Bram Moolenaar | 938ae28 | 2023-02-20 20:44:55 +0000 | [diff] [blame] | 504 | " vim: ts=8 noet ft=vim |