on master help sign in
Add syntax highlighting for /etc/group file
commit15b1676b7205999db3bd0057fd8504937452111c authorAnubhab Ghosh <anubhabghosh.me@gmail.com> dateWed 23 Oct 2019, 23:54 (7 years ago) parent4664fb6
1 file changed+48
assets/syntaxes/Group.sublime-syntax+48
assets/syntaxes/Group.sublime-syntaxnew file+48
@@ -0,0 +1,48 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: group
5+file_extensions:
6+ - group
7+scope: source.group
8+
9+contexts:
10+ main:
11+ - comment: name
12+ match: ^[^:]+
13+ scope: keyword
14+
15+ - comment: password
16+ match: ":"
17+ push: password
18+
19+ password:
20+ - comment: uid
21+ match: ":"
22+ set: gid
23+
24+ - comment: shadowpassword
25+ match: "[^:]+"
26+ scope: invalid
27+
28+ gid:
29+ - comment: gid
30+ match: ":"
31+ set: users
32+
33+ - comment: number
34+ match: "[0-9]+"
35+ scope: constant.numeric
36+
37+ users:
38+ - comment: newline
39+ match: "\n"
40+ pop: true
41+
42+ - comment: directory
43+ match: "[^:\n]+"
44+ scope: variable.parameter
45+
46+ - comment: separator
47+ match: ","
48+ scope: punctuation