-
Notifications
You must be signed in to change notification settings - Fork 4
/
KSP configuration.tmLanguage
109 lines (109 loc) · 3.28 KB
/
KSP configuration.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>cfg</string>
<string>craft</string>
<string>sfs</string>
</array>
<key>name</key>
<string>KSP configuration</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>Anything after 2 slashes is a comment.</string>
<key>match</key>
<string>//.*</string>
<key>name</key>
<string>comment.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Alphanumeric characters inside square brackets is a parameter.</string>
<key>match</key>
<string>(?<=[\|\[])([A-Za-z0-9\*_]*)(?=[\]\|])</string>
<key>name</key>
<string>variable.parameter.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Alphanumeric characters after a colon is a ModuleManager function.</string>
<key>match</key>
<string>(?<=:)([A-Za-z0-9]*)</string>
<key>name</key>
<string>support.function.modulemanager.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Anything before an equal sign is a key in the key-value pairs.</string>
<key>match</key>
<string>([A-Za-z0-9_,]*\s*)(?=([\*\+])?=)</string>
<key>name</key>
<string>keyword.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>32 hexadecimal characters after an equal sign is a pid.</string>
<key>match</key>
<string>(?<==)(\s*[0-9a-f]{32})</string>
<key>name</key>
<string>constant.numeric.pid.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Alphanumeric characters split by 4 hyphens after an equal sign is a guid.</string>
<key>match</key>
<string>(?<==)(\s*([a-z0-9]+\-){4}[a-z0-9]+)</string>
<key>name</key>
<string>constant.numeric.guid.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>'True' or 'False' after an equal sign is a boolean.</string>
<key>match</key>
<string>(?<==)(\s*([Tt]rue|[Ff]alse))</string>
<key>name</key>
<string>constant.numeric.boolean.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>'NaN', 'Infinity', or 'None' after an equal sign is a non-numeric constant.</string>
<key>match</key>
<string>(?<==)(\s*(NaN|Infinity|None))</string>
<key>name</key>
<string>constant.numeric.nan.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Anything else after an equal sign containing alphabetical characters is a string.</string>
<key>match</key>
<string>(?<==)(\s?.*[A-Za-z].*)</string>
<key>name</key>
<string>string.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Numeric characters, including scientific notation, is a number.</string>
<key>match</key>
<string>(?<=[=,\s\(])(\s*-?[0-9\.]+E?-?[0-9\.]*)</string>
<key>name</key>
<string>constant.numeric.ksp.cfg</string>
</dict>
<dict>
<key>comment</key>
<string>Anything else matching these symbols is a class name.</string>
<key>match</key>
<string>[A-Za-z0-9\*_\./]*</string>
<key>name</key>
<string>entity.name.class.ksp.cfg</string>
</dict>
</array>
<key>scopeName</key>
<string>text.ksp.cfg</string>
<key>uuid</key>
<string>2e22ffdc-c42e-4308-819d-c125852f1fb7</string>
</dict>
</plist>