-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr7.sublime-syntax
39 lines (38 loc) · 1.01 KB
/
pr7.sublime-syntax
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
%YAML 1.2
---
name: Prototype 7 Level Description Language
file_extensions: [pr7, Pr7, PR7]
scope: source.pr7
contexts:
main:
- match: '\~.*$'
scope: comment.line.pr7
- match: '(\@max_towers)\s([0-9]+)'
captures:
1: storage.type.struct.pr7
2: constant.numeric.value.pr7
- match: '(\@tile)\s([A-Za-z])\s([^ ]{2})'
captures:
1: storage.type.struct.pr7
2: entity.name.pr7
3: string.pr7
- match: '(\@event)\s(spawn)\s([a-z_]+)\s([A-Za-z])\s([0-9]+)'
captures:
1: keyword.control.pr7
2: keyword.control.pr7
3: constant.numeric.value.pr7
4: entity.name.pr7
5: constant.numeric.value.pr7
- match: '(\@[a-z_]+).*$'
captures:
1: keyword.control.pr7
- match: '(\?)([A-Za-z])'
captures:
1: storage.type.struct.pr7
2: entity.name.function.pr7
- match: '([^ ])(\-)'
captures:
1: string.pr7
2: comment.block.pr7
- match: '[^ ]{2}'
scope: string.pr7