factoriomod-debug 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,229 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3
+ "name": "Factorio Locale",
4
+ "repository": {
5
+ "parameter" : {
6
+ "patterns": [
7
+ {
8
+ "match": "(__)(\\d+)(__)",
9
+ "captures": {
10
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
11
+ "2":{"name": "variable.parameter.factorio-locale"},
12
+ "3":{"name": "punctuation.definition.tag.end.factorio-locale"}
13
+ }
14
+ },
15
+ {
16
+ "name": "meta.plural.factorio-locale",
17
+ "match": "(__)(plural_for_parameter)(_)([0-9]+)(_\\{)([^}]*)(\\}__)",
18
+ "captures": {
19
+ "1": {"name": "punctuation.definition.tag.begin.factorio-locale"},
20
+ "2": {"name": "support.function.plural.factorio-locale"},
21
+ "3": {"name": "punctuation.definition.tag.middle.factorio-locale"},
22
+ "4": {"name": "variable.parameter.factorio-locale"},
23
+ "5": {"name": "punctuation.definition.tag.middle.factorio-locale"},
24
+ "6": {
25
+ "name": "meta.plural-options.factorio-locale",
26
+ "patterns": [
27
+ {
28
+ "name":"keyword.operator.factorio-locale",
29
+ "match": "\\|"
30
+ },
31
+ {
32
+ "match": "([^=|]+)(=)([^|]*)",
33
+ "captures": {
34
+ "1":{
35
+ "patterns": [
36
+ {
37
+ "name": "keyword.control.plural.rest.factorio-locale",
38
+ "match": "rest"
39
+ },
40
+ {
41
+ "match": "(ends in )?(\\d+(-\\d+)?)",
42
+ "captures": {
43
+ "1": { "name": "keyword.control.plural.endsin.factorio-locale" },
44
+ "2": { "name": "constant.numeric.plural.factorio-locale" }
45
+ }
46
+ },
47
+ {
48
+ "name":"keyword.operator.factorio-locale",
49
+ "match": ","
50
+ },
51
+ {
52
+ "name":"invalid.illegal.plural.factorio-locale",
53
+ "match": ".+"
54
+ }
55
+ ]
56
+ },
57
+ "2": {"name": "punctuation.separator.key-value.factorio-locale"},
58
+ "3": {
59
+ "name": "meta.text.plural.factorio-locale",
60
+ "patterns": [{"include": "#localisedSegment"}]
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "name":"invalid.illegal.plural.factorio-locale",
66
+ "match": ".+"
67
+ }
68
+ ]
69
+ },
70
+ "7": {"name": "punctuation.definition.tag.end.factorio-locale"}
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ "localisedSegment" : {
76
+ "patterns": [
77
+ {
78
+ "name": "constant.character.escape.factorio-locale",
79
+ "match": "\\\\n"
80
+ },
81
+ { "include": "#parameter" },
82
+ {
83
+ "match": "(__)(CONTROL_(?:MOVE|(?:LEFT|RIGHT)_CLICK|KEY_(?:SHIFT|CTRL)|STYLE_(?:BEGIN|END)))(__)",
84
+ "captures": {
85
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
86
+ "2":{"name": "entity.name.namespace.factorio-locale"},
87
+ "3":{"name": "punctuation.definition.tag.end.factorio-locale"}
88
+ }
89
+ },
90
+ {
91
+ "match": "(__)(CONTROL(?:_MODIFIER)?|ENTITY|ITEM|TILE|FLUID)(__)(.+?)(__)",
92
+ "captures": {
93
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
94
+ "2":{"name": "entity.name.namespace.factorio-locale"},
95
+ "3":{"name": "punctuation.definition.tag.middle.factorio-locale"},
96
+ "4":{"name": "string.unquoted.factorio-locale"},
97
+ "5":{"name": "punctuation.definition.tag.end.factorio-locale"}
98
+ }
99
+ },
100
+ {
101
+ "match": "(__)(ALT_CONTROL)(__)(\\d+)(__)(.+?)(__)",
102
+ "captures": {
103
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
104
+ "2":{"name": "entity.name.namespace.factorio-locale"},
105
+ "3":{"name": "punctuation.definition.tag.middle.factorio-locale"},
106
+ "4":{"name": "constant.numeric.alt-control.factorio-locale"},
107
+ "5":{"name": "punctuation.definition.tag.middle.factorio-locale"},
108
+ "6":{"name": "string.unquoted.factorio-locale"},
109
+ "7":{"name": "punctuation.definition.tag.end.factorio-locale"}
110
+ }
111
+ },
112
+ {
113
+ "match": "(__)(ALT_CONTROL_(?:LEFT|RIGHT)_CLICK)(__)(\\d+)(__)",
114
+ "captures": {
115
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
116
+ "2":{"name": "entity.name.namespace.factorio-locale"},
117
+ "3":{"name": "punctuation.definition.tag.middle.factorio-locale"},
118
+ "4":{"name": "constant.numeric.alt-control.factorio-locale"},
119
+ "5":{"name": "punctuation.definition.tag.middle.factorio-locale"}
120
+ }
121
+ },
122
+ {
123
+ "match": "(__)(REMARK_COLOR_(?:BEGIN|END))(__)",
124
+ "captures": {
125
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
126
+ "2":{"name": "entity.name.namespace.factorio-locale"},
127
+ "3":{"name": "punctuation.definition.tag.end.factorio-locale"}
128
+ }
129
+ },
130
+ {
131
+ "begin": "(\\[)(font)(=)([^\\]]*)(\\])",
132
+ "beginCaptures": {
133
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
134
+ "2":{"name": "entity.name.tag.font.factorio-locale"},
135
+ "3":{"name": "punctuation.separator.key-value.factorio-locale"},
136
+ "4":{
137
+ "name": "string.unquoted.factorio-locale",
138
+ "patterns": [{ "include": "#parameter" }]
139
+ },
140
+ "5":{"name": "punctuation.definition.tag.end.factorio-locale"}
141
+ },
142
+ "end": "(\\[[./])(font)(\\])",
143
+ "endCaptures": {
144
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
145
+ "2":{"name": "entity.name.tag.font.factorio-locale"},
146
+ "3":{"name": "punctuation.definition.tag.end.factorio-locale"}
147
+ },
148
+ "patterns": [{"include": "#localisedSegment"}]
149
+ },
150
+ {
151
+ "begin": "(\\[)(color)(=)([^\\]]*)(\\])",
152
+ "beginCaptures": {
153
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
154
+ "2":{"name": "entity.name.tag.color.factorio-locale"},
155
+ "3":{"name": "punctuation.separator.key-value.factorio-locale"},
156
+ "4":{
157
+ "name": "string.unquoted.factorio-locale",
158
+ "patterns": [{ "include": "#parameter" }]
159
+ },
160
+ "5":{"name": "punctuation.definition.tag.end.factorio-locale"}
161
+ },
162
+ "end": "(\\[[./])(color)(\\])",
163
+ "endCaptures": {
164
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
165
+ "2":{"name": "entity.name.tag.color.factorio-locale"},
166
+ "3":{"name": "punctuation.definition.tag.end.factorio-locale"}
167
+ },
168
+ "patterns": [{"include": "#localisedSegment"}]
169
+ },
170
+ {
171
+ "match": "(\\[)(img|(?:special-)?item(?:-group)?|entity|technology|recipe|fluid|tile|virtual-signal|achievement|gps|armor|train(?:-stop)?)(=)([^\\]]*)(\\])",
172
+ "captures": {
173
+ "1":{"name": "punctuation.definition.tag.begin.factorio-locale"},
174
+ "2":{"name": "entity.name.tag.factorio-locale"},
175
+ "3":{"name": "punctuation.separator.key-value.factorio-locale"},
176
+ "4":{
177
+ "name": "string.unquoted.factorio-locale",
178
+ "patterns": [{ "include": "#parameter" }]
179
+ },
180
+ "5":{"name": "punctuation.definition.tag.end.factorio-locale"}
181
+ }
182
+ },
183
+ {
184
+ "match": "(__)(.+?)(__)",
185
+ "captures": {
186
+ "1":{"name":"punctuation.definition.tag.begin.factorio-locale"},
187
+ "2":{"name":"invalid.variable.factorio-locale"},
188
+ "3":{"name":"punctuation.definition.tag.end.factorio-locale"}
189
+ }
190
+ }
191
+ ]
192
+ }
193
+
194
+ },
195
+ "patterns": [
196
+ {
197
+ "contentName": "entity.name.namespace.factorio-locale",
198
+ "begin": "^[ \t\r]*(\\[)",
199
+ "beginCaptures": {
200
+ "1":{"name":"punctuation.definition.tag.begin.factorio-locale"}
201
+ },
202
+ "end": "(\\])[ \t\r]*$",
203
+ "endCaptures": {
204
+ "1":{"name":"punctuation.definition.tag.end.factorio-locale"}
205
+ }
206
+ },
207
+ {
208
+ "match": "^[ \t\r]*[#;].*$",
209
+ "name": "comment.line.factorio-locale"
210
+ },
211
+ {
212
+ "match": "^[ \t\r]*([^=.]+)(=)(.+)$",
213
+ "name": "meta.record.factorio-locale",
214
+ "captures": {
215
+ "1": {"name": "variable.factorio-locale"},
216
+ "2": {"name": "punctuation.separator.key-value.factorio-locale"},
217
+ "3": {
218
+ "name": "meta.text.factorio-locale",
219
+ "patterns": [{"include": "#localisedSegment"}]
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "match": "^.*$",
225
+ "name":"invalid.unknown-line.factorio-locale"
226
+ }
227
+ ],
228
+ "scopeName": "source.factorio-locale"
229
+ }