forked from CompuIves/kOS-Sublime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkos.tmLanguage.json
More file actions
119 lines (119 loc) · 3.8 KB
/
kos.tmLanguage.json
File metadata and controls
119 lines (119 loc) · 3.8 KB
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
110
111
112
113
114
115
116
117
118
119
{
"fileTypes": [
"ks",
],
"name": "k-OS",
"patterns": [
{
"match": "//.*",
"name": "comment.line.source.kerboscript"
},
{
"match": "(?i:add|print|remove|break|clearscreen|copy|delete|declare|edit|list|lock|on|log|rename|remove|run|set|stage|switch|toggle|unlock|reboot|shutdown)\\s+[^\\.]+$",
"name": "invalid.illegal.source.kerboscript"
},
{
"match": "\\b(?i:heading|bearing|direction)\\b",
"name": "storage.type.source.kerboscript"
},
{
"captures": {
"1": {
"name": "keyword.source.kerboscript"
},
"2": {
"name": "keyword.source.kerboscript"
}
},
"match": "\\s*(?i:(set|log|rename))\\s.*(?i:(to))\\s*",
"name": "text.source.kerboscript"
},
{
"captures": {
"1": {
"name": "keyword.source.kerboscript"
},
"2": {
"name": "keyword.source.kerboscript"
}
},
"match": "\\s*(?i:(copy))\\s.*(?i:(to|from))\\s*",
"name": "text.source.kerboscript"
},
{
"captures": {
"1": {
"name": "keyword.source.kerboscript"
},
"2": {
"name": "keyword.source.kerboscript"
}
},
"match": "\\s*(?i:(delete))\\s.*(?i:(from))\\s*",
"name": "text.source.kerboscript"
},
{
"captures": {
"1": {
"name": "keyword.source.kerboscript"
},
"2": {
"name": "keyword.source.kerboscript"
}
},
"match": "\\b(?i:(lock))\\s.*(?i:(to))\\b",
"name": "text.source.kerboscript"
},
{
"captures": {
"1": {
"name": "keyword.source.kerboscript"
},
"2": {
"name": "keyword.source.kerboscript"
}
},
"match": "\\b(?i:(print))\\s[^\"]+(?i:(at))\\b",
"name": "text.source.kerboscript"
},
{
"captures": {
"1": {
"name": "keyword.source.kerboscript"
},
"2": {
"name": "keyword.source.kerboscript"
}
},
"match": "\\b(?i:(when))\\s.+(?i:(then))\\b",
"name": "text.source.kerboscript"
},
{
"match": "\\b(?i:add|remove|break|clearscreen|delete|declare( parameter)?|edit|print|remove|run|stage|switch to|toggle|unlock|warp|reboot|shutdown|list|reboot)\\b",
"name": "keyword.source.kerboscript"
},
{
"match": "\\b(?i:until|if|wait)\\b",
"name": "keyword.control.kerboscript"
},
{
"match": "\\b(?i:and|or)\\b",
"name": "keyword.operator.kerboscript"
},
{
"match": "\\b(?i:sas|gear|rcs|lights|brakes|legs|chutes|panels|ag1|ag2|ag3|ag4|ag5|ag6|ag7|ag8|ag9|ag0) (on|off)\\b",
"name": "support.function.source.kerboscript"
},
{
"match": "\\b(?i:abs|mod|floor|ceiling|round|round|sqrt|sin|cos|tan|arcsin|arccos|arctan|arctan2)\\b",
"name": "support.function.source.kerboscript"
},
{
"begin": "\"",
"end": "\"",
"name": "string.quoted.double.source.kerboscript"
}
],
"scopeName": "source.kerboscript",
"uuid": "886bf29f-5844-4c49-8542-812a9e0ebc5c"
}