-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathkos.YAML-tmLanguage
More file actions
72 lines (56 loc) · 2 KB
/
kos.YAML-tmLanguage
File metadata and controls
72 lines (56 loc) · 2 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
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: kOS
scopeName: source.kos
fileTypes: [txt, kos]
uuid: a73c33ac-e3fa-45c6-ba20-040413ac4dc4
patterns:
- match: //.*
name: comment.line.source.kos
- 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.kos
- match: \b(?i:heading|bearing|direction)\b
name: storage.type.source.kos
captures:
'1': { name: keyword.source.kos }
'2': { name: keyword.source.kos }
- match: \s*(?i:(set|log|rename))\s.*(?i:(to))\s*
name: text.source.kos
captures:
'1': { name: keyword.source.kos }
'2': { name: keyword.source.kos }
- match: \s*(?i:(copy))\s.*(?i:(to|from))\s*
name: text.source.kos
captures:
'1': { name: keyword.source.kos }
'2': { name: keyword.source.kos }
- match: \s*(?i:(delete))\s.*(?i:(from))\s*
name: text.source.kos
captures:
'1': { name: keyword.source.kos }
'2': { name: keyword.source.kos }
- match: \b(?i:(lock))\s.*(?i:(to))\b
name: text.source.kos
captures:
'1': { name: keyword.source.kos }
'2': { name: keyword.source.kos }
- match: \b(?i:(print))\s[^"]+(?i:(at))\b
name: text.source.kos
captures:
'1': { name: keyword.source.kos }
'2': { name: keyword.source.kos }
- match: \b(?i:(when))\s.+(?i:(then))\b
name: text.source.kos
- 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.kos
- match: \b(?i:until|if|wait)\b
name: keyword.control.kos
- match: \b(?i:and|or)\b
name: keyword.operator.kos
- match: \b(?i:sas|gear|rcs|lights|brakes|legs|chutes|panels) (on|off)\b
name: support.function.source.kos
- match: \b(?i:abs|mod|floor|ceiling|round|round|sqrt|sin|cos|tan|arcsin|arccos|arctan|arctan2)\b
name: support.function.source.kos
- begin: \"
end: \"
name: string.quoted.double.source.kos