1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
-- mod-version:3 --lite-xl 2.1
local syntax = require "core.syntax"
syntax.add {
name = "fstab",
files = { "fstab" },
comment = '#',
patterns = {
-- Only lines that start with a # are comments; you can have #'s in fuse
-- filesystem strings that aren't comments, so shouldn't be highlighted as such.
{ regex = "^#.*$", type = "comment" },
{ pattern = "[=/:.,]+", type = "operator" },
{ pattern = "/.*/", type = "string" },
{ pattern = "#", type = "operator" },
-- {
-- pattern = "%g+%s+()%g+%s+()%g+%s+()%g+%s+()[01]%s+()[012]%s*",
-- type = {
-- -- filesystem
-- "keyword",
-- -- mount point
-- "keyword2",
-- -- fs type
-- "symbol",
-- -- options
-- "keyword2",
-- -- dump frequency
-- "keyword",
-- -- pass number
-- "keyword2",
-- }
-- },
-- UUID
{ pattern = "%w-%-%w-%-%w-%-%w-%-%w- ", type = "string" },
-- IPv4 Address
{ pattern = "%d+%.%d+%.%d+%.%d+", type = "string" },
{ pattern = " %d+ ", type = "number" },
{ pattern = "[%w_]+", type = "symbol" },
},
symbols = {
["none"] = "literal",
["LABEL"] = "keyword",
["UUID"] = "keyword",
-- filesystems
["aufs"] = "keyword2",
["autofs"] = "keyword2",
["bdev"] = "keyword2",
["binder"] = "keyword2",
["binfmt_misc"] = "keyword2",
["bpf"] = "keyword2",
["btrfs"] = "keyword2",
["cgroup"] = "keyword2",
["cgroup2"] = "keyword2",
["configfs"] = "keyword2",
["cpuset"] = "keyword2",
["debugfs"] = "keyword2",
["devpts"] = "keyword2",
["devtmpfs"] = "keyword2",
["ecryptfs"] = "keyword2",
["ext2"] = "keyword2",
["ext3"] = "keyword2",
["ext4"] = "keyword2",
["fuse"] = "keyword2",
["fuseblk"] = "keyword2",
["fusectl"] = "keyword2",
["hfs"] = "keyword2",
["hfsplus"] = "keyword2",
["hugetlbfs"] = "keyword2",
["jfs"] = "keyword2",
["minix"] = "keyword2",
["mqueue"] = "keyword2",
["msdos"] = "keyword2",
["nfs"] = "keyword2",
["nfs4"] = "keyword2",
["nfsd"] = "keyword2",
["ntfs"] = "keyword2",
["pipefs"] = "keyword2",
["proc"] = "keyword2",
["pstore"] = "keyword2",
["qnx4"] = "keyword2",
["ramfs"] = "keyword2",
["rpc_pipefs"] = "keyword2",
["securityfs"] = "keyword2",
["sockfs"] = "keyword2",
["squashfs"] = "keyword2",
["swap"] = "keyword2",
["sysfs"] = "keyword2",
["tmpfs"] = "keyword2",
["tracefs"] = "keyword2",
["ufs"] = "keyword2",
["vfat"] = "keyword2",
["xfs"] = "keyword2",
},
}
|