forked from dreadatour/RPMSpec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RPM Spec.JSON-tmLanguage
76 lines (76 loc) · 2.02 KB
/
RPM Spec.JSON-tmLanguage
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
{
"name": "RPM Spec",
"scopeName": "source.spec",
"fileTypes": ["spec"],
"patterns": [
{
"match": "(Icon|ExclusiveOs|ExcludeOs):",
"name": "keyword.spec"
}, {
"match": "(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):",
"name": "keyword.spec"
}, {
"match": "(Conflicts|Obsoletes|Provides|Requires|Requires\\(.*\\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):",
"name": "keyword.spec"
}, {
"match": "(Epoch|Serial|Nosource|Nopatch):",
"name": "keyword.spec"
}, {
"match": "(AutoReq|AutoProv|AutoReqProv):",
"name": "keyword.spec"
}, {
"match": "(Copyright|License|Summary|Summary\\(.*\\)|Distribution|Vendor|Packager|Group|Source\\d*|Patch\\d*|BuildRoot|Prefix):",
"name": "keyword.spec"
}, {
"match": "(Name|Version|Release|Url|URL):",
"name": "keyword.spec"
}, {
"name": "keyword.spec",
"begin": "^(Source|Patch)",
"end": ":"
}, {
"match": "(ifarch|ifnarch|ifos|ifnos)",
"name": "keyword.control.spec"
}, {
"name": "variable.spec",
"begin": "%\\{",
"patterns": [
{
"match": "__[A-Z_a-z_0-9_]*",
"name": "variable.spec"
}, {
"match": "[A-Z_a-z_0-9_]*",
"name": "variable.spec"
}
],
"end": "\\}"
}, {
"match": "%__([A-Z_a-z_0-9_]*)",
"name": "variable.spec"
}, {
"match": "%_([A-Z_a-z_0-9_]*)",
"name": "variable.spec"
}, {
"match": "%([A-Z_a-z_0-9_]+)",
"name": "variable.spec"
}, {
"match": "^%(build$|changelog|check$|clean$|description|files|install$|package|prep$|pre|preun|post|postun|trigger|triggerin|triggerpostun|triggerun|verifyscript)",
"name": "keyword.control.spec"
}, {
"match": "%(if|else|endif|define|global|undefine)",
"name": "keyword.control.spec"
}, {
"match": "^\\s*#.*$",
"name": "comment.line.spec"
}, {
"match": "^# norootforbuild",
"name": "keyword.spec"
}, {
"match": "^\\* .*\\)$",
"name": "meta.documentation.spec"
}, {
"include": "source.shell"
}
],
"uuid": "49e56b70-cf79-11e1-9b23-0800200c9a66"
}