1
1
# yaml-language-server: $schema=../../../.vscode/tmLanguage.json
2
2
3
- name : " INI (Cortex Command)"
3
+ name : ' INI (Cortex Command)'
4
4
scopeName : source.ccini
5
5
patterns :
6
- - { include: " #comments" }
7
- - { include: " #moduleDeclarations" }
8
- - { include: " #definitions" }
6
+ - { include: ' #comments' }
7
+ - { include: ' #moduleDeclarations' }
8
+ - { include: ' #definitions' }
9
9
# - { include: '#assignments' }
10
10
# - { include: "#presetDefinition" }
11
11
# - { include: "#numbers" }
@@ -16,34 +16,34 @@ repository:
16
16
name : meta.definition.module
17
17
begin : ^(DataModule)$
18
18
beginCaptures :
19
- " 1 " :
19
+ ' 1 ' :
20
20
name : keyword
21
21
end : ^(?!\t+)
22
22
patterns :
23
- - include : " #comments"
24
- - include : " #assignments"
23
+ - include : ' #comments'
24
+ - include : ' #assignments'
25
25
26
26
definitions :
27
27
name : meta.definition.block
28
28
begin : ^((\w+)\s+(=)\s+(?:(.+?)(?:\s*?))(?=(?:\/\*(?!.*\*\/))|\/\/|\n))
29
29
end : ^(?=\w)
30
30
beginCaptures :
31
- " 0 " :
31
+ ' 0 ' :
32
32
name : meta.expression.assignment
33
- " 2 " :
33
+ ' 2 ' :
34
34
name : support.type.property-name
35
35
patterns :
36
- - include : " #presetDeclarations"
37
- " 3 " :
36
+ - include : ' #presetDeclarations'
37
+ ' 3 ' :
38
38
name : keyword.operator.assignment
39
- " 4 " :
39
+ ' 4 ' :
40
40
patterns :
41
- - { include: " #comments" }
42
- - { include: " #classNames" }
41
+ - { include: ' #comments' }
42
+ - { include: ' #classNames' }
43
43
44
44
patterns :
45
- - { include: " #comments" }
46
- - { include: " #assignments" }
45
+ - { include: ' #comments' }
46
+ - { include: ' #assignments' }
47
47
48
48
assignments :
49
49
match : (?:\t+)((\w+)\s+(=)\s+(?:(.+?)(?:\s*?))(?=(?:\/\*(?!.*\*\/))|\/\/|\n))
@@ -60,57 +60,57 @@ repository:
60
60
# )
61
61
# )
62
62
captures :
63
- " 0 " :
63
+ ' 0 ' :
64
64
name : meta.expression.assignment
65
- " 2 " :
65
+ ' 2 ' :
66
66
name : support.type.property-name
67
67
patterns :
68
- - include : " #presetDeclarations"
69
- " 3 " :
68
+ - include : ' #presetDeclarations'
69
+ ' 3 ' :
70
70
name : keyword.operator.assignment
71
- " 4 " :
71
+ ' 4 ' :
72
72
patterns :
73
- - { include: " #comments" }
74
- - { include: " #classNames" }
75
- - { include: " #numbers" }
76
- - { include: " #strings" }
73
+ - { include: ' #comments' }
74
+ - { include: ' #classNames' }
75
+ - { include: ' #numbers' }
76
+ - { include: ' #strings' }
77
77
78
78
commentBlock :
79
79
patterns :
80
80
- name : comment.block
81
81
begin : \/\*
82
82
end : \*\/
83
83
patterns :
84
- - include : " #commentBlock"
84
+ - include : ' #commentBlock'
85
85
86
86
comments :
87
87
patterns :
88
- - include : " #commentBlock"
88
+ - include : ' #commentBlock'
89
89
90
90
# - name: comment.block.inline
91
91
# match: (\/\*).*?(?=\*\/)(\*\/)
92
92
93
93
- name : comment.line.double-slash
94
94
begin : (^[ \t]+)?(?=//)
95
95
beginCaptures :
96
- " 1 " :
96
+ ' 1 ' :
97
97
name : punctuation.whitespace.comment.leading.ccini
98
98
end : " (?!\\ G)"
99
99
patterns :
100
100
- name : comment.line
101
101
begin : //
102
102
beginCaptures :
103
- " 0 " :
103
+ ' 0 ' :
104
104
name : comment.line.double-slash
105
105
end : $
106
106
107
107
classNames :
108
108
name : entity.name.class
109
109
match : (Vector|Matrix|InputScheme|InputMapping|GenericSavedData|Entity|ContentFile|Color|Box|Atom|Turret|ThrownDevice|TerrainObject|TerrainFrosting|TerrainDebris|TDExplosive|SoundSet|SoundContainer|SLTerrain|SLBackground|SOPlacer|SceneObject|SceneLayer|Area|Scene|Round|PieSlice|PEmitter|MovableObject|MOSRotating|MOSprite|MOSParticle|MOPixel|MetaSave|MetaPlayer|Material|Magazine|Loadout|LimbPath|Leg|Icon|HeldDevice|HDFirearm|GlobalScript|Gib|Emission|Deployment|BunkerAssemblyScheme|BunkerAssembly|Attachable|AtomGroup|Arm|AHuman|AEmitter|ADSensor|ADoor|Actor|Activity|ACRocket|Exit|ACraft|ACrab|ACDropShip|MultiplayerServerLobby|MultiplayerGame|GATutorial|GAScripted|GameActivity)(\s*?\/\*.*?\*\/\s*?)?$
110
110
captures :
111
- " 0 " :
111
+ ' 0 ' :
112
112
patterns :
113
- - include : " #comments"
113
+ - include : ' #comments'
114
114
115
115
presetDeclarations :
116
116
name : keyword
@@ -121,26 +121,26 @@ repository:
121
121
begin : (?=[\w\-])
122
122
end : (?=\n|$|(\/\*(?!.*\*\/))|(\/\/))
123
123
patterns :
124
- - include : " #comments"
125
- - include : " #modulePath"
124
+ - include : ' #comments'
125
+ - include : ' #modulePath'
126
126
127
127
modulePath :
128
128
match : (([A-Z][A-z0-9 ]*\.rte)(\/[A-z0-9 ]*)*(\/[A-z0-9 ]+\.(wav|flac|png|bmp|ini)))(\s*?\/\*.*?\*\/\s*?)?$
129
129
captures :
130
- " 1 " :
130
+ ' 1 ' :
131
131
name : markup.underline.link
132
- " 6 " :
132
+ ' 6 ' :
133
133
patterns :
134
- - include : " #comments"
134
+ - include : ' #comments'
135
135
136
136
numbers :
137
137
name : constant.numeric
138
138
match : ((-?[0-9]+\.[0-9]+)|(-?[0-9]+))(\s*?\/\*.*?\*\/\s*?)?$
139
139
captures :
140
- " 2 " :
140
+ ' 2 ' :
141
141
name : constant.numeric.float
142
- " 3 " :
142
+ ' 3 ' :
143
143
name : constant.numeric.integer
144
- " 4 " :
144
+ ' 4 ' :
145
145
patterns :
146
- - include : " #comments"
146
+ - include : ' #comments'
0 commit comments