Mercurial > vim
changeset 35640:6a069358bece
runtime(fstab): Add missing keywords to fstab syntax
Commit: https://github.com/vim/vim/commit/7a22cb81415060215d28c1601a0b35755449bf87
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Jul 11 21:45:41 2024 +0200
runtime(fstab): Add missing keywords to fstab syntax
Added overlay, tracefs and fixed the "none" keyword in the fstab syntax definition.
closes: #15217
Signed-off-by: Radu Dineiu <radu.dineiu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 11 Jul 2024 22:10:10 +0200 |
parents | 36c4e640373a |
children | f55b953f59bd |
files | runtime/syntax/fstab.vim |
diffstat | 1 files changed, 16 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/syntax/fstab.vim +++ b/runtime/syntax/fstab.vim @@ -2,8 +2,8 @@ " Language: fstab file " Maintainer: Radu Dineiu <radu.dineiu@gmail.com> " URL: https://raw.github.com/rid9/vim-fstab/master/syntax/fstab.vim -" Last Change: 2023 Feb 19 -" Version: 1.6.3 +" Last Change: 2024 Jul 11 +" Version: 1.6.4 " " Credits: " David Necas (Yeti) <yeti@physics.muni.cz> @@ -35,7 +35,7 @@ syn match fsOperator /[,=:#]/ " Device syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:\.-]\|^\w\{-}\ze\W\)/ contained -syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts devtmpfs sysfs usbfs +syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts devtmpfs sysfs usbfs tracefs overlay syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID syn keyword fsDeviceKeyword contained PARTLABEL nextgroup=fsDevicePARTLABEL @@ -56,7 +56,7 @@ syn keyword fsMountPointKeyword containe " Type syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown syn match fsTypeUnknown /\s\+\zs\w\+/ contained -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 ubifs udf ufs umap umsdos union usbfs userfs v9fs vfat virtiofs vs3fs vxfs wrapfs wvfs xenfs xenix xfs zisofs zonefs +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 " Options " ------- @@ -80,10 +80,10 @@ syn match fsOptionsKeywords contained /\ syn match fsOptionsKeywords contained /\<x-initrd\.mount/ syn match fsOptionsKeywords contained /\<cache=/ nextgroup=fsOptionsCache -syn keyword fsOptionsCache yes no none strict loose fscache mmap +syn keyword fsOptionsCache contained yes no none strict loose fscache mmap syn match fsOptionsKeywords contained /\<dax=/ nextgroup=fsOptionsDax -syn keyword fsOptionsDax inode never always +syn keyword fsOptionsDax contained inode never always syn match fsOptionsKeywords contained /\<errors=/ nextgroup=fsOptionsErrors syn keyword fsOptionsErrors contained continue panic withdraw remount-ro recover zone-ro zone-offline repair @@ -288,8 +288,15 @@ syn match fsOptionsKeywords contained /\ syn keyword fsOptionsKeywords contained strictatime inode64 " Options: overlay +syn match fsOptionsKeywords contained /\<\%(index\|uuid\|nfs_export\|metacopy\)=/ nextgroup=fsOptionsOverlayBool +syn keyword fsOptionsOverlayBool contained on off +syn match fsOptionsKeywords contained /\<\%(lowerdir\|upperdir\|workdir\)=/ nextgroup=fsOptionsOverlayDir +syn match fsOptionsOverlayDir contained /[^,[:space:]]*/ syn match fsOptionsKeywords contained /\<redirect_dir=/ nextgroup=fsOptionsOverlayRedirectDir syn keyword fsOptionsOverlayRedirectDir contained on follow off nofollow +syn match fsOptionsKeywords contained /\<xino=/ nextgroup=fsOptionsOverlayXino +syn keyword fsOptionsOverlayXino contained on off auto +syn keyword fsOptionsKeywords contained userxattr volatile " Options: proc syn match fsOptionsKeywords contained /\<\%(hidepid\|subset\)=/ nextgroup=fsOptionsString @@ -462,7 +469,10 @@ hi def link fsOptionsNumberOctal Number hi def link fsOptionsNumberSigned Number hi def link fsOptionsOcfs2Coherency String hi def link fsOptionsOcfs2ResvLevel Number +hi def link fsOptionsOverlayBool Boolean +hi def link fsOptionsOverlayDir String hi def link fsOptionsOverlayRedirectDir String +hi def link fsOptionsOverlayXino String hi def link fsOptionsQnx4Bitmap String hi def link fsOptionsQnx6Hold String hi def link fsOptionsQnx6Sync String