@codingame/monaco-languageclient-wrapper 1.0.9 → 1.1.0

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.
Files changed (170) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/createLanguageClient.d.ts +2 -2
  37. package/dist/csharp.js +18 -0
  38. package/dist/csharp.tmLanguage.js +4750 -0
  39. package/dist/css.tmLanguage.js +1873 -0
  40. package/dist/css.worker.js +6 -0
  41. package/dist/cssContribution.js +10 -0
  42. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  43. package/dist/d.js +3159 -0
  44. package/dist/dart.js +530 -0
  45. package/dist/diet.js +758 -0
  46. package/dist/diet2.js +92 -0
  47. package/dist/dml.js +169 -0
  48. package/dist/eex.js +55 -0
  49. package/dist/elixir.js +2341 -0
  50. package/dist/elixir2.js +184 -0
  51. package/dist/erlang.js +195 -0
  52. package/dist/expression.js +846 -0
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/index.d.ts +2 -2
  73. package/dist/inline-styles.js +104 -0
  74. package/dist/inline-template.js +88 -0
  75. package/dist/java.js +18 -0
  76. package/dist/java.tmLanguage.js +1863 -0
  77. package/dist/javascript.js +196 -0
  78. package/dist/javascriptreact.js +196 -0
  79. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  80. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  81. package/dist/json.worker.js +6 -0
  82. package/dist/jsonContribution.js +78 -0
  83. package/dist/keybindings/index.d.ts +2 -0
  84. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  85. package/dist/keybindings/vim.d.ts +3 -0
  86. package/dist/kotlin.js +117 -0
  87. package/dist/kotlinscript.js +117 -0
  88. package/dist/languageClient.d.ts +8 -14
  89. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  90. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  91. package/dist/languages/index.d.ts +3 -0
  92. package/dist/languages/monarch/index.d.ts +7 -0
  93. package/dist/languages/monarch/list.d.ts +7 -0
  94. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  95. package/dist/languages/snippets/index.d.ts +1 -0
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  98. package/dist/languages/textMate/index.d.ts +2 -0
  99. package/dist/literateHaskell.tmLanguage.js +70 -0
  100. package/dist/lua.tmLanguage.js +289 -0
  101. package/dist/main.js +619 -314
  102. package/dist/markdown.js +103 -0
  103. package/dist/markdown.tmLanguage.js +2784 -0
  104. package/dist/merlin.js +111 -0
  105. package/dist/monaco.d.ts +8 -0
  106. package/dist/objective-c.tmLanguage.js +3618 -0
  107. package/dist/ocaml-hover-info.js +34 -0
  108. package/dist/ocaml-hover-type.js +24 -0
  109. package/dist/ocaml-markdown-codeblock.js +42 -0
  110. package/dist/ocaml.js +2979 -0
  111. package/dist/ocamlbuild.js +239 -0
  112. package/dist/opam.js +149 -0
  113. package/dist/pascal.js +382 -0
  114. package/dist/pascal.tmLanguage.js +169 -0
  115. package/dist/perl.tmLanguage.js +2986 -0
  116. package/dist/perl6.tmLanguage.js +323 -0
  117. package/dist/pgsql.tmLanguage.js +284 -0
  118. package/dist/php.js +265 -0
  119. package/dist/php.tmLanguage.js +3791 -0
  120. package/dist/platform.tmLanguage.js +1135 -0
  121. package/dist/powershell.js +18 -0
  122. package/dist/powershell.tmLanguage.js +1037 -0
  123. package/dist/r.tmLanguage.js +551 -0
  124. package/dist/reason-hover-info.js +34 -0
  125. package/dist/reason-hover-signature.js +21 -0
  126. package/dist/reason-hover-type.js +21 -0
  127. package/dist/reason-markdown-codeblock.js +42 -0
  128. package/dist/reason.js +100 -0
  129. package/dist/ruby.tmLanguage.js +2784 -0
  130. package/dist/rust.tmLanguage.js +1178 -0
  131. package/dist/sassdoc.tmLanguage.js +362 -0
  132. package/dist/scss.tmLanguage.js +1887 -0
  133. package/dist/sdc.tmLanguage.js +712 -0
  134. package/dist/sdl.js +162 -0
  135. package/dist/services/Configuration.d.ts +2 -3
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/services/WatchableConsoleWindow.d.ts +2 -0
  139. package/dist/services.d.ts +1 -2
  140. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  141. package/dist/sql.js +21 -0
  142. package/dist/staticOptions.d.ts +9 -0
  143. package/dist/stub-generator.js +15 -0
  144. package/dist/swift.js +183 -0
  145. package/dist/swift.tmLanguage.js +3288 -0
  146. package/dist/systemverilog.js +208 -0
  147. package/dist/systemverilog.tmLanguage.js +1067 -0
  148. package/dist/tcl.js +151 -0
  149. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  150. package/dist/template.js +207 -0
  151. package/dist/theme/index.d.ts +3 -0
  152. package/dist/theme/registry.d.ts +4 -0
  153. package/dist/theme/semanticHighlight.d.ts +1 -0
  154. package/dist/theme/tools.d.ts +13 -0
  155. package/dist/tools.d.ts +3 -0
  156. package/dist/ts.worker.js +6 -0
  157. package/dist/typescript.js +312 -0
  158. package/dist/typescriptContribution.js +36 -0
  159. package/dist/typescriptreact.js +312 -0
  160. package/dist/ucf.tmLanguage.js +36 -0
  161. package/dist/vb.js +88 -0
  162. package/dist/verilog.js +432 -0
  163. package/dist/verilog.tmLanguage.js +321 -0
  164. package/dist/worker.d.ts +6 -0
  165. package/dist/worker.js +54 -0
  166. package/dist/xml.tmLanguage.js +395 -0
  167. package/dist/xsl.tmLanguage.js +102 -0
  168. package/dist/yaml.tmLanguage.js +629 -0
  169. package/package.json +19 -20
  170. package/stats.html +1 -1
@@ -0,0 +1,3347 @@
1
+ var information_for_contributors = [
2
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/cpp/",
3
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
+ "Once accepted there, we are happy to receive an update request."
5
+ ];
6
+ var version = "https://github.com/jeff-hykin/cpp-textmate-grammar/commit/0ef79f098ed80ce5a86be4ed40f99ebcdbac4895";
7
+ var name = "C";
8
+ var scopeName = "source.c";
9
+ var patterns = [
10
+ {
11
+ include: "#preprocessor-rule-enabled"
12
+ },
13
+ {
14
+ include: "#preprocessor-rule-disabled"
15
+ },
16
+ {
17
+ include: "#preprocessor-rule-conditional"
18
+ },
19
+ {
20
+ include: "#predefined_macros"
21
+ },
22
+ {
23
+ include: "#comments"
24
+ },
25
+ {
26
+ include: "#switch_statement"
27
+ },
28
+ {
29
+ match: "\\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\\b",
30
+ name: "keyword.control.c"
31
+ },
32
+ {
33
+ include: "#storage_types"
34
+ },
35
+ {
36
+ match: "typedef",
37
+ name: "keyword.other.typedef.c"
38
+ },
39
+ {
40
+ match: "\\b(const|extern|register|restrict|static|volatile|inline)\\b",
41
+ name: "storage.modifier.c"
42
+ },
43
+ {
44
+ match: "\\bk[A-Z]\\w*\\b",
45
+ name: "constant.other.variable.mac-classic.c"
46
+ },
47
+ {
48
+ match: "\\bg[A-Z]\\w*\\b",
49
+ name: "variable.other.readwrite.global.mac-classic.c"
50
+ },
51
+ {
52
+ match: "\\bs[A-Z]\\w*\\b",
53
+ name: "variable.other.readwrite.static.mac-classic.c"
54
+ },
55
+ {
56
+ match: "\\b(NULL|true|false|TRUE|FALSE)\\b",
57
+ name: "constant.language.c"
58
+ },
59
+ {
60
+ include: "#operators"
61
+ },
62
+ {
63
+ include: "#numbers"
64
+ },
65
+ {
66
+ include: "#strings"
67
+ },
68
+ {
69
+ name: "meta.preprocessor.macro.c",
70
+ begin: "((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))((#)\\s*define\\b)\\s+((?<!\\w)[a-zA-Z_]\\w*(?!\\w))(?:(\\()([^()\\\\]+)(\\)))?",
71
+ beginCaptures: {
72
+ "1": {
73
+ patterns: [
74
+ {
75
+ include: "#inline_comment"
76
+ }
77
+ ]
78
+ },
79
+ "2": {
80
+ name: "comment.block.c punctuation.definition.comment.begin.c"
81
+ },
82
+ "3": {
83
+ name: "comment.block.c"
84
+ },
85
+ "4": {
86
+ patterns: [
87
+ {
88
+ match: "\\*\\/",
89
+ name: "comment.block.c punctuation.definition.comment.end.c"
90
+ },
91
+ {
92
+ match: "\\*",
93
+ name: "comment.block.c"
94
+ }
95
+ ]
96
+ },
97
+ "5": {
98
+ name: "keyword.control.directive.define.c"
99
+ },
100
+ "6": {
101
+ name: "punctuation.definition.directive.c"
102
+ },
103
+ "7": {
104
+ name: "entity.name.function.preprocessor.c"
105
+ },
106
+ "8": {
107
+ name: "punctuation.definition.parameters.begin.c"
108
+ },
109
+ "9": {
110
+ patterns: [
111
+ {
112
+ match: "(?<=[(,])\\s*((?<!\\w)[a-zA-Z_]\\w*(?!\\w))\\s*",
113
+ captures: {
114
+ "1": {
115
+ name: "variable.parameter.preprocessor.c"
116
+ }
117
+ }
118
+ },
119
+ {
120
+ match: ",",
121
+ name: "punctuation.separator.parameters.c"
122
+ },
123
+ {
124
+ match: "\\.\\.\\.",
125
+ name: "ellipses.c punctuation.vararg-ellipses.variable.parameter.preprocessor.c"
126
+ }
127
+ ]
128
+ },
129
+ "10": {
130
+ name: "punctuation.definition.parameters.end.c"
131
+ }
132
+ },
133
+ end: "(?<!\\\\)(?=\\n)",
134
+ patterns: [
135
+ {
136
+ include: "#preprocessor-rule-define-line-contents"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ begin: "^\\s*((#)\\s*(error|warning))\\b\\s*",
142
+ beginCaptures: {
143
+ "1": {
144
+ name: "keyword.control.directive.diagnostic.$3.c"
145
+ },
146
+ "2": {
147
+ name: "punctuation.definition.directive.c"
148
+ }
149
+ },
150
+ end: "(?<!\\\\)(?=\\n)",
151
+ name: "meta.preprocessor.diagnostic.c",
152
+ patterns: [
153
+ {
154
+ begin: "\"",
155
+ beginCaptures: {
156
+ "0": {
157
+ name: "punctuation.definition.string.begin.c"
158
+ }
159
+ },
160
+ end: "\"|(?<!\\\\)(?=\\s*\\n)",
161
+ endCaptures: {
162
+ "0": {
163
+ name: "punctuation.definition.string.end.c"
164
+ }
165
+ },
166
+ name: "string.quoted.double.c",
167
+ patterns: [
168
+ {
169
+ include: "#line_continuation_character"
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ begin: "'",
175
+ beginCaptures: {
176
+ "0": {
177
+ name: "punctuation.definition.string.begin.c"
178
+ }
179
+ },
180
+ end: "'|(?<!\\\\)(?=\\s*\\n)",
181
+ endCaptures: {
182
+ "0": {
183
+ name: "punctuation.definition.string.end.c"
184
+ }
185
+ },
186
+ name: "string.quoted.single.c",
187
+ patterns: [
188
+ {
189
+ include: "#line_continuation_character"
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ begin: "[^'\"]",
195
+ end: "(?<!\\\\)(?=\\s*\\n)",
196
+ name: "string.unquoted.single.c",
197
+ patterns: [
198
+ {
199
+ include: "#line_continuation_character"
200
+ },
201
+ {
202
+ include: "#comments"
203
+ }
204
+ ]
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ begin: "^\\s*((#)\\s*(include(?:_next)?|import))\\b\\s*",
210
+ beginCaptures: {
211
+ "1": {
212
+ name: "keyword.control.directive.$3.c"
213
+ },
214
+ "2": {
215
+ name: "punctuation.definition.directive.c"
216
+ }
217
+ },
218
+ end: "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
219
+ name: "meta.preprocessor.include.c",
220
+ patterns: [
221
+ {
222
+ include: "#line_continuation_character"
223
+ },
224
+ {
225
+ begin: "\"",
226
+ beginCaptures: {
227
+ "0": {
228
+ name: "punctuation.definition.string.begin.c"
229
+ }
230
+ },
231
+ end: "\"",
232
+ endCaptures: {
233
+ "0": {
234
+ name: "punctuation.definition.string.end.c"
235
+ }
236
+ },
237
+ name: "string.quoted.double.include.c"
238
+ },
239
+ {
240
+ begin: "<",
241
+ beginCaptures: {
242
+ "0": {
243
+ name: "punctuation.definition.string.begin.c"
244
+ }
245
+ },
246
+ end: ">",
247
+ endCaptures: {
248
+ "0": {
249
+ name: "punctuation.definition.string.end.c"
250
+ }
251
+ },
252
+ name: "string.quoted.other.lt-gt.include.c"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ include: "#pragma-mark"
258
+ },
259
+ {
260
+ begin: "^\\s*((#)\\s*line)\\b",
261
+ beginCaptures: {
262
+ "1": {
263
+ name: "keyword.control.directive.line.c"
264
+ },
265
+ "2": {
266
+ name: "punctuation.definition.directive.c"
267
+ }
268
+ },
269
+ end: "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
270
+ name: "meta.preprocessor.c",
271
+ patterns: [
272
+ {
273
+ include: "#strings"
274
+ },
275
+ {
276
+ include: "#numbers"
277
+ },
278
+ {
279
+ include: "#line_continuation_character"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ begin: "^\\s*(?:((#)\\s*undef))\\b",
285
+ beginCaptures: {
286
+ "1": {
287
+ name: "keyword.control.directive.undef.c"
288
+ },
289
+ "2": {
290
+ name: "punctuation.definition.directive.c"
291
+ }
292
+ },
293
+ end: "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
294
+ name: "meta.preprocessor.c",
295
+ patterns: [
296
+ {
297
+ match: "[a-zA-Z_$][\\w$]*",
298
+ name: "entity.name.function.preprocessor.c"
299
+ },
300
+ {
301
+ include: "#line_continuation_character"
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ begin: "^\\s*(?:((#)\\s*pragma))\\b",
307
+ beginCaptures: {
308
+ "1": {
309
+ name: "keyword.control.directive.pragma.c"
310
+ },
311
+ "2": {
312
+ name: "punctuation.definition.directive.c"
313
+ }
314
+ },
315
+ end: "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
316
+ name: "meta.preprocessor.pragma.c",
317
+ patterns: [
318
+ {
319
+ include: "#strings"
320
+ },
321
+ {
322
+ match: "[a-zA-Z_$][\\w\\-$]*",
323
+ name: "entity.other.attribute-name.pragma.preprocessor.c"
324
+ },
325
+ {
326
+ include: "#numbers"
327
+ },
328
+ {
329
+ include: "#line_continuation_character"
330
+ }
331
+ ]
332
+ },
333
+ {
334
+ match: "\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\b",
335
+ name: "support.type.sys-types.c"
336
+ },
337
+ {
338
+ match: "\\b(pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t)\\b",
339
+ name: "support.type.pthread.c"
340
+ },
341
+ {
342
+ match: "(?x) \\b\n(int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t\n|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t\n|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t\n|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|intmax_t\n|uintmax_t|uintmax_t)\n\\b",
343
+ name: "support.type.stdint.c"
344
+ },
345
+ {
346
+ match: "\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\b",
347
+ name: "support.constant.mac-classic.c"
348
+ },
349
+ {
350
+ match: "(?x) \\b\n(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam\n|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr\n|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber\n|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64\n|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32\n|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr\n|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\n\\b",
351
+ name: "support.type.mac-classic.c"
352
+ },
353
+ {
354
+ match: "\\b([A-Za-z0-9_]+_t)\\b",
355
+ name: "support.type.posix-reserved.c"
356
+ },
357
+ {
358
+ include: "#block"
359
+ },
360
+ {
361
+ include: "#parens"
362
+ },
363
+ {
364
+ name: "meta.function.c",
365
+ begin: "(?<!\\w)(?!\\s*(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|pthread_rwlock_t|atomic_uintptr_t|atomic_ptrdiff_t|atomic_uintmax_t|atomic_intmax_t|atomic_char32_t|atomic_intptr_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|uint_least8_t|int_least32_t|int_least16_t|pthread_key_t|uint_fast32_t|uint_fast64_t|uint_fast16_t|atomic_size_t|atomic_ushort|atomic_ullong|int_least64_t|atomic_ulong|int_least8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|memory_order|atomic_schar|atomic_uchar|atomic_short|atomic_llong|thread_local|atomic_bool|atomic_uint|atomic_long|int_fast8_t|suseconds_t|atomic_char|atomic_int|useconds_t|_Imaginary|uintmax_t|uintmax_t|in_addr_t|in_port_t|_Noreturn|blksize_t|pthread_t|uintptr_t|volatile|u_quad_t|blkcnt_t|intmax_t|intptr_t|_Complex|uint16_t|uint32_t|uint64_t|_Alignof|_Alignas|continue|unsigned|restrict|intmax_t|register|int64_t|qaddr_t|segsz_t|_Atomic|alignas|default|caddr_t|nlink_t|typedef|u_short|fixpt_t|clock_t|swblk_t|ssize_t|alignof|daddr_t|int16_t|int32_t|uint8_t|struct|mode_t|size_t|time_t|ushort|u_long|u_char|int8_t|double|signed|static|extern|inline|return|switch|xor_eq|and_eq|bitand|not_eq|sizeof|quad_t|uid_t|bitor|union|off_t|key_t|ino_t|compl|u_int|short|const|false|while|float|pid_t|break|_Bool|or_eq|div_t|dev_t|gid_t|id_t|long|case|goto|else|bool|auto|id_t|enum|uint|true|NULL|void|char|for|not|int|and|xor|do|or|if)\\s*\\()(?=[a-zA-Z_]\\w*\\s*\\()",
366
+ end: "(?!\\G)(?<=\\))",
367
+ patterns: [
368
+ {
369
+ include: "#function-innards"
370
+ }
371
+ ]
372
+ },
373
+ {
374
+ include: "#line_continuation_character"
375
+ },
376
+ {
377
+ name: "meta.bracket.square.access.c",
378
+ begin: "([a-zA-Z_][a-zA-Z_0-9]*|(?<=[\\]\\)]))?(\\[)(?!\\])",
379
+ beginCaptures: {
380
+ "1": {
381
+ name: "variable.object.c"
382
+ },
383
+ "2": {
384
+ name: "punctuation.definition.begin.bracket.square.c"
385
+ }
386
+ },
387
+ end: "\\]",
388
+ endCaptures: {
389
+ "0": {
390
+ name: "punctuation.definition.end.bracket.square.c"
391
+ }
392
+ },
393
+ patterns: [
394
+ {
395
+ include: "#function-call-innards"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ name: "storage.modifier.array.bracket.square.c",
401
+ match: "\\[\\s*\\]"
402
+ },
403
+ {
404
+ match: ";",
405
+ name: "punctuation.terminator.statement.c"
406
+ },
407
+ {
408
+ match: ",",
409
+ name: "punctuation.separator.delimiter.c"
410
+ }
411
+ ];
412
+ var repository = {
413
+ "access-method": {
414
+ name: "meta.function-call.member.c",
415
+ begin: "([a-zA-Z_][a-zA-Z_0-9]*|(?<=[\\]\\)]))\\s*(?:(\\.)|(->))((?:(?:[a-zA-Z_][a-zA-Z_0-9]*)\\s*(?:(?:\\.)|(?:->)))*)\\s*([a-zA-Z_][a-zA-Z_0-9]*)(\\()",
416
+ beginCaptures: {
417
+ "1": {
418
+ name: "variable.object.c"
419
+ },
420
+ "2": {
421
+ name: "punctuation.separator.dot-access.c"
422
+ },
423
+ "3": {
424
+ name: "punctuation.separator.pointer-access.c"
425
+ },
426
+ "4": {
427
+ patterns: [
428
+ {
429
+ match: "\\.",
430
+ name: "punctuation.separator.dot-access.c"
431
+ },
432
+ {
433
+ match: "->",
434
+ name: "punctuation.separator.pointer-access.c"
435
+ },
436
+ {
437
+ match: "[a-zA-Z_][a-zA-Z_0-9]*",
438
+ name: "variable.object.c"
439
+ },
440
+ {
441
+ name: "everything.else.c",
442
+ match: ".+"
443
+ }
444
+ ]
445
+ },
446
+ "5": {
447
+ name: "entity.name.function.member.c"
448
+ },
449
+ "6": {
450
+ name: "punctuation.section.arguments.begin.bracket.round.function.member.c"
451
+ }
452
+ },
453
+ end: "\\)",
454
+ endCaptures: {
455
+ "0": {
456
+ name: "punctuation.section.arguments.end.bracket.round.function.member.c"
457
+ }
458
+ },
459
+ patterns: [
460
+ {
461
+ include: "#function-call-innards"
462
+ }
463
+ ]
464
+ },
465
+ backslash_escapes: {
466
+ match: "(?x)\\\\ (\n\\\\\t\t\t |\n[abefnprtv'\"?] |\n[0-3][0-7]{,2}\t |\n[4-7]\\d?\t\t|\nx[a-fA-F0-9]{,2} |\nu[a-fA-F0-9]{,4} |\nU[a-fA-F0-9]{,8} )",
467
+ name: "constant.character.escape.c"
468
+ },
469
+ block: {
470
+ patterns: [
471
+ {
472
+ begin: "{",
473
+ beginCaptures: {
474
+ "0": {
475
+ name: "punctuation.section.block.begin.bracket.curly.c"
476
+ }
477
+ },
478
+ end: "}|(?=\\s*#\\s*(?:elif|else|endif)\\b)",
479
+ endCaptures: {
480
+ "0": {
481
+ name: "punctuation.section.block.end.bracket.curly.c"
482
+ }
483
+ },
484
+ name: "meta.block.c",
485
+ patterns: [
486
+ {
487
+ include: "#block_innards"
488
+ }
489
+ ]
490
+ }
491
+ ]
492
+ },
493
+ block_innards: {
494
+ patterns: [
495
+ {
496
+ include: "#preprocessor-rule-enabled-block"
497
+ },
498
+ {
499
+ include: "#preprocessor-rule-disabled-block"
500
+ },
501
+ {
502
+ include: "#preprocessor-rule-conditional-block"
503
+ },
504
+ {
505
+ include: "#method_access"
506
+ },
507
+ {
508
+ include: "#member_access"
509
+ },
510
+ {
511
+ include: "#c_function_call"
512
+ },
513
+ {
514
+ name: "meta.initialization.c",
515
+ begin: "(?x)\n(?:\n (?:\n\t(?=\\s)(?<!else|new|return)\n\t(?<=\\w) \\s+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas) # or word + space before name\n )\n)\n(\n (?:[A-Za-z_][A-Za-z0-9_]*+ | :: )++ # actual name\n |\n (?:(?<=operator) (?:[-*&<>=+!]+ | \\(\\) | \\[\\]))\n)\n\\s*(\\() # opening bracket",
516
+ beginCaptures: {
517
+ "1": {
518
+ name: "variable.other.c"
519
+ },
520
+ "2": {
521
+ name: "punctuation.section.parens.begin.bracket.round.initialization.c"
522
+ }
523
+ },
524
+ end: "\\)",
525
+ endCaptures: {
526
+ "0": {
527
+ name: "punctuation.section.parens.end.bracket.round.initialization.c"
528
+ }
529
+ },
530
+ patterns: [
531
+ {
532
+ include: "#function-call-innards"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ begin: "{",
538
+ beginCaptures: {
539
+ "0": {
540
+ name: "punctuation.section.block.begin.bracket.curly.c"
541
+ }
542
+ },
543
+ end: "}|(?=\\s*#\\s*(?:elif|else|endif)\\b)",
544
+ endCaptures: {
545
+ "0": {
546
+ name: "punctuation.section.block.end.bracket.curly.c"
547
+ }
548
+ },
549
+ patterns: [
550
+ {
551
+ include: "#block_innards"
552
+ }
553
+ ]
554
+ },
555
+ {
556
+ include: "#parens-block"
557
+ },
558
+ {
559
+ include: "$base"
560
+ }
561
+ ]
562
+ },
563
+ c_conditional_context: {
564
+ patterns: [
565
+ {
566
+ include: "$self"
567
+ },
568
+ {
569
+ include: "#block_innards"
570
+ }
571
+ ]
572
+ },
573
+ c_function_call: {
574
+ begin: "(?x)\n(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\s*\\()\n(?=\n(?:[A-Za-z_][A-Za-z0-9_]*+|::)++\\s*\\( # actual name\n|\n(?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\]))\\s*\\(\n)",
575
+ end: "(?<=\\))(?!\\w)",
576
+ name: "meta.function-call.c",
577
+ patterns: [
578
+ {
579
+ include: "#function-call-innards"
580
+ }
581
+ ]
582
+ },
583
+ case_statement: {
584
+ name: "meta.conditional.case.c",
585
+ begin: "((?>(?:(?:(?>(?<!\\s)\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))((?<!\\w)case(?!\\w))",
586
+ beginCaptures: {
587
+ "1": {
588
+ patterns: [
589
+ {
590
+ include: "#inline_comment"
591
+ }
592
+ ]
593
+ },
594
+ "2": {
595
+ name: "comment.block.c punctuation.definition.comment.begin.c"
596
+ },
597
+ "3": {
598
+ name: "comment.block.c"
599
+ },
600
+ "4": {
601
+ patterns: [
602
+ {
603
+ match: "\\*\\/",
604
+ name: "comment.block.c punctuation.definition.comment.end.c"
605
+ },
606
+ {
607
+ match: "\\*",
608
+ name: "comment.block.c"
609
+ }
610
+ ]
611
+ },
612
+ "5": {
613
+ name: "keyword.control.case.c"
614
+ }
615
+ },
616
+ end: "(:)",
617
+ endCaptures: {
618
+ "1": {
619
+ name: "punctuation.separator.colon.case.c"
620
+ }
621
+ },
622
+ patterns: [
623
+ {
624
+ include: "#evaluation_context"
625
+ },
626
+ {
627
+ include: "#c_conditional_context"
628
+ }
629
+ ]
630
+ },
631
+ comments: {
632
+ patterns: [
633
+ {
634
+ name: "comment.line.double-slash.documentation.c",
635
+ begin: "(?:^)(?>\\s*)(\\/\\/[!\\/]+)",
636
+ beginCaptures: {
637
+ "1": {
638
+ name: "punctuation.definition.comment.documentation.c"
639
+ }
640
+ },
641
+ end: "(?<=\\n)(?<!\\\\\\n)",
642
+ patterns: [
643
+ {
644
+ include: "#line_continuation_character"
645
+ },
646
+ {
647
+ match: "(?<=[\\s*!\\/])[\\\\@](?:callergraph|callgraph|else|endif|f\\$|f\\[|f\\]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|\\$|\\#|<|>|%|\"|\\.|=|::|\\||\\-\\-|\\-\\-\\-)\\b(?:\\{[^}]*\\})?",
648
+ name: "storage.type.class.doxygen.c"
649
+ },
650
+ {
651
+ match: "((?<=[\\s*!\\/])[\\\\@](?:a|em|e))\\s+(\\S+)",
652
+ captures: {
653
+ "1": {
654
+ name: "storage.type.class.doxygen.c"
655
+ },
656
+ "2": {
657
+ name: "markup.italic.doxygen.c"
658
+ }
659
+ }
660
+ },
661
+ {
662
+ match: "((?<=[\\s*!\\/])[\\\\@]b)\\s+(\\S+)",
663
+ captures: {
664
+ "1": {
665
+ name: "storage.type.class.doxygen.c"
666
+ },
667
+ "2": {
668
+ name: "markup.bold.doxygen.c"
669
+ }
670
+ }
671
+ },
672
+ {
673
+ match: "((?<=[\\s*!\\/])[\\\\@](?:c|p))\\s+(\\S+)",
674
+ captures: {
675
+ "1": {
676
+ name: "storage.type.class.doxygen.c"
677
+ },
678
+ "2": {
679
+ name: "markup.inline.raw.string.c"
680
+ }
681
+ }
682
+ },
683
+ {
684
+ match: "(?<=[\\s*!\\/])[\\\\@](?:a|anchor|b|c|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|e|em|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\b(?:\\{[^}]*\\})?",
685
+ name: "storage.type.class.doxygen.c"
686
+ },
687
+ {
688
+ match: "(?<=[\\s*!\\/])[\\\\@](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\b(?:\\{[^}]*\\})?",
689
+ name: "storage.type.class.doxygen.c"
690
+ },
691
+ {
692
+ match: "((?<=[\\s*!\\/])[\\\\@]param)(?:\\s*\\[((?:,?\\s*(?:in|out)\\s*)+)\\])?\\s+(\\b\\w+\\b)",
693
+ captures: {
694
+ "1": {
695
+ name: "storage.type.class.doxygen.c"
696
+ },
697
+ "2": {
698
+ patterns: [
699
+ {
700
+ match: "in|out",
701
+ name: "keyword.other.parameter.direction.$0.c"
702
+ }
703
+ ]
704
+ },
705
+ "3": {
706
+ name: "variable.parameter.c"
707
+ }
708
+ }
709
+ },
710
+ {
711
+ match: "(?<=[\\s*!\\/])[\\\\@](?:arg|attention|author|authors|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remark|remarks|result|return|returns|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\b(?:\\{[^}]*\\})?",
712
+ name: "storage.type.class.doxygen.c"
713
+ },
714
+ {
715
+ match: "(?<=[\\s*!\\/])[\\\\@](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\b(?:\\{[^}]*\\})?",
716
+ name: "storage.type.class.doxygen.c"
717
+ },
718
+ {
719
+ match: "(?:\\b[A-Z]+:|@[a-z_]+:)",
720
+ name: "storage.type.class.gtkdoc"
721
+ }
722
+ ]
723
+ },
724
+ {
725
+ match: "(\\/\\*[!*]+(?=\\s))(.+)([!*]*\\*\\/)",
726
+ captures: {
727
+ "1": {
728
+ name: "punctuation.definition.comment.begin.documentation.c"
729
+ },
730
+ "2": {
731
+ patterns: [
732
+ {
733
+ match: "(?<=[\\s*!\\/])[\\\\@](?:callergraph|callgraph|else|endif|f\\$|f\\[|f\\]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|\\$|\\#|<|>|%|\"|\\.|=|::|\\||\\-\\-|\\-\\-\\-)\\b(?:\\{[^}]*\\})?",
734
+ name: "storage.type.class.doxygen.c"
735
+ },
736
+ {
737
+ match: "((?<=[\\s*!\\/])[\\\\@](?:a|em|e))\\s+(\\S+)",
738
+ captures: {
739
+ "1": {
740
+ name: "storage.type.class.doxygen.c"
741
+ },
742
+ "2": {
743
+ name: "markup.italic.doxygen.c"
744
+ }
745
+ }
746
+ },
747
+ {
748
+ match: "((?<=[\\s*!\\/])[\\\\@]b)\\s+(\\S+)",
749
+ captures: {
750
+ "1": {
751
+ name: "storage.type.class.doxygen.c"
752
+ },
753
+ "2": {
754
+ name: "markup.bold.doxygen.c"
755
+ }
756
+ }
757
+ },
758
+ {
759
+ match: "((?<=[\\s*!\\/])[\\\\@](?:c|p))\\s+(\\S+)",
760
+ captures: {
761
+ "1": {
762
+ name: "storage.type.class.doxygen.c"
763
+ },
764
+ "2": {
765
+ name: "markup.inline.raw.string.c"
766
+ }
767
+ }
768
+ },
769
+ {
770
+ match: "(?<=[\\s*!\\/])[\\\\@](?:a|anchor|b|c|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|e|em|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\b(?:\\{[^}]*\\})?",
771
+ name: "storage.type.class.doxygen.c"
772
+ },
773
+ {
774
+ match: "(?<=[\\s*!\\/])[\\\\@](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\b(?:\\{[^}]*\\})?",
775
+ name: "storage.type.class.doxygen.c"
776
+ },
777
+ {
778
+ match: "((?<=[\\s*!\\/])[\\\\@]param)(?:\\s*\\[((?:,?\\s*(?:in|out)\\s*)+)\\])?\\s+(\\b\\w+\\b)",
779
+ captures: {
780
+ "1": {
781
+ name: "storage.type.class.doxygen.c"
782
+ },
783
+ "2": {
784
+ patterns: [
785
+ {
786
+ match: "in|out",
787
+ name: "keyword.other.parameter.direction.$0.c"
788
+ }
789
+ ]
790
+ },
791
+ "3": {
792
+ name: "variable.parameter.c"
793
+ }
794
+ }
795
+ },
796
+ {
797
+ match: "(?<=[\\s*!\\/])[\\\\@](?:arg|attention|author|authors|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remark|remarks|result|return|returns|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\b(?:\\{[^}]*\\})?",
798
+ name: "storage.type.class.doxygen.c"
799
+ },
800
+ {
801
+ match: "(?<=[\\s*!\\/])[\\\\@](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\b(?:\\{[^}]*\\})?",
802
+ name: "storage.type.class.doxygen.c"
803
+ },
804
+ {
805
+ match: "(?:\\b[A-Z]+:|@[a-z_]+:)",
806
+ name: "storage.type.class.gtkdoc"
807
+ }
808
+ ]
809
+ },
810
+ "3": {
811
+ name: "punctuation.definition.comment.end.documentation.c"
812
+ }
813
+ },
814
+ name: "comment.block.documentation.c"
815
+ },
816
+ {
817
+ name: "comment.block.documentation.c",
818
+ begin: "((?>\\s*)\\/\\*[!*]+(?:(?:\\n|$)|(?=\\s)))",
819
+ beginCaptures: {
820
+ "1": {
821
+ name: "punctuation.definition.comment.begin.documentation.c"
822
+ }
823
+ },
824
+ end: "([!*]*\\*\\/)",
825
+ endCaptures: {
826
+ "1": {
827
+ name: "punctuation.definition.comment.end.documentation.c"
828
+ }
829
+ },
830
+ patterns: [
831
+ {
832
+ match: "(?<=[\\s*!\\/])[\\\\@](?:callergraph|callgraph|else|endif|f\\$|f\\[|f\\]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|\\$|\\#|<|>|%|\"|\\.|=|::|\\||\\-\\-|\\-\\-\\-)\\b(?:\\{[^}]*\\})?",
833
+ name: "storage.type.class.doxygen.c"
834
+ },
835
+ {
836
+ match: "((?<=[\\s*!\\/])[\\\\@](?:a|em|e))\\s+(\\S+)",
837
+ captures: {
838
+ "1": {
839
+ name: "storage.type.class.doxygen.c"
840
+ },
841
+ "2": {
842
+ name: "markup.italic.doxygen.c"
843
+ }
844
+ }
845
+ },
846
+ {
847
+ match: "((?<=[\\s*!\\/])[\\\\@]b)\\s+(\\S+)",
848
+ captures: {
849
+ "1": {
850
+ name: "storage.type.class.doxygen.c"
851
+ },
852
+ "2": {
853
+ name: "markup.bold.doxygen.c"
854
+ }
855
+ }
856
+ },
857
+ {
858
+ match: "((?<=[\\s*!\\/])[\\\\@](?:c|p))\\s+(\\S+)",
859
+ captures: {
860
+ "1": {
861
+ name: "storage.type.class.doxygen.c"
862
+ },
863
+ "2": {
864
+ name: "markup.inline.raw.string.c"
865
+ }
866
+ }
867
+ },
868
+ {
869
+ match: "(?<=[\\s*!\\/])[\\\\@](?:a|anchor|b|c|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|e|em|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\b(?:\\{[^}]*\\})?",
870
+ name: "storage.type.class.doxygen.c"
871
+ },
872
+ {
873
+ match: "(?<=[\\s*!\\/])[\\\\@](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\b(?:\\{[^}]*\\})?",
874
+ name: "storage.type.class.doxygen.c"
875
+ },
876
+ {
877
+ match: "((?<=[\\s*!\\/])[\\\\@]param)(?:\\s*\\[((?:,?\\s*(?:in|out)\\s*)+)\\])?\\s+(\\b\\w+\\b)",
878
+ captures: {
879
+ "1": {
880
+ name: "storage.type.class.doxygen.c"
881
+ },
882
+ "2": {
883
+ patterns: [
884
+ {
885
+ match: "in|out",
886
+ name: "keyword.other.parameter.direction.$0.c"
887
+ }
888
+ ]
889
+ },
890
+ "3": {
891
+ name: "variable.parameter.c"
892
+ }
893
+ }
894
+ },
895
+ {
896
+ match: "(?<=[\\s*!\\/])[\\\\@](?:arg|attention|author|authors|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remark|remarks|result|return|returns|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\b(?:\\{[^}]*\\})?",
897
+ name: "storage.type.class.doxygen.c"
898
+ },
899
+ {
900
+ match: "(?<=[\\s*!\\/])[\\\\@](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\b(?:\\{[^}]*\\})?",
901
+ name: "storage.type.class.doxygen.c"
902
+ },
903
+ {
904
+ match: "(?:\\b[A-Z]+:|@[a-z_]+:)",
905
+ name: "storage.type.class.gtkdoc"
906
+ }
907
+ ]
908
+ },
909
+ {
910
+ match: "^\\/\\* =(\\s*.*?)\\s*= \\*\\/$\\n?",
911
+ captures: {
912
+ "1": {
913
+ name: "meta.toc-list.banner.block.c"
914
+ }
915
+ },
916
+ name: "comment.block.banner.c"
917
+ },
918
+ {
919
+ name: "comment.block.c",
920
+ begin: "(\\/\\*)",
921
+ beginCaptures: {
922
+ "1": {
923
+ name: "punctuation.definition.comment.begin.c"
924
+ }
925
+ },
926
+ end: "(\\*\\/)",
927
+ endCaptures: {
928
+ "1": {
929
+ name: "punctuation.definition.comment.end.c"
930
+ }
931
+ }
932
+ },
933
+ {
934
+ match: "^\\/\\/ =(\\s*.*?)\\s*=$\\n?",
935
+ captures: {
936
+ "1": {
937
+ name: "meta.toc-list.banner.line.c"
938
+ }
939
+ },
940
+ name: "comment.line.banner.c"
941
+ },
942
+ {
943
+ begin: "((?:^[ \\t]+)?)(?=\\/\\/)",
944
+ beginCaptures: {
945
+ "1": {
946
+ name: "punctuation.whitespace.comment.leading.c"
947
+ }
948
+ },
949
+ end: "(?!\\G)",
950
+ patterns: [
951
+ {
952
+ name: "comment.line.double-slash.c",
953
+ begin: "(\\/\\/)",
954
+ beginCaptures: {
955
+ "1": {
956
+ name: "punctuation.definition.comment.c"
957
+ }
958
+ },
959
+ end: "(?=\\n)",
960
+ patterns: [
961
+ {
962
+ include: "#line_continuation_character"
963
+ }
964
+ ]
965
+ }
966
+ ]
967
+ }
968
+ ]
969
+ },
970
+ default_statement: {
971
+ name: "meta.conditional.case.c",
972
+ begin: "((?>(?:(?:(?>(?<!\\s)\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))((?<!\\w)default(?!\\w))",
973
+ beginCaptures: {
974
+ "1": {
975
+ patterns: [
976
+ {
977
+ include: "#inline_comment"
978
+ }
979
+ ]
980
+ },
981
+ "2": {
982
+ name: "comment.block.c punctuation.definition.comment.begin.c"
983
+ },
984
+ "3": {
985
+ name: "comment.block.c"
986
+ },
987
+ "4": {
988
+ patterns: [
989
+ {
990
+ match: "\\*\\/",
991
+ name: "comment.block.c punctuation.definition.comment.end.c"
992
+ },
993
+ {
994
+ match: "\\*",
995
+ name: "comment.block.c"
996
+ }
997
+ ]
998
+ },
999
+ "5": {
1000
+ name: "keyword.control.default.c"
1001
+ }
1002
+ },
1003
+ end: "(:)",
1004
+ endCaptures: {
1005
+ "1": {
1006
+ name: "punctuation.separator.colon.case.default.c"
1007
+ }
1008
+ },
1009
+ patterns: [
1010
+ {
1011
+ include: "#evaluation_context"
1012
+ },
1013
+ {
1014
+ include: "#c_conditional_context"
1015
+ }
1016
+ ]
1017
+ },
1018
+ disabled: {
1019
+ begin: "^\\s*#\\s*if(n?def)?\\b.*$",
1020
+ end: "^\\s*#\\s*endif\\b",
1021
+ patterns: [
1022
+ {
1023
+ include: "#disabled"
1024
+ },
1025
+ {
1026
+ include: "#pragma-mark"
1027
+ }
1028
+ ]
1029
+ },
1030
+ evaluation_context: {
1031
+ patterns: [
1032
+ {
1033
+ include: "#function-call-innards"
1034
+ },
1035
+ {
1036
+ include: "$base"
1037
+ }
1038
+ ]
1039
+ },
1040
+ "function-call-innards": {
1041
+ patterns: [
1042
+ {
1043
+ include: "#comments"
1044
+ },
1045
+ {
1046
+ include: "#storage_types"
1047
+ },
1048
+ {
1049
+ include: "#method_access"
1050
+ },
1051
+ {
1052
+ include: "#member_access"
1053
+ },
1054
+ {
1055
+ include: "#operators"
1056
+ },
1057
+ {
1058
+ begin: "(?x)\n(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\s*\\()\n(\n(?:[A-Za-z_][A-Za-z0-9_]*+|::)++ # actual name\n|\n(?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\]))\n)\n\\s*(\\()",
1059
+ beginCaptures: {
1060
+ "1": {
1061
+ name: "entity.name.function.c"
1062
+ },
1063
+ "2": {
1064
+ name: "punctuation.section.arguments.begin.bracket.round.c"
1065
+ }
1066
+ },
1067
+ end: "\\)",
1068
+ endCaptures: {
1069
+ "0": {
1070
+ name: "punctuation.section.arguments.end.bracket.round.c"
1071
+ }
1072
+ },
1073
+ patterns: [
1074
+ {
1075
+ include: "#function-call-innards"
1076
+ }
1077
+ ]
1078
+ },
1079
+ {
1080
+ begin: "\\(",
1081
+ beginCaptures: {
1082
+ "0": {
1083
+ name: "punctuation.section.parens.begin.bracket.round.c"
1084
+ }
1085
+ },
1086
+ end: "\\)",
1087
+ endCaptures: {
1088
+ "0": {
1089
+ name: "punctuation.section.parens.end.bracket.round.c"
1090
+ }
1091
+ },
1092
+ patterns: [
1093
+ {
1094
+ include: "#function-call-innards"
1095
+ }
1096
+ ]
1097
+ },
1098
+ {
1099
+ include: "#block_innards"
1100
+ }
1101
+ ]
1102
+ },
1103
+ "function-innards": {
1104
+ patterns: [
1105
+ {
1106
+ include: "#comments"
1107
+ },
1108
+ {
1109
+ include: "#storage_types"
1110
+ },
1111
+ {
1112
+ include: "#operators"
1113
+ },
1114
+ {
1115
+ include: "#vararg_ellipses"
1116
+ },
1117
+ {
1118
+ name: "meta.function.definition.parameters.c",
1119
+ begin: "(?x)\n(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\s*\\()\n(\n(?:[A-Za-z_][A-Za-z0-9_]*+|::)++ # actual name\n|\n(?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\]))\n)\n\\s*(\\()",
1120
+ beginCaptures: {
1121
+ "1": {
1122
+ name: "entity.name.function.c"
1123
+ },
1124
+ "2": {
1125
+ name: "punctuation.section.parameters.begin.bracket.round.c"
1126
+ }
1127
+ },
1128
+ end: "\\)",
1129
+ endCaptures: {
1130
+ "0": {
1131
+ name: "punctuation.section.parameters.end.bracket.round.c"
1132
+ }
1133
+ },
1134
+ patterns: [
1135
+ {
1136
+ include: "#probably_a_parameter"
1137
+ },
1138
+ {
1139
+ include: "#function-innards"
1140
+ }
1141
+ ]
1142
+ },
1143
+ {
1144
+ begin: "\\(",
1145
+ beginCaptures: {
1146
+ "0": {
1147
+ name: "punctuation.section.parens.begin.bracket.round.c"
1148
+ }
1149
+ },
1150
+ end: "\\)",
1151
+ endCaptures: {
1152
+ "0": {
1153
+ name: "punctuation.section.parens.end.bracket.round.c"
1154
+ }
1155
+ },
1156
+ patterns: [
1157
+ {
1158
+ include: "#function-innards"
1159
+ }
1160
+ ]
1161
+ },
1162
+ {
1163
+ include: "$base"
1164
+ }
1165
+ ]
1166
+ },
1167
+ inline_comment: {
1168
+ match: "(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/))",
1169
+ captures: {
1170
+ "1": {
1171
+ name: "comment.block.c punctuation.definition.comment.begin.c"
1172
+ },
1173
+ "2": {
1174
+ name: "comment.block.c"
1175
+ },
1176
+ "3": {
1177
+ patterns: [
1178
+ {
1179
+ match: "\\*\\/",
1180
+ name: "comment.block.c punctuation.definition.comment.end.c"
1181
+ },
1182
+ {
1183
+ match: "\\*",
1184
+ name: "comment.block.c"
1185
+ }
1186
+ ]
1187
+ }
1188
+ }
1189
+ },
1190
+ line_continuation_character: {
1191
+ patterns: [
1192
+ {
1193
+ match: "(\\\\)\\n",
1194
+ captures: {
1195
+ "1": {
1196
+ name: "constant.character.escape.line-continuation.c"
1197
+ }
1198
+ }
1199
+ }
1200
+ ]
1201
+ },
1202
+ member_access: {
1203
+ match: "((?:[a-zA-Z_]\\w*|(?<=\\]|\\)))\\s*)(?:((?:\\.\\*|\\.))|((?:->\\*|->)))((?:[a-zA-Z_]\\w*\\s*(?:(?:(?:\\.\\*|\\.))|(?:(?:->\\*|->)))\\s*)*)\\s*(\\b(?!(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|atomic_uintptr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintmax_t|pthread_mutex_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_attr_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_cond_t|pthread_once_t|uint_fast64_t|uint_fast16_t|atomic_size_t|uint_least8_t|int_least64_t|int_least32_t|int_least16_t|pthread_key_t|atomic_ullong|atomic_ushort|uint_fast32_t|atomic_schar|atomic_short|uint_fast8_t|int_fast64_t|int_fast32_t|int_fast16_t|atomic_ulong|atomic_llong|int_least8_t|atomic_uchar|memory_order|suseconds_t|int_fast8_t|atomic_bool|atomic_char|atomic_uint|atomic_long|atomic_int|useconds_t|_Imaginary|blksize_t|pthread_t|in_addr_t|uintptr_t|in_port_t|uintmax_t|uintmax_t|blkcnt_t|uint16_t|unsigned|_Complex|uint32_t|intptr_t|intmax_t|intmax_t|uint64_t|u_quad_t|int64_t|int32_t|ssize_t|caddr_t|clock_t|uint8_t|u_short|swblk_t|segsz_t|int16_t|fixpt_t|daddr_t|nlink_t|qaddr_t|size_t|time_t|mode_t|signed|quad_t|ushort|u_long|u_char|double|int8_t|ino_t|uid_t|pid_t|_Bool|float|dev_t|div_t|short|gid_t|off_t|u_int|key_t|id_t|uint|long|void|char|bool|id_t|int)\\b)[a-zA-Z_]\\w*\\b(?!\\())",
1204
+ captures: {
1205
+ "1": {
1206
+ name: "variable.other.object.access.c"
1207
+ },
1208
+ "2": {
1209
+ name: "punctuation.separator.dot-access.c"
1210
+ },
1211
+ "3": {
1212
+ name: "punctuation.separator.pointer-access.c"
1213
+ },
1214
+ "4": {
1215
+ patterns: [
1216
+ {
1217
+ include: "#member_access"
1218
+ },
1219
+ {
1220
+ include: "#method_access"
1221
+ },
1222
+ {
1223
+ match: "((?:[a-zA-Z_]\\w*|(?<=\\]|\\)))\\s*)(?:((?:\\.\\*|\\.))|((?:->\\*|->)))",
1224
+ captures: {
1225
+ "1": {
1226
+ name: "variable.other.object.access.c"
1227
+ },
1228
+ "2": {
1229
+ name: "punctuation.separator.dot-access.c"
1230
+ },
1231
+ "3": {
1232
+ name: "punctuation.separator.pointer-access.c"
1233
+ }
1234
+ }
1235
+ }
1236
+ ]
1237
+ },
1238
+ "5": {
1239
+ name: "variable.other.member.c"
1240
+ }
1241
+ }
1242
+ },
1243
+ method_access: {
1244
+ contentName: "meta.function-call.member.c",
1245
+ begin: "((?:[a-zA-Z_]\\w*|(?<=\\]|\\)))\\s*)(?:((?:\\.\\*|\\.))|((?:->\\*|->)))((?:[a-zA-Z_]\\w*\\s*(?:(?:(?:\\.\\*|\\.))|(?:(?:->\\*|->)))\\s*)*)\\s*([a-zA-Z_]\\w*)(\\()",
1246
+ beginCaptures: {
1247
+ "1": {
1248
+ name: "variable.other.object.access.c"
1249
+ },
1250
+ "2": {
1251
+ name: "punctuation.separator.dot-access.c"
1252
+ },
1253
+ "3": {
1254
+ name: "punctuation.separator.pointer-access.c"
1255
+ },
1256
+ "4": {
1257
+ patterns: [
1258
+ {
1259
+ include: "#member_access"
1260
+ },
1261
+ {
1262
+ include: "#method_access"
1263
+ },
1264
+ {
1265
+ match: "((?:[a-zA-Z_]\\w*|(?<=\\]|\\)))\\s*)(?:((?:\\.\\*|\\.))|((?:->\\*|->)))",
1266
+ captures: {
1267
+ "1": {
1268
+ name: "variable.other.object.access.c"
1269
+ },
1270
+ "2": {
1271
+ name: "punctuation.separator.dot-access.c"
1272
+ },
1273
+ "3": {
1274
+ name: "punctuation.separator.pointer-access.c"
1275
+ }
1276
+ }
1277
+ }
1278
+ ]
1279
+ },
1280
+ "5": {
1281
+ name: "entity.name.function.member.c"
1282
+ },
1283
+ "6": {
1284
+ name: "punctuation.section.arguments.begin.bracket.round.function.member.c"
1285
+ }
1286
+ },
1287
+ end: "(\\))",
1288
+ endCaptures: {
1289
+ "1": {
1290
+ name: "punctuation.section.arguments.end.bracket.round.function.member.c"
1291
+ }
1292
+ },
1293
+ patterns: [
1294
+ {
1295
+ include: "#function-call-innards"
1296
+ }
1297
+ ]
1298
+ },
1299
+ numbers: {
1300
+ match: "(?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.]|')|(?<=[eEpP])[+-])*",
1301
+ captures: {
1302
+ "0": {
1303
+ patterns: [
1304
+ {
1305
+ begin: "(?=.)",
1306
+ end: "$",
1307
+ patterns: [
1308
+ {
1309
+ match: "(\\G0[xX])([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?<!')([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)))?([lLfF](?!\\w))?$",
1310
+ captures: {
1311
+ "1": {
1312
+ name: "keyword.other.unit.hexadecimal.c"
1313
+ },
1314
+ "2": {
1315
+ name: "constant.numeric.hexadecimal.c",
1316
+ patterns: [
1317
+ {
1318
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1319
+ name: "punctuation.separator.constant.numeric"
1320
+ }
1321
+ ]
1322
+ },
1323
+ "3": {
1324
+ name: "punctuation.separator.constant.numeric"
1325
+ },
1326
+ "4": {
1327
+ name: "constant.numeric.hexadecimal.c"
1328
+ },
1329
+ "5": {
1330
+ name: "constant.numeric.hexadecimal.c",
1331
+ patterns: [
1332
+ {
1333
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1334
+ name: "punctuation.separator.constant.numeric"
1335
+ }
1336
+ ]
1337
+ },
1338
+ "6": {
1339
+ name: "punctuation.separator.constant.numeric"
1340
+ },
1341
+ "8": {
1342
+ name: "keyword.other.unit.exponent.hexadecimal.c"
1343
+ },
1344
+ "9": {
1345
+ name: "keyword.operator.plus.exponent.hexadecimal.c"
1346
+ },
1347
+ "10": {
1348
+ name: "keyword.operator.minus.exponent.hexadecimal.c"
1349
+ },
1350
+ "11": {
1351
+ name: "constant.numeric.exponent.hexadecimal.c",
1352
+ patterns: [
1353
+ {
1354
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1355
+ name: "punctuation.separator.constant.numeric"
1356
+ }
1357
+ ]
1358
+ },
1359
+ "12": {
1360
+ name: "keyword.other.unit.suffix.floating-point.c"
1361
+ }
1362
+ }
1363
+ },
1364
+ {
1365
+ match: "(\\G(?=[0-9.])(?!0[xXbB]))([0-9](?:[0-9]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?<!')([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)))?([lLfF](?!\\w))?$",
1366
+ captures: {
1367
+ "2": {
1368
+ name: "constant.numeric.decimal.c",
1369
+ patterns: [
1370
+ {
1371
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1372
+ name: "punctuation.separator.constant.numeric"
1373
+ }
1374
+ ]
1375
+ },
1376
+ "3": {
1377
+ name: "punctuation.separator.constant.numeric"
1378
+ },
1379
+ "4": {
1380
+ name: "constant.numeric.decimal.point.c"
1381
+ },
1382
+ "5": {
1383
+ name: "constant.numeric.decimal.c",
1384
+ patterns: [
1385
+ {
1386
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1387
+ name: "punctuation.separator.constant.numeric"
1388
+ }
1389
+ ]
1390
+ },
1391
+ "6": {
1392
+ name: "punctuation.separator.constant.numeric"
1393
+ },
1394
+ "8": {
1395
+ name: "keyword.other.unit.exponent.decimal.c"
1396
+ },
1397
+ "9": {
1398
+ name: "keyword.operator.plus.exponent.decimal.c"
1399
+ },
1400
+ "10": {
1401
+ name: "keyword.operator.minus.exponent.decimal.c"
1402
+ },
1403
+ "11": {
1404
+ name: "constant.numeric.exponent.decimal.c",
1405
+ patterns: [
1406
+ {
1407
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1408
+ name: "punctuation.separator.constant.numeric"
1409
+ }
1410
+ ]
1411
+ },
1412
+ "12": {
1413
+ name: "keyword.other.unit.suffix.floating-point.c"
1414
+ }
1415
+ }
1416
+ },
1417
+ {
1418
+ match: "(\\G0[bB])([01](?:[01]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?!\\w))?$",
1419
+ captures: {
1420
+ "1": {
1421
+ name: "keyword.other.unit.binary.c"
1422
+ },
1423
+ "2": {
1424
+ name: "constant.numeric.binary.c",
1425
+ patterns: [
1426
+ {
1427
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1428
+ name: "punctuation.separator.constant.numeric"
1429
+ }
1430
+ ]
1431
+ },
1432
+ "3": {
1433
+ name: "punctuation.separator.constant.numeric"
1434
+ },
1435
+ "4": {
1436
+ name: "keyword.other.unit.suffix.integer.c"
1437
+ }
1438
+ }
1439
+ },
1440
+ {
1441
+ match: "(\\G0)((?:[0-7]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))+)((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?!\\w))?$",
1442
+ captures: {
1443
+ "1": {
1444
+ name: "keyword.other.unit.octal.c"
1445
+ },
1446
+ "2": {
1447
+ name: "constant.numeric.octal.c",
1448
+ patterns: [
1449
+ {
1450
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1451
+ name: "punctuation.separator.constant.numeric"
1452
+ }
1453
+ ]
1454
+ },
1455
+ "3": {
1456
+ name: "punctuation.separator.constant.numeric"
1457
+ },
1458
+ "4": {
1459
+ name: "keyword.other.unit.suffix.integer.c"
1460
+ }
1461
+ }
1462
+ },
1463
+ {
1464
+ match: "(\\G0[xX])([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?<!')([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)))?((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?!\\w))?$",
1465
+ captures: {
1466
+ "1": {
1467
+ name: "keyword.other.unit.hexadecimal.c"
1468
+ },
1469
+ "2": {
1470
+ name: "constant.numeric.hexadecimal.c",
1471
+ patterns: [
1472
+ {
1473
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1474
+ name: "punctuation.separator.constant.numeric"
1475
+ }
1476
+ ]
1477
+ },
1478
+ "3": {
1479
+ name: "punctuation.separator.constant.numeric"
1480
+ },
1481
+ "5": {
1482
+ name: "keyword.other.unit.exponent.hexadecimal.c"
1483
+ },
1484
+ "6": {
1485
+ name: "keyword.operator.plus.exponent.hexadecimal.c"
1486
+ },
1487
+ "7": {
1488
+ name: "keyword.operator.minus.exponent.hexadecimal.c"
1489
+ },
1490
+ "8": {
1491
+ name: "constant.numeric.exponent.hexadecimal.c",
1492
+ patterns: [
1493
+ {
1494
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1495
+ name: "punctuation.separator.constant.numeric"
1496
+ }
1497
+ ]
1498
+ },
1499
+ "9": {
1500
+ name: "keyword.other.unit.suffix.integer.c"
1501
+ }
1502
+ }
1503
+ },
1504
+ {
1505
+ match: "(\\G(?=[0-9.])(?!0[xXbB]))([0-9](?:[0-9]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?<!')([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)))?((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?!\\w))?$",
1506
+ captures: {
1507
+ "2": {
1508
+ name: "constant.numeric.decimal.c",
1509
+ patterns: [
1510
+ {
1511
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1512
+ name: "punctuation.separator.constant.numeric"
1513
+ }
1514
+ ]
1515
+ },
1516
+ "3": {
1517
+ name: "punctuation.separator.constant.numeric"
1518
+ },
1519
+ "5": {
1520
+ name: "keyword.other.unit.exponent.decimal.c"
1521
+ },
1522
+ "6": {
1523
+ name: "keyword.operator.plus.exponent.decimal.c"
1524
+ },
1525
+ "7": {
1526
+ name: "keyword.operator.minus.exponent.decimal.c"
1527
+ },
1528
+ "8": {
1529
+ name: "constant.numeric.exponent.decimal.c",
1530
+ patterns: [
1531
+ {
1532
+ match: "(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])",
1533
+ name: "punctuation.separator.constant.numeric"
1534
+ }
1535
+ ]
1536
+ },
1537
+ "9": {
1538
+ name: "keyword.other.unit.suffix.integer.c"
1539
+ }
1540
+ }
1541
+ },
1542
+ {
1543
+ match: "(?:(?:[0-9a-zA-Z_\\.]|')|(?<=[eEpP])[+-])+",
1544
+ name: "invalid.illegal.constant.numeric"
1545
+ }
1546
+ ]
1547
+ }
1548
+ ]
1549
+ }
1550
+ }
1551
+ },
1552
+ operators: {
1553
+ patterns: [
1554
+ {
1555
+ match: "(?<![\\w$])(sizeof)(?![\\w$])",
1556
+ name: "keyword.operator.sizeof.c"
1557
+ },
1558
+ {
1559
+ match: "--",
1560
+ name: "keyword.operator.decrement.c"
1561
+ },
1562
+ {
1563
+ match: "\\+\\+",
1564
+ name: "keyword.operator.increment.c"
1565
+ },
1566
+ {
1567
+ match: "%=|\\+=|-=|\\*=|(?<!\\()/=",
1568
+ name: "keyword.operator.assignment.compound.c"
1569
+ },
1570
+ {
1571
+ match: "&=|\\^=|<<=|>>=|\\|=",
1572
+ name: "keyword.operator.assignment.compound.bitwise.c"
1573
+ },
1574
+ {
1575
+ match: "<<|>>",
1576
+ name: "keyword.operator.bitwise.shift.c"
1577
+ },
1578
+ {
1579
+ match: "!=|<=|>=|==|<|>",
1580
+ name: "keyword.operator.comparison.c"
1581
+ },
1582
+ {
1583
+ match: "&&|!|\\|\\|",
1584
+ name: "keyword.operator.logical.c"
1585
+ },
1586
+ {
1587
+ match: "&|\\||\\^|~",
1588
+ name: "keyword.operator.c"
1589
+ },
1590
+ {
1591
+ match: "=",
1592
+ name: "keyword.operator.assignment.c"
1593
+ },
1594
+ {
1595
+ match: "%|\\*|/|-|\\+",
1596
+ name: "keyword.operator.c"
1597
+ },
1598
+ {
1599
+ begin: "(\\?)",
1600
+ beginCaptures: {
1601
+ "1": {
1602
+ name: "keyword.operator.ternary.c"
1603
+ }
1604
+ },
1605
+ end: "(:)",
1606
+ endCaptures: {
1607
+ "1": {
1608
+ name: "keyword.operator.ternary.c"
1609
+ }
1610
+ },
1611
+ patterns: [
1612
+ {
1613
+ include: "#function-call-innards"
1614
+ },
1615
+ {
1616
+ include: "$base"
1617
+ }
1618
+ ]
1619
+ }
1620
+ ]
1621
+ },
1622
+ parens: {
1623
+ name: "meta.parens.c",
1624
+ begin: "\\(",
1625
+ beginCaptures: {
1626
+ "0": {
1627
+ name: "punctuation.section.parens.begin.bracket.round.c"
1628
+ }
1629
+ },
1630
+ end: "\\)",
1631
+ endCaptures: {
1632
+ "0": {
1633
+ name: "punctuation.section.parens.end.bracket.round.c"
1634
+ }
1635
+ },
1636
+ patterns: [
1637
+ {
1638
+ include: "$base"
1639
+ }
1640
+ ]
1641
+ },
1642
+ "parens-block": {
1643
+ name: "meta.parens.block.c",
1644
+ begin: "\\(",
1645
+ beginCaptures: {
1646
+ "0": {
1647
+ name: "punctuation.section.parens.begin.bracket.round.c"
1648
+ }
1649
+ },
1650
+ end: "\\)",
1651
+ endCaptures: {
1652
+ "0": {
1653
+ name: "punctuation.section.parens.end.bracket.round.c"
1654
+ }
1655
+ },
1656
+ patterns: [
1657
+ {
1658
+ include: "#block_innards"
1659
+ },
1660
+ {
1661
+ match: "(?-mix:(?<!:):(?!:))",
1662
+ name: "punctuation.range-based.c"
1663
+ }
1664
+ ]
1665
+ },
1666
+ "pragma-mark": {
1667
+ captures: {
1668
+ "1": {
1669
+ name: "meta.preprocessor.pragma.c"
1670
+ },
1671
+ "2": {
1672
+ name: "keyword.control.directive.pragma.pragma-mark.c"
1673
+ },
1674
+ "3": {
1675
+ name: "punctuation.definition.directive.c"
1676
+ },
1677
+ "4": {
1678
+ name: "entity.name.tag.pragma-mark.c"
1679
+ }
1680
+ },
1681
+ match: "^\\s*(((#)\\s*pragma\\s+mark)\\s+(.*))",
1682
+ name: "meta.section.c"
1683
+ },
1684
+ predefined_macros: {
1685
+ patterns: [
1686
+ {
1687
+ match: "\\b(__cplusplus|__DATE__|__FILE__|__LINE__|__STDC__|__STDC_HOSTED__|__STDC_NO_COMPLEX__|__STDC_VERSION__|__STDCPP_THREADS__|__TIME__|NDEBUG|__OBJC__|__ASSEMBLER__|__ATOM__|__AVX__|__AVX2__|_CHAR_UNSIGNED|__CLR_VER|_CONTROL_FLOW_GUARD|__COUNTER__|__cplusplus_cli|__cplusplus_winrt|_CPPRTTI|_CPPUNWIND|_DEBUG|_DLL|__FUNCDNAME__|__FUNCSIG__|__FUNCTION__|_INTEGRAL_MAX_BITS|__INTELLISENSE__|_ISO_VOLATILE|_KERNEL_MODE|_M_AMD64|_M_ARM|_M_ARM_ARMV7VE|_M_ARM_FP|_M_ARM64|_M_CEE|_M_CEE_PURE|_M_CEE_SAFE|_M_FP_EXCEPT|_M_FP_FAST|_M_FP_PRECISE|_M_FP_STRICT|_M_IX86|_M_IX86_FP|_M_X64|_MANAGED|_MSC_BUILD|_MSC_EXTENSIONS|_MSC_FULL_VER|_MSC_VER|_MSVC_LANG|__MSVC_RUNTIME_CHECKS|_MT|_NATIVE_WCHAR_T_DEFINED|_OPENMP|_PREFAST|__TIMESTAMP__|_VC_NO_DEFAULTLIB|_WCHAR_T_DEFINED|_WIN32|_WIN64|_WINRT_DLL|_ATL_VER|_MFC_VER|__GFORTRAN__|__GNUC__|__GNUC_MINOR__|__GNUC_PATCHLEVEL__|__GNUG__|__STRICT_ANSI__|__BASE_FILE__|__INCLUDE_LEVEL__|__ELF__|__VERSION__|__OPTIMIZE__|__OPTIMIZE_SIZE__|__NO_INLINE__|__GNUC_STDC_INLINE__|__CHAR_UNSIGNED__|__WCHAR_UNSIGNED__|__REGISTER_PREFIX__|__REGISTER_PREFIX__|__SIZE_TYPE__|__PTRDIFF_TYPE__|__WCHAR_TYPE__|__WINT_TYPE__|__INTMAX_TYPE__|__UINTMAX_TYPE__|__SIG_ATOMIC_TYPE__|__INT8_TYPE__|__INT16_TYPE__|__INT32_TYPE__|__INT64_TYPE__|__UINT8_TYPE__|__UINT16_TYPE__|__UINT32_TYPE__|__UINT64_TYPE__|__INT_LEAST8_TYPE__|__INT_LEAST16_TYPE__|__INT_LEAST32_TYPE__|__INT_LEAST64_TYPE__|__UINT_LEAST8_TYPE__|__UINT_LEAST16_TYPE__|__UINT_LEAST32_TYPE__|__UINT_LEAST64_TYPE__|__INT_FAST8_TYPE__|__INT_FAST16_TYPE__|__INT_FAST32_TYPE__|__INT_FAST64_TYPE__|__UINT_FAST8_TYPE__|__UINT_FAST16_TYPE__|__UINT_FAST32_TYPE__|__UINT_FAST64_TYPE__|__INTPTR_TYPE__|__UINTPTR_TYPE__|__CHAR_BIT__|__SCHAR_MAX__|__WCHAR_MAX__|__SHRT_MAX__|__INT_MAX__|__LONG_MAX__|__LONG_LONG_MAX__|__WINT_MAX__|__SIZE_MAX__|__PTRDIFF_MAX__|__INTMAX_MAX__|__UINTMAX_MAX__|__SIG_ATOMIC_MAX__|__INT8_MAX__|__INT16_MAX__|__INT32_MAX__|__INT64_MAX__|__UINT8_MAX__|__UINT16_MAX__|__UINT32_MAX__|__UINT64_MAX__|__INT_LEAST8_MAX__|__INT_LEAST16_MAX__|__INT_LEAST32_MAX__|__INT_LEAST64_MAX__|__UINT_LEAST8_MAX__|__UINT_LEAST16_MAX__|__UINT_LEAST32_MAX__|__UINT_LEAST64_MAX__|__INT_FAST8_MAX__|__INT_FAST16_MAX__|__INT_FAST32_MAX__|__INT_FAST64_MAX__|__UINT_FAST8_MAX__|__UINT_FAST16_MAX__|__UINT_FAST32_MAX__|__UINT_FAST64_MAX__|__INTPTR_MAX__|__UINTPTR_MAX__|__WCHAR_MIN__|__WINT_MIN__|__SIG_ATOMIC_MIN__|__SCHAR_WIDTH__|__SHRT_WIDTH__|__INT_WIDTH__|__LONG_WIDTH__|__LONG_LONG_WIDTH__|__PTRDIFF_WIDTH__|__SIG_ATOMIC_WIDTH__|__SIZE_WIDTH__|__WCHAR_WIDTH__|__WINT_WIDTH__|__INT_LEAST8_WIDTH__|__INT_LEAST16_WIDTH__|__INT_LEAST32_WIDTH__|__INT_LEAST64_WIDTH__|__INT_FAST8_WIDTH__|__INT_FAST16_WIDTH__|__INT_FAST32_WIDTH__|__INT_FAST64_WIDTH__|__INTPTR_WIDTH__|__INTMAX_WIDTH__|__SIZEOF_INT__|__SIZEOF_LONG__|__SIZEOF_LONG_LONG__|__SIZEOF_SHORT__|__SIZEOF_POINTER__|__SIZEOF_FLOAT__|__SIZEOF_DOUBLE__|__SIZEOF_LONG_DOUBLE__|__SIZEOF_SIZE_T__|__SIZEOF_WCHAR_T__|__SIZEOF_WINT_T__|__SIZEOF_PTRDIFF_T__|__BYTE_ORDER__|__ORDER_LITTLE_ENDIAN__|__ORDER_BIG_ENDIAN__|__ORDER_PDP_ENDIAN__|__FLOAT_WORD_ORDER__|__DEPRECATED|__EXCEPTIONS|__GXX_RTTI|__USING_SJLJ_EXCEPTIONS__|__GXX_EXPERIMENTAL_CXX0X__|__GXX_WEAK__|__NEXT_RUNTIME__|__LP64__|_LP64|__SSP__|__SSP_ALL__|__SSP_STRONG__|__SSP_EXPLICIT__|__SANITIZE_ADDRESS__|__SANITIZE_THREAD__|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16|__HAVE_SPECULATION_SAFE_VALUE|__GCC_HAVE_DWARF2_CFI_ASM|__FP_FAST_FMA|__FP_FAST_FMAF|__FP_FAST_FMAL|__FP_FAST_FMAF16|__FP_FAST_FMAF32|__FP_FAST_FMAF64|__FP_FAST_FMAF128|__FP_FAST_FMAF32X|__FP_FAST_FMAF64X|__FP_FAST_FMAF128X|__GCC_IEC_559|__GCC_IEC_559_COMPLEX|__NO_MATH_ERRNO__|__has_builtin|__has_feature|__has_extension|__has_cpp_attribute|__has_c_attribute|__has_attribute|__has_declspec_attribute|__is_identifier|__has_include|__has_include_next|__has_warning|__BASE_FILE__|__FILE_NAME__|__clang__|__clang_major__|__clang_minor__|__clang_patchlevel__|__clang_version__|__fp16|_Float16)\\b",
1688
+ captures: {
1689
+ "1": {
1690
+ name: "entity.name.other.preprocessor.macro.predefined.$1.c"
1691
+ }
1692
+ }
1693
+ },
1694
+ {
1695
+ match: "\\b__([A-Z_]+)__\\b",
1696
+ name: "entity.name.other.preprocessor.macro.predefined.probably.$1.c"
1697
+ }
1698
+ ]
1699
+ },
1700
+ "preprocessor-rule-conditional": {
1701
+ patterns: [
1702
+ {
1703
+ begin: "^\\s*((#)\\s*if(?:n?def)?\\b)",
1704
+ beginCaptures: {
1705
+ "0": {
1706
+ name: "meta.preprocessor.c"
1707
+ },
1708
+ "1": {
1709
+ name: "keyword.control.directive.conditional.c"
1710
+ },
1711
+ "2": {
1712
+ name: "punctuation.definition.directive.c"
1713
+ }
1714
+ },
1715
+ end: "^\\s*((#)\\s*endif\\b)",
1716
+ endCaptures: {
1717
+ "0": {
1718
+ name: "meta.preprocessor.c"
1719
+ },
1720
+ "1": {
1721
+ name: "keyword.control.directive.conditional.c"
1722
+ },
1723
+ "2": {
1724
+ name: "punctuation.definition.directive.c"
1725
+ }
1726
+ },
1727
+ patterns: [
1728
+ {
1729
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
1730
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
1731
+ name: "meta.preprocessor.c",
1732
+ patterns: [
1733
+ {
1734
+ include: "#preprocessor-rule-conditional-line"
1735
+ }
1736
+ ]
1737
+ },
1738
+ {
1739
+ include: "#preprocessor-rule-enabled-elif"
1740
+ },
1741
+ {
1742
+ include: "#preprocessor-rule-enabled-else"
1743
+ },
1744
+ {
1745
+ include: "#preprocessor-rule-disabled-elif"
1746
+ },
1747
+ {
1748
+ begin: "^\\s*((#)\\s*elif\\b)",
1749
+ beginCaptures: {
1750
+ "1": {
1751
+ name: "keyword.control.directive.conditional.c"
1752
+ },
1753
+ "2": {
1754
+ name: "punctuation.definition.directive.c"
1755
+ }
1756
+ },
1757
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
1758
+ name: "meta.preprocessor.c",
1759
+ patterns: [
1760
+ {
1761
+ include: "#preprocessor-rule-conditional-line"
1762
+ }
1763
+ ]
1764
+ },
1765
+ {
1766
+ include: "$base"
1767
+ }
1768
+ ]
1769
+ },
1770
+ {
1771
+ match: "^\\s*#\\s*(else|elif|endif)\\b",
1772
+ captures: {
1773
+ "0": {
1774
+ name: "invalid.illegal.stray-$1.c"
1775
+ }
1776
+ }
1777
+ }
1778
+ ]
1779
+ },
1780
+ "preprocessor-rule-conditional-block": {
1781
+ patterns: [
1782
+ {
1783
+ begin: "^\\s*((#)\\s*if(?:n?def)?\\b)",
1784
+ beginCaptures: {
1785
+ "0": {
1786
+ name: "meta.preprocessor.c"
1787
+ },
1788
+ "1": {
1789
+ name: "keyword.control.directive.conditional.c"
1790
+ },
1791
+ "2": {
1792
+ name: "punctuation.definition.directive.c"
1793
+ }
1794
+ },
1795
+ end: "^\\s*((#)\\s*endif\\b)",
1796
+ endCaptures: {
1797
+ "0": {
1798
+ name: "meta.preprocessor.c"
1799
+ },
1800
+ "1": {
1801
+ name: "keyword.control.directive.conditional.c"
1802
+ },
1803
+ "2": {
1804
+ name: "punctuation.definition.directive.c"
1805
+ }
1806
+ },
1807
+ patterns: [
1808
+ {
1809
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
1810
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
1811
+ name: "meta.preprocessor.c",
1812
+ patterns: [
1813
+ {
1814
+ include: "#preprocessor-rule-conditional-line"
1815
+ }
1816
+ ]
1817
+ },
1818
+ {
1819
+ include: "#preprocessor-rule-enabled-elif-block"
1820
+ },
1821
+ {
1822
+ include: "#preprocessor-rule-enabled-else-block"
1823
+ },
1824
+ {
1825
+ include: "#preprocessor-rule-disabled-elif"
1826
+ },
1827
+ {
1828
+ begin: "^\\s*((#)\\s*elif\\b)",
1829
+ beginCaptures: {
1830
+ "1": {
1831
+ name: "keyword.control.directive.conditional.c"
1832
+ },
1833
+ "2": {
1834
+ name: "punctuation.definition.directive.c"
1835
+ }
1836
+ },
1837
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
1838
+ name: "meta.preprocessor.c",
1839
+ patterns: [
1840
+ {
1841
+ include: "#preprocessor-rule-conditional-line"
1842
+ }
1843
+ ]
1844
+ },
1845
+ {
1846
+ include: "#block_innards"
1847
+ }
1848
+ ]
1849
+ },
1850
+ {
1851
+ match: "^\\s*#\\s*(else|elif|endif)\\b",
1852
+ captures: {
1853
+ "0": {
1854
+ name: "invalid.illegal.stray-$1.c"
1855
+ }
1856
+ }
1857
+ }
1858
+ ]
1859
+ },
1860
+ "preprocessor-rule-conditional-line": {
1861
+ patterns: [
1862
+ {
1863
+ match: "(?:\\bdefined\\b\\s*$)|(?:\\bdefined\\b(?=\\s*\\(*\\s*(?:(?!defined\\b)[a-zA-Z_$][\\w$]*\\b)\\s*\\)*\\s*(?:\\n|//|/\\*|\\?|\\:|&&|\\|\\||\\\\\\s*\\n)))",
1864
+ name: "keyword.control.directive.conditional.c"
1865
+ },
1866
+ {
1867
+ match: "\\bdefined\\b",
1868
+ name: "invalid.illegal.macro-name.c"
1869
+ },
1870
+ {
1871
+ include: "#comments"
1872
+ },
1873
+ {
1874
+ include: "#strings"
1875
+ },
1876
+ {
1877
+ include: "#numbers"
1878
+ },
1879
+ {
1880
+ begin: "\\?",
1881
+ beginCaptures: {
1882
+ "0": {
1883
+ name: "keyword.operator.ternary.c"
1884
+ }
1885
+ },
1886
+ end: ":",
1887
+ endCaptures: {
1888
+ "0": {
1889
+ name: "keyword.operator.ternary.c"
1890
+ }
1891
+ },
1892
+ patterns: [
1893
+ {
1894
+ include: "#preprocessor-rule-conditional-line"
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ include: "#operators"
1900
+ },
1901
+ {
1902
+ match: "\\b(NULL|true|false|TRUE|FALSE)\\b",
1903
+ name: "constant.language.c"
1904
+ },
1905
+ {
1906
+ match: "[a-zA-Z_$][\\w$]*",
1907
+ name: "entity.name.function.preprocessor.c"
1908
+ },
1909
+ {
1910
+ include: "#line_continuation_character"
1911
+ },
1912
+ {
1913
+ begin: "\\(",
1914
+ beginCaptures: {
1915
+ "0": {
1916
+ name: "punctuation.section.parens.begin.bracket.round.c"
1917
+ }
1918
+ },
1919
+ end: "\\)|(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
1920
+ endCaptures: {
1921
+ "0": {
1922
+ name: "punctuation.section.parens.end.bracket.round.c"
1923
+ }
1924
+ },
1925
+ patterns: [
1926
+ {
1927
+ include: "#preprocessor-rule-conditional-line"
1928
+ }
1929
+ ]
1930
+ }
1931
+ ]
1932
+ },
1933
+ "preprocessor-rule-define-line-blocks": {
1934
+ patterns: [
1935
+ {
1936
+ begin: "{",
1937
+ beginCaptures: {
1938
+ "0": {
1939
+ name: "punctuation.section.block.begin.bracket.curly.c"
1940
+ }
1941
+ },
1942
+ end: "}|(?=\\s*#\\s*(?:elif|else|endif)\\b)|(?<!\\\\)(?=\\s*\\n)",
1943
+ endCaptures: {
1944
+ "0": {
1945
+ name: "punctuation.section.block.end.bracket.curly.c"
1946
+ }
1947
+ },
1948
+ patterns: [
1949
+ {
1950
+ include: "#preprocessor-rule-define-line-blocks"
1951
+ },
1952
+ {
1953
+ include: "#preprocessor-rule-define-line-contents"
1954
+ }
1955
+ ]
1956
+ },
1957
+ {
1958
+ include: "#preprocessor-rule-define-line-contents"
1959
+ }
1960
+ ]
1961
+ },
1962
+ "preprocessor-rule-define-line-contents": {
1963
+ patterns: [
1964
+ {
1965
+ include: "#vararg_ellipses"
1966
+ },
1967
+ {
1968
+ begin: "{",
1969
+ beginCaptures: {
1970
+ "0": {
1971
+ name: "punctuation.section.block.begin.bracket.curly.c"
1972
+ }
1973
+ },
1974
+ end: "}|(?=\\s*#\\s*(?:elif|else|endif)\\b)|(?<!\\\\)(?=\\s*\\n)",
1975
+ endCaptures: {
1976
+ "0": {
1977
+ name: "punctuation.section.block.end.bracket.curly.c"
1978
+ }
1979
+ },
1980
+ name: "meta.block.c",
1981
+ patterns: [
1982
+ {
1983
+ include: "#preprocessor-rule-define-line-blocks"
1984
+ }
1985
+ ]
1986
+ },
1987
+ {
1988
+ match: "\\(",
1989
+ name: "punctuation.section.parens.begin.bracket.round.c"
1990
+ },
1991
+ {
1992
+ match: "\\)",
1993
+ name: "punctuation.section.parens.end.bracket.round.c"
1994
+ },
1995
+ {
1996
+ begin: "(?x)\n(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\s*\\()\n(?=\n (?:[A-Za-z_][A-Za-z0-9_]*+|::)++\\s*\\( # actual name\n |\n (?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\]))\\s*\\(\n)",
1997
+ end: "(?<=\\))(?!\\w)|(?<!\\\\)(?=\\s*\\n)",
1998
+ name: "meta.function.c",
1999
+ patterns: [
2000
+ {
2001
+ include: "#preprocessor-rule-define-line-functions"
2002
+ }
2003
+ ]
2004
+ },
2005
+ {
2006
+ begin: "\"",
2007
+ beginCaptures: {
2008
+ "0": {
2009
+ name: "punctuation.definition.string.begin.c"
2010
+ }
2011
+ },
2012
+ end: "\"|(?<!\\\\)(?=\\s*\\n)",
2013
+ endCaptures: {
2014
+ "0": {
2015
+ name: "punctuation.definition.string.end.c"
2016
+ }
2017
+ },
2018
+ name: "string.quoted.double.c",
2019
+ patterns: [
2020
+ {
2021
+ include: "#string_escaped_char"
2022
+ },
2023
+ {
2024
+ include: "#string_placeholder"
2025
+ },
2026
+ {
2027
+ include: "#line_continuation_character"
2028
+ }
2029
+ ]
2030
+ },
2031
+ {
2032
+ begin: "'",
2033
+ beginCaptures: {
2034
+ "0": {
2035
+ name: "punctuation.definition.string.begin.c"
2036
+ }
2037
+ },
2038
+ end: "'|(?<!\\\\)(?=\\s*\\n)",
2039
+ endCaptures: {
2040
+ "0": {
2041
+ name: "punctuation.definition.string.end.c"
2042
+ }
2043
+ },
2044
+ name: "string.quoted.single.c",
2045
+ patterns: [
2046
+ {
2047
+ include: "#string_escaped_char"
2048
+ },
2049
+ {
2050
+ include: "#line_continuation_character"
2051
+ }
2052
+ ]
2053
+ },
2054
+ {
2055
+ include: "#method_access"
2056
+ },
2057
+ {
2058
+ include: "#member_access"
2059
+ },
2060
+ {
2061
+ include: "$base"
2062
+ }
2063
+ ]
2064
+ },
2065
+ "preprocessor-rule-define-line-functions": {
2066
+ patterns: [
2067
+ {
2068
+ include: "#comments"
2069
+ },
2070
+ {
2071
+ include: "#storage_types"
2072
+ },
2073
+ {
2074
+ include: "#vararg_ellipses"
2075
+ },
2076
+ {
2077
+ include: "#method_access"
2078
+ },
2079
+ {
2080
+ include: "#member_access"
2081
+ },
2082
+ {
2083
+ include: "#operators"
2084
+ },
2085
+ {
2086
+ begin: "(?x)\n(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\s*\\()\n(\n(?:[A-Za-z_][A-Za-z0-9_]*+|::)++ # actual name\n|\n(?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\]))\n)\n\\s*(\\()",
2087
+ beginCaptures: {
2088
+ "1": {
2089
+ name: "entity.name.function.c"
2090
+ },
2091
+ "2": {
2092
+ name: "punctuation.section.arguments.begin.bracket.round.c"
2093
+ }
2094
+ },
2095
+ end: "(\\))|(?<!\\\\)(?=\\s*\\n)",
2096
+ endCaptures: {
2097
+ "1": {
2098
+ name: "punctuation.section.arguments.end.bracket.round.c"
2099
+ }
2100
+ },
2101
+ patterns: [
2102
+ {
2103
+ include: "#preprocessor-rule-define-line-functions"
2104
+ }
2105
+ ]
2106
+ },
2107
+ {
2108
+ begin: "\\(",
2109
+ beginCaptures: {
2110
+ "0": {
2111
+ name: "punctuation.section.parens.begin.bracket.round.c"
2112
+ }
2113
+ },
2114
+ end: "(\\))|(?<!\\\\)(?=\\s*\\n)",
2115
+ endCaptures: {
2116
+ "1": {
2117
+ name: "punctuation.section.parens.end.bracket.round.c"
2118
+ }
2119
+ },
2120
+ patterns: [
2121
+ {
2122
+ include: "#preprocessor-rule-define-line-functions"
2123
+ }
2124
+ ]
2125
+ },
2126
+ {
2127
+ include: "#preprocessor-rule-define-line-contents"
2128
+ }
2129
+ ]
2130
+ },
2131
+ "preprocessor-rule-disabled": {
2132
+ patterns: [
2133
+ {
2134
+ begin: "^\\s*((#)\\s*if\\b)(?=\\s*\\(*\\b0+\\b\\)*\\s*(?:$|//|/\\*))",
2135
+ beginCaptures: {
2136
+ "0": {
2137
+ name: "meta.preprocessor.c"
2138
+ },
2139
+ "1": {
2140
+ name: "keyword.control.directive.conditional.c"
2141
+ },
2142
+ "2": {
2143
+ name: "punctuation.definition.directive.c"
2144
+ }
2145
+ },
2146
+ end: "^\\s*((#)\\s*endif\\b)",
2147
+ endCaptures: {
2148
+ "0": {
2149
+ name: "meta.preprocessor.c"
2150
+ },
2151
+ "1": {
2152
+ name: "keyword.control.directive.conditional.c"
2153
+ },
2154
+ "2": {
2155
+ name: "punctuation.definition.directive.c"
2156
+ }
2157
+ },
2158
+ patterns: [
2159
+ {
2160
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2161
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?=\\n)",
2162
+ name: "meta.preprocessor.c",
2163
+ patterns: [
2164
+ {
2165
+ include: "#preprocessor-rule-conditional-line"
2166
+ }
2167
+ ]
2168
+ },
2169
+ {
2170
+ include: "#comments"
2171
+ },
2172
+ {
2173
+ include: "#preprocessor-rule-enabled-elif"
2174
+ },
2175
+ {
2176
+ include: "#preprocessor-rule-enabled-else"
2177
+ },
2178
+ {
2179
+ include: "#preprocessor-rule-disabled-elif"
2180
+ },
2181
+ {
2182
+ begin: "^\\s*((#)\\s*elif\\b)",
2183
+ beginCaptures: {
2184
+ "0": {
2185
+ name: "meta.preprocessor.c"
2186
+ },
2187
+ "1": {
2188
+ name: "keyword.control.directive.conditional.c"
2189
+ },
2190
+ "2": {
2191
+ name: "punctuation.definition.directive.c"
2192
+ }
2193
+ },
2194
+ end: "(?=^\\s*((#)\\s*(?:elif|else|endif)\\b))",
2195
+ patterns: [
2196
+ {
2197
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2198
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
2199
+ name: "meta.preprocessor.c",
2200
+ patterns: [
2201
+ {
2202
+ include: "#preprocessor-rule-conditional-line"
2203
+ }
2204
+ ]
2205
+ },
2206
+ {
2207
+ include: "$base"
2208
+ }
2209
+ ]
2210
+ },
2211
+ {
2212
+ begin: "\\n",
2213
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2214
+ contentName: "comment.block.preprocessor.if-branch.c",
2215
+ patterns: [
2216
+ {
2217
+ include: "#disabled"
2218
+ },
2219
+ {
2220
+ include: "#pragma-mark"
2221
+ }
2222
+ ]
2223
+ }
2224
+ ]
2225
+ }
2226
+ ]
2227
+ },
2228
+ "preprocessor-rule-disabled-block": {
2229
+ patterns: [
2230
+ {
2231
+ begin: "^\\s*((#)\\s*if\\b)(?=\\s*\\(*\\b0+\\b\\)*\\s*(?:$|//|/\\*))",
2232
+ beginCaptures: {
2233
+ "0": {
2234
+ name: "meta.preprocessor.c"
2235
+ },
2236
+ "1": {
2237
+ name: "keyword.control.directive.conditional.c"
2238
+ },
2239
+ "2": {
2240
+ name: "punctuation.definition.directive.c"
2241
+ }
2242
+ },
2243
+ end: "^\\s*((#)\\s*endif\\b)",
2244
+ endCaptures: {
2245
+ "0": {
2246
+ name: "meta.preprocessor.c"
2247
+ },
2248
+ "1": {
2249
+ name: "keyword.control.directive.conditional.c"
2250
+ },
2251
+ "2": {
2252
+ name: "punctuation.definition.directive.c"
2253
+ }
2254
+ },
2255
+ patterns: [
2256
+ {
2257
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2258
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?=\\n)",
2259
+ name: "meta.preprocessor.c",
2260
+ patterns: [
2261
+ {
2262
+ include: "#preprocessor-rule-conditional-line"
2263
+ }
2264
+ ]
2265
+ },
2266
+ {
2267
+ include: "#comments"
2268
+ },
2269
+ {
2270
+ include: "#preprocessor-rule-enabled-elif-block"
2271
+ },
2272
+ {
2273
+ include: "#preprocessor-rule-enabled-else-block"
2274
+ },
2275
+ {
2276
+ include: "#preprocessor-rule-disabled-elif"
2277
+ },
2278
+ {
2279
+ begin: "^\\s*((#)\\s*elif\\b)",
2280
+ beginCaptures: {
2281
+ "0": {
2282
+ name: "meta.preprocessor.c"
2283
+ },
2284
+ "1": {
2285
+ name: "keyword.control.directive.conditional.c"
2286
+ },
2287
+ "2": {
2288
+ name: "punctuation.definition.directive.c"
2289
+ }
2290
+ },
2291
+ end: "(?=^\\s*((#)\\s*(?:elif|else|endif)\\b))",
2292
+ patterns: [
2293
+ {
2294
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2295
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
2296
+ name: "meta.preprocessor.c",
2297
+ patterns: [
2298
+ {
2299
+ include: "#preprocessor-rule-conditional-line"
2300
+ }
2301
+ ]
2302
+ },
2303
+ {
2304
+ include: "#block_innards"
2305
+ }
2306
+ ]
2307
+ },
2308
+ {
2309
+ begin: "\\n",
2310
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2311
+ contentName: "comment.block.preprocessor.if-branch.in-block.c",
2312
+ patterns: [
2313
+ {
2314
+ include: "#disabled"
2315
+ },
2316
+ {
2317
+ include: "#pragma-mark"
2318
+ }
2319
+ ]
2320
+ }
2321
+ ]
2322
+ }
2323
+ ]
2324
+ },
2325
+ "preprocessor-rule-disabled-elif": {
2326
+ begin: "^\\s*((#)\\s*elif\\b)(?=\\s*\\(*\\b0+\\b\\)*\\s*(?:$|//|/\\*))",
2327
+ beginCaptures: {
2328
+ "0": {
2329
+ name: "meta.preprocessor.c"
2330
+ },
2331
+ "1": {
2332
+ name: "keyword.control.directive.conditional.c"
2333
+ },
2334
+ "2": {
2335
+ name: "punctuation.definition.directive.c"
2336
+ }
2337
+ },
2338
+ end: "(?=^\\s*((#)\\s*(?:elif|else|endif)\\b))",
2339
+ patterns: [
2340
+ {
2341
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2342
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
2343
+ name: "meta.preprocessor.c",
2344
+ patterns: [
2345
+ {
2346
+ include: "#preprocessor-rule-conditional-line"
2347
+ }
2348
+ ]
2349
+ },
2350
+ {
2351
+ include: "#comments"
2352
+ },
2353
+ {
2354
+ begin: "\\n",
2355
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2356
+ contentName: "comment.block.preprocessor.elif-branch.c",
2357
+ patterns: [
2358
+ {
2359
+ include: "#disabled"
2360
+ },
2361
+ {
2362
+ include: "#pragma-mark"
2363
+ }
2364
+ ]
2365
+ }
2366
+ ]
2367
+ },
2368
+ "preprocessor-rule-enabled": {
2369
+ patterns: [
2370
+ {
2371
+ begin: "^\\s*((#)\\s*if\\b)(?=\\s*\\(*\\b0*1\\b\\)*\\s*(?:$|//|/\\*))",
2372
+ beginCaptures: {
2373
+ "0": {
2374
+ name: "meta.preprocessor.c"
2375
+ },
2376
+ "1": {
2377
+ name: "keyword.control.directive.conditional.c"
2378
+ },
2379
+ "2": {
2380
+ name: "punctuation.definition.directive.c"
2381
+ },
2382
+ "3": {
2383
+ name: "constant.numeric.preprocessor.c"
2384
+ }
2385
+ },
2386
+ end: "^\\s*((#)\\s*endif\\b)",
2387
+ endCaptures: {
2388
+ "0": {
2389
+ name: "meta.preprocessor.c"
2390
+ },
2391
+ "1": {
2392
+ name: "keyword.control.directive.conditional.c"
2393
+ },
2394
+ "2": {
2395
+ name: "punctuation.definition.directive.c"
2396
+ }
2397
+ },
2398
+ patterns: [
2399
+ {
2400
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2401
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?=\\n)",
2402
+ name: "meta.preprocessor.c",
2403
+ patterns: [
2404
+ {
2405
+ include: "#preprocessor-rule-conditional-line"
2406
+ }
2407
+ ]
2408
+ },
2409
+ {
2410
+ include: "#comments"
2411
+ },
2412
+ {
2413
+ begin: "^\\s*((#)\\s*else\\b)",
2414
+ beginCaptures: {
2415
+ "0": {
2416
+ name: "meta.preprocessor.c"
2417
+ },
2418
+ "1": {
2419
+ name: "keyword.control.directive.conditional.c"
2420
+ },
2421
+ "2": {
2422
+ name: "punctuation.definition.directive.c"
2423
+ }
2424
+ },
2425
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2426
+ contentName: "comment.block.preprocessor.else-branch.c",
2427
+ patterns: [
2428
+ {
2429
+ include: "#disabled"
2430
+ },
2431
+ {
2432
+ include: "#pragma-mark"
2433
+ }
2434
+ ]
2435
+ },
2436
+ {
2437
+ begin: "^\\s*((#)\\s*elif\\b)",
2438
+ beginCaptures: {
2439
+ "0": {
2440
+ name: "meta.preprocessor.c"
2441
+ },
2442
+ "1": {
2443
+ name: "keyword.control.directive.conditional.c"
2444
+ },
2445
+ "2": {
2446
+ name: "punctuation.definition.directive.c"
2447
+ }
2448
+ },
2449
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2450
+ contentName: "comment.block.preprocessor.if-branch.c",
2451
+ patterns: [
2452
+ {
2453
+ include: "#disabled"
2454
+ },
2455
+ {
2456
+ include: "#pragma-mark"
2457
+ }
2458
+ ]
2459
+ },
2460
+ {
2461
+ begin: "\\n",
2462
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2463
+ patterns: [
2464
+ {
2465
+ include: "$base"
2466
+ }
2467
+ ]
2468
+ }
2469
+ ]
2470
+ }
2471
+ ]
2472
+ },
2473
+ "preprocessor-rule-enabled-block": {
2474
+ patterns: [
2475
+ {
2476
+ begin: "^\\s*((#)\\s*if\\b)(?=\\s*\\(*\\b0*1\\b\\)*\\s*(?:$|//|/\\*))",
2477
+ beginCaptures: {
2478
+ "0": {
2479
+ name: "meta.preprocessor.c"
2480
+ },
2481
+ "1": {
2482
+ name: "keyword.control.directive.conditional.c"
2483
+ },
2484
+ "2": {
2485
+ name: "punctuation.definition.directive.c"
2486
+ }
2487
+ },
2488
+ end: "^\\s*((#)\\s*endif\\b)",
2489
+ endCaptures: {
2490
+ "0": {
2491
+ name: "meta.preprocessor.c"
2492
+ },
2493
+ "1": {
2494
+ name: "keyword.control.directive.conditional.c"
2495
+ },
2496
+ "2": {
2497
+ name: "punctuation.definition.directive.c"
2498
+ }
2499
+ },
2500
+ patterns: [
2501
+ {
2502
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2503
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?=\\n)",
2504
+ name: "meta.preprocessor.c",
2505
+ patterns: [
2506
+ {
2507
+ include: "#preprocessor-rule-conditional-line"
2508
+ }
2509
+ ]
2510
+ },
2511
+ {
2512
+ include: "#comments"
2513
+ },
2514
+ {
2515
+ begin: "^\\s*((#)\\s*else\\b)",
2516
+ beginCaptures: {
2517
+ "0": {
2518
+ name: "meta.preprocessor.c"
2519
+ },
2520
+ "1": {
2521
+ name: "keyword.control.directive.conditional.c"
2522
+ },
2523
+ "2": {
2524
+ name: "punctuation.definition.directive.c"
2525
+ }
2526
+ },
2527
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2528
+ contentName: "comment.block.preprocessor.else-branch.in-block.c",
2529
+ patterns: [
2530
+ {
2531
+ include: "#disabled"
2532
+ },
2533
+ {
2534
+ include: "#pragma-mark"
2535
+ }
2536
+ ]
2537
+ },
2538
+ {
2539
+ begin: "^\\s*((#)\\s*elif\\b)",
2540
+ beginCaptures: {
2541
+ "0": {
2542
+ name: "meta.preprocessor.c"
2543
+ },
2544
+ "1": {
2545
+ name: "keyword.control.directive.conditional.c"
2546
+ },
2547
+ "2": {
2548
+ name: "punctuation.definition.directive.c"
2549
+ }
2550
+ },
2551
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2552
+ contentName: "comment.block.preprocessor.if-branch.in-block.c",
2553
+ patterns: [
2554
+ {
2555
+ include: "#disabled"
2556
+ },
2557
+ {
2558
+ include: "#pragma-mark"
2559
+ }
2560
+ ]
2561
+ },
2562
+ {
2563
+ begin: "\\n",
2564
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2565
+ patterns: [
2566
+ {
2567
+ include: "#block_innards"
2568
+ }
2569
+ ]
2570
+ }
2571
+ ]
2572
+ }
2573
+ ]
2574
+ },
2575
+ "preprocessor-rule-enabled-elif": {
2576
+ begin: "^\\s*((#)\\s*elif\\b)(?=\\s*\\(*\\b0*1\\b\\)*\\s*(?:$|//|/\\*))",
2577
+ beginCaptures: {
2578
+ "0": {
2579
+ name: "meta.preprocessor.c"
2580
+ },
2581
+ "1": {
2582
+ name: "keyword.control.directive.conditional.c"
2583
+ },
2584
+ "2": {
2585
+ name: "punctuation.definition.directive.c"
2586
+ }
2587
+ },
2588
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2589
+ patterns: [
2590
+ {
2591
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2592
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
2593
+ name: "meta.preprocessor.c",
2594
+ patterns: [
2595
+ {
2596
+ include: "#preprocessor-rule-conditional-line"
2597
+ }
2598
+ ]
2599
+ },
2600
+ {
2601
+ include: "#comments"
2602
+ },
2603
+ {
2604
+ begin: "\\n",
2605
+ end: "(?=^\\s*((#)\\s*(?:endif)\\b))",
2606
+ patterns: [
2607
+ {
2608
+ begin: "^\\s*((#)\\s*(else)\\b)",
2609
+ beginCaptures: {
2610
+ "0": {
2611
+ name: "meta.preprocessor.c"
2612
+ },
2613
+ "1": {
2614
+ name: "keyword.control.directive.conditional.c"
2615
+ },
2616
+ "2": {
2617
+ name: "punctuation.definition.directive.c"
2618
+ }
2619
+ },
2620
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2621
+ contentName: "comment.block.preprocessor.elif-branch.c",
2622
+ patterns: [
2623
+ {
2624
+ include: "#disabled"
2625
+ },
2626
+ {
2627
+ include: "#pragma-mark"
2628
+ }
2629
+ ]
2630
+ },
2631
+ {
2632
+ begin: "^\\s*((#)\\s*(elif)\\b)",
2633
+ beginCaptures: {
2634
+ "0": {
2635
+ name: "meta.preprocessor.c"
2636
+ },
2637
+ "1": {
2638
+ name: "keyword.control.directive.conditional.c"
2639
+ },
2640
+ "2": {
2641
+ name: "punctuation.definition.directive.c"
2642
+ }
2643
+ },
2644
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2645
+ contentName: "comment.block.preprocessor.elif-branch.c",
2646
+ patterns: [
2647
+ {
2648
+ include: "#disabled"
2649
+ },
2650
+ {
2651
+ include: "#pragma-mark"
2652
+ }
2653
+ ]
2654
+ },
2655
+ {
2656
+ include: "$base"
2657
+ }
2658
+ ]
2659
+ }
2660
+ ]
2661
+ },
2662
+ "preprocessor-rule-enabled-elif-block": {
2663
+ begin: "^\\s*((#)\\s*elif\\b)(?=\\s*\\(*\\b0*1\\b\\)*\\s*(?:$|//|/\\*))",
2664
+ beginCaptures: {
2665
+ "0": {
2666
+ name: "meta.preprocessor.c"
2667
+ },
2668
+ "1": {
2669
+ name: "keyword.control.directive.conditional.c"
2670
+ },
2671
+ "2": {
2672
+ name: "punctuation.definition.directive.c"
2673
+ }
2674
+ },
2675
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2676
+ patterns: [
2677
+ {
2678
+ begin: "\\G(?=.)(?!//|/\\*(?!.*\\\\\\s*\\n))",
2679
+ end: "(?=//)|(?=/\\*(?!.*\\\\\\s*\\n))|(?<!\\\\)(?=\\n)",
2680
+ name: "meta.preprocessor.c",
2681
+ patterns: [
2682
+ {
2683
+ include: "#preprocessor-rule-conditional-line"
2684
+ }
2685
+ ]
2686
+ },
2687
+ {
2688
+ include: "#comments"
2689
+ },
2690
+ {
2691
+ begin: "\\n",
2692
+ end: "(?=^\\s*((#)\\s*(?:endif)\\b))",
2693
+ patterns: [
2694
+ {
2695
+ begin: "^\\s*((#)\\s*(else)\\b)",
2696
+ beginCaptures: {
2697
+ "0": {
2698
+ name: "meta.preprocessor.c"
2699
+ },
2700
+ "1": {
2701
+ name: "keyword.control.directive.conditional.c"
2702
+ },
2703
+ "2": {
2704
+ name: "punctuation.definition.directive.c"
2705
+ }
2706
+ },
2707
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2708
+ contentName: "comment.block.preprocessor.elif-branch.in-block.c",
2709
+ patterns: [
2710
+ {
2711
+ include: "#disabled"
2712
+ },
2713
+ {
2714
+ include: "#pragma-mark"
2715
+ }
2716
+ ]
2717
+ },
2718
+ {
2719
+ begin: "^\\s*((#)\\s*(elif)\\b)",
2720
+ beginCaptures: {
2721
+ "0": {
2722
+ name: "meta.preprocessor.c"
2723
+ },
2724
+ "1": {
2725
+ name: "keyword.control.directive.conditional.c"
2726
+ },
2727
+ "2": {
2728
+ name: "punctuation.definition.directive.c"
2729
+ }
2730
+ },
2731
+ end: "(?=^\\s*((#)\\s*(?:else|elif|endif)\\b))",
2732
+ contentName: "comment.block.preprocessor.elif-branch.c",
2733
+ patterns: [
2734
+ {
2735
+ include: "#disabled"
2736
+ },
2737
+ {
2738
+ include: "#pragma-mark"
2739
+ }
2740
+ ]
2741
+ },
2742
+ {
2743
+ include: "#block_innards"
2744
+ }
2745
+ ]
2746
+ }
2747
+ ]
2748
+ },
2749
+ "preprocessor-rule-enabled-else": {
2750
+ begin: "^\\s*((#)\\s*else\\b)",
2751
+ beginCaptures: {
2752
+ "0": {
2753
+ name: "meta.preprocessor.c"
2754
+ },
2755
+ "1": {
2756
+ name: "keyword.control.directive.conditional.c"
2757
+ },
2758
+ "2": {
2759
+ name: "punctuation.definition.directive.c"
2760
+ }
2761
+ },
2762
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2763
+ patterns: [
2764
+ {
2765
+ include: "$base"
2766
+ }
2767
+ ]
2768
+ },
2769
+ "preprocessor-rule-enabled-else-block": {
2770
+ begin: "^\\s*((#)\\s*else\\b)",
2771
+ beginCaptures: {
2772
+ "0": {
2773
+ name: "meta.preprocessor.c"
2774
+ },
2775
+ "1": {
2776
+ name: "keyword.control.directive.conditional.c"
2777
+ },
2778
+ "2": {
2779
+ name: "punctuation.definition.directive.c"
2780
+ }
2781
+ },
2782
+ end: "(?=^\\s*((#)\\s*endif\\b))",
2783
+ patterns: [
2784
+ {
2785
+ include: "#block_innards"
2786
+ }
2787
+ ]
2788
+ },
2789
+ probably_a_parameter: {
2790
+ match: "(?<=(?:[a-zA-Z_0-9] |[&*>\\]\\)]))\\s*([a-zA-Z_]\\w*)\\s*(?=(?:\\[\\]\\s*)?(?:,|\\)))",
2791
+ captures: {
2792
+ "1": {
2793
+ name: "variable.parameter.probably.c"
2794
+ }
2795
+ }
2796
+ },
2797
+ static_assert: {
2798
+ begin: "((?>(?:(?:(?>(?<!\\s)\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))((?<!\\w)static_assert|_Static_assert(?!\\w))((?>(?:(?:(?>(?<!\\s)\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))(\\()",
2799
+ beginCaptures: {
2800
+ "1": {
2801
+ patterns: [
2802
+ {
2803
+ include: "#inline_comment"
2804
+ }
2805
+ ]
2806
+ },
2807
+ "2": {
2808
+ name: "comment.block.c punctuation.definition.comment.begin.c"
2809
+ },
2810
+ "3": {
2811
+ name: "comment.block.c"
2812
+ },
2813
+ "4": {
2814
+ patterns: [
2815
+ {
2816
+ match: "\\*\\/",
2817
+ name: "comment.block.c punctuation.definition.comment.end.c"
2818
+ },
2819
+ {
2820
+ match: "\\*",
2821
+ name: "comment.block.c"
2822
+ }
2823
+ ]
2824
+ },
2825
+ "5": {
2826
+ name: "keyword.other.static_assert.c"
2827
+ },
2828
+ "6": {
2829
+ patterns: [
2830
+ {
2831
+ include: "#inline_comment"
2832
+ }
2833
+ ]
2834
+ },
2835
+ "7": {
2836
+ name: "comment.block.c punctuation.definition.comment.begin.c"
2837
+ },
2838
+ "8": {
2839
+ name: "comment.block.c"
2840
+ },
2841
+ "9": {
2842
+ patterns: [
2843
+ {
2844
+ match: "\\*\\/",
2845
+ name: "comment.block.c punctuation.definition.comment.end.c"
2846
+ },
2847
+ {
2848
+ match: "\\*",
2849
+ name: "comment.block.c"
2850
+ }
2851
+ ]
2852
+ },
2853
+ "10": {
2854
+ name: "punctuation.section.arguments.begin.bracket.round.static_assert.c"
2855
+ }
2856
+ },
2857
+ end: "(\\))",
2858
+ endCaptures: {
2859
+ "1": {
2860
+ name: "punctuation.section.arguments.end.bracket.round.static_assert.c"
2861
+ }
2862
+ },
2863
+ patterns: [
2864
+ {
2865
+ name: "meta.static_assert.message.c",
2866
+ begin: "(,)\\s*(?=(?:L|u8|u|U\\s*\\\")?)",
2867
+ beginCaptures: {
2868
+ "1": {
2869
+ name: "punctuation.separator.delimiter.comma.c"
2870
+ }
2871
+ },
2872
+ end: "(?=\\))",
2873
+ patterns: [
2874
+ {
2875
+ include: "#string_context"
2876
+ }
2877
+ ]
2878
+ },
2879
+ {
2880
+ include: "#evaluation_context"
2881
+ }
2882
+ ]
2883
+ },
2884
+ storage_types: {
2885
+ patterns: [
2886
+ {
2887
+ match: "(?-mix:(?<!\\w)(?:unsigned|signed|double|_Bool|short|float|long|void|char|bool|int)(?!\\w))",
2888
+ name: "storage.type.built-in.primitive.c"
2889
+ },
2890
+ {
2891
+ match: "(?-mix:(?<!\\w)(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|pthread_rwlockattr_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_uint_fast16_t|atomic_int_least64_t|atomic_int_least32_t|atomic_int_least16_t|atomic_uint_least8_t|atomic_uint_fast8_t|atomic_int_least8_t|atomic_int_fast16_t|pthread_mutexattr_t|atomic_int_fast32_t|atomic_int_fast64_t|atomic_int_fast8_t|pthread_condattr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintptr_t|atomic_uintmax_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|int_least32_t|pthread_key_t|int_least16_t|int_least64_t|uint_least8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|atomic_ushort|atomic_ullong|atomic_size_t|int_fast16_t|int_fast64_t|uint_fast8_t|atomic_short|atomic_uchar|atomic_schar|int_least8_t|memory_order|atomic_llong|atomic_ulong|int_fast32_t|atomic_long|atomic_uint|atomic_char|int_fast8_t|suseconds_t|atomic_bool|atomic_int|_Imaginary|useconds_t|in_port_t|uintmax_t|uintmax_t|pthread_t|blksize_t|in_addr_t|uintptr_t|blkcnt_t|uint16_t|uint32_t|uint64_t|u_quad_t|_Complex|intptr_t|intmax_t|intmax_t|segsz_t|u_short|nlink_t|uint8_t|int64_t|int32_t|int16_t|fixpt_t|daddr_t|caddr_t|qaddr_t|ssize_t|clock_t|swblk_t|u_long|mode_t|int8_t|time_t|ushort|u_char|quad_t|size_t|pid_t|gid_t|uid_t|dev_t|div_t|off_t|u_int|key_t|ino_t|uint|id_t|id_t)(?!\\w))",
2892
+ name: "storage.type.built-in.c"
2893
+ },
2894
+ {
2895
+ match: "(?-mix:\\b(enum|struct|union)\\b)",
2896
+ name: "storage.type.$1.c"
2897
+ },
2898
+ {
2899
+ name: "meta.asm.c",
2900
+ begin: "(\\b(?:__asm__|asm)\\b)\\s*((?:volatile)?)",
2901
+ beginCaptures: {
2902
+ "1": {
2903
+ name: "storage.type.asm.c"
2904
+ },
2905
+ "2": {
2906
+ name: "storage.modifier.c"
2907
+ }
2908
+ },
2909
+ end: "(?!\\G)",
2910
+ patterns: [
2911
+ {
2912
+ match: "(?:^)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))(?:\\n|$)",
2913
+ captures: {
2914
+ "1": {
2915
+ patterns: [
2916
+ {
2917
+ include: "#inline_comment"
2918
+ }
2919
+ ]
2920
+ },
2921
+ "2": {
2922
+ name: "comment.block.c punctuation.definition.comment.begin.c"
2923
+ },
2924
+ "3": {
2925
+ name: "comment.block.c"
2926
+ },
2927
+ "4": {
2928
+ patterns: [
2929
+ {
2930
+ match: "\\*\\/",
2931
+ name: "comment.block.c punctuation.definition.comment.end.c"
2932
+ },
2933
+ {
2934
+ match: "\\*",
2935
+ name: "comment.block.c"
2936
+ }
2937
+ ]
2938
+ }
2939
+ }
2940
+ },
2941
+ {
2942
+ include: "#comments"
2943
+ },
2944
+ {
2945
+ begin: "(((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\()",
2946
+ beginCaptures: {
2947
+ "1": {
2948
+ name: "punctuation.section.parens.begin.bracket.round.assembly.c"
2949
+ },
2950
+ "2": {
2951
+ patterns: [
2952
+ {
2953
+ include: "#inline_comment"
2954
+ }
2955
+ ]
2956
+ },
2957
+ "3": {
2958
+ name: "comment.block.c punctuation.definition.comment.begin.c"
2959
+ },
2960
+ "4": {
2961
+ name: "comment.block.c"
2962
+ },
2963
+ "5": {
2964
+ patterns: [
2965
+ {
2966
+ match: "\\*\\/",
2967
+ name: "comment.block.c punctuation.definition.comment.end.c"
2968
+ },
2969
+ {
2970
+ match: "\\*",
2971
+ name: "comment.block.c"
2972
+ }
2973
+ ]
2974
+ }
2975
+ },
2976
+ end: "(\\))",
2977
+ endCaptures: {
2978
+ "1": {
2979
+ name: "punctuation.section.parens.end.bracket.round.assembly.c"
2980
+ }
2981
+ },
2982
+ patterns: [
2983
+ {
2984
+ name: "string.quoted.double.c",
2985
+ contentName: "meta.embedded.assembly.c",
2986
+ begin: "(R?)(\")",
2987
+ beginCaptures: {
2988
+ "1": {
2989
+ name: "meta.encoding.c"
2990
+ },
2991
+ "2": {
2992
+ name: "punctuation.definition.string.begin.assembly.c"
2993
+ }
2994
+ },
2995
+ end: "(\")",
2996
+ endCaptures: {
2997
+ "1": {
2998
+ name: "punctuation.definition.string.end.assembly.c"
2999
+ }
3000
+ },
3001
+ patterns: [
3002
+ {
3003
+ include: "source.asm"
3004
+ },
3005
+ {
3006
+ include: "source.x86"
3007
+ },
3008
+ {
3009
+ include: "source.x86_64"
3010
+ },
3011
+ {
3012
+ include: "source.arm"
3013
+ },
3014
+ {
3015
+ include: "#backslash_escapes"
3016
+ },
3017
+ {
3018
+ include: "#string_escaped_char"
3019
+ }
3020
+ ]
3021
+ },
3022
+ {
3023
+ begin: "(\\()",
3024
+ beginCaptures: {
3025
+ "1": {
3026
+ name: "punctuation.section.parens.begin.bracket.round.assembly.inner.c"
3027
+ }
3028
+ },
3029
+ end: "(\\))",
3030
+ endCaptures: {
3031
+ "1": {
3032
+ name: "punctuation.section.parens.end.bracket.round.assembly.inner.c"
3033
+ }
3034
+ },
3035
+ patterns: [
3036
+ {
3037
+ include: "#evaluation_context"
3038
+ }
3039
+ ]
3040
+ },
3041
+ {
3042
+ match: "\\[((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))([a-zA-Z_]\\w*)((?:(?:(?>\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+?|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z)))\\]",
3043
+ captures: {
3044
+ "1": {
3045
+ patterns: [
3046
+ {
3047
+ include: "#inline_comment"
3048
+ }
3049
+ ]
3050
+ },
3051
+ "2": {
3052
+ name: "comment.block.c punctuation.definition.comment.begin.c"
3053
+ },
3054
+ "3": {
3055
+ name: "comment.block.c"
3056
+ },
3057
+ "4": {
3058
+ patterns: [
3059
+ {
3060
+ match: "\\*\\/",
3061
+ name: "comment.block.c punctuation.definition.comment.end.c"
3062
+ },
3063
+ {
3064
+ match: "\\*",
3065
+ name: "comment.block.c"
3066
+ }
3067
+ ]
3068
+ },
3069
+ "5": {
3070
+ name: "variable.other.asm.label.c"
3071
+ },
3072
+ "6": {
3073
+ patterns: [
3074
+ {
3075
+ include: "#inline_comment"
3076
+ }
3077
+ ]
3078
+ },
3079
+ "7": {
3080
+ name: "comment.block.c punctuation.definition.comment.begin.c"
3081
+ },
3082
+ "8": {
3083
+ name: "comment.block.c"
3084
+ },
3085
+ "9": {
3086
+ patterns: [
3087
+ {
3088
+ match: "\\*\\/",
3089
+ name: "comment.block.c punctuation.definition.comment.end.c"
3090
+ },
3091
+ {
3092
+ match: "\\*",
3093
+ name: "comment.block.c"
3094
+ }
3095
+ ]
3096
+ }
3097
+ }
3098
+ },
3099
+ {
3100
+ match: ":",
3101
+ name: "punctuation.separator.delimiter.colon.assembly.c"
3102
+ },
3103
+ {
3104
+ include: "#comments"
3105
+ }
3106
+ ]
3107
+ }
3108
+ ]
3109
+ }
3110
+ ]
3111
+ },
3112
+ string_escaped_char: {
3113
+ patterns: [
3114
+ {
3115
+ match: "(?x)\\\\ (\n\\\\\t\t\t |\n[abefnprtv'\"?] |\n[0-3]\\d{,2}\t |\n[4-7]\\d?\t\t|\nx[a-fA-F0-9]{,2} |\nu[a-fA-F0-9]{,4} |\nU[a-fA-F0-9]{,8} )",
3116
+ name: "constant.character.escape.c"
3117
+ },
3118
+ {
3119
+ match: "\\\\.",
3120
+ name: "invalid.illegal.unknown-escape.c"
3121
+ }
3122
+ ]
3123
+ },
3124
+ string_placeholder: {
3125
+ patterns: [
3126
+ {
3127
+ match: "(?x) %\n(\\d+\\$)?\t\t\t\t\t\t # field (argument #)\n[#0\\- +']*\t\t\t\t\t\t # flags\n[,;:_]?\t\t\t\t\t\t\t # separator character (AltiVec)\n((-?\\d+)|\\*(-?\\d+\\$)?)?\t\t # minimum field width\n(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?\t# precision\n(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n[diouxXDOUeEfFgGaACcSspn%]\t\t # conversion type",
3128
+ name: "constant.other.placeholder.c"
3129
+ },
3130
+ {
3131
+ match: "(%)(?!\"\\s*(PRI|SCN))",
3132
+ captures: {
3133
+ "1": {
3134
+ name: "invalid.illegal.placeholder.c"
3135
+ }
3136
+ }
3137
+ }
3138
+ ]
3139
+ },
3140
+ strings: {
3141
+ patterns: [
3142
+ {
3143
+ begin: "\"",
3144
+ beginCaptures: {
3145
+ "0": {
3146
+ name: "punctuation.definition.string.begin.c"
3147
+ }
3148
+ },
3149
+ end: "\"",
3150
+ endCaptures: {
3151
+ "0": {
3152
+ name: "punctuation.definition.string.end.c"
3153
+ }
3154
+ },
3155
+ name: "string.quoted.double.c",
3156
+ patterns: [
3157
+ {
3158
+ include: "#string_escaped_char"
3159
+ },
3160
+ {
3161
+ include: "#string_placeholder"
3162
+ },
3163
+ {
3164
+ include: "#line_continuation_character"
3165
+ }
3166
+ ]
3167
+ },
3168
+ {
3169
+ begin: "'",
3170
+ beginCaptures: {
3171
+ "0": {
3172
+ name: "punctuation.definition.string.begin.c"
3173
+ }
3174
+ },
3175
+ end: "'",
3176
+ endCaptures: {
3177
+ "0": {
3178
+ name: "punctuation.definition.string.end.c"
3179
+ }
3180
+ },
3181
+ name: "string.quoted.single.c",
3182
+ patterns: [
3183
+ {
3184
+ include: "#string_escaped_char"
3185
+ },
3186
+ {
3187
+ include: "#line_continuation_character"
3188
+ }
3189
+ ]
3190
+ }
3191
+ ]
3192
+ },
3193
+ switch_conditional_parentheses: {
3194
+ name: "meta.conditional.switch.c",
3195
+ begin: "((?>(?:(?:(?>(?<!\\s)\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))(\\()",
3196
+ beginCaptures: {
3197
+ "1": {
3198
+ patterns: [
3199
+ {
3200
+ include: "#inline_comment"
3201
+ }
3202
+ ]
3203
+ },
3204
+ "2": {
3205
+ name: "comment.block.c punctuation.definition.comment.begin.c"
3206
+ },
3207
+ "3": {
3208
+ name: "comment.block.c"
3209
+ },
3210
+ "4": {
3211
+ patterns: [
3212
+ {
3213
+ match: "\\*\\/",
3214
+ name: "comment.block.c punctuation.definition.comment.end.c"
3215
+ },
3216
+ {
3217
+ match: "\\*",
3218
+ name: "comment.block.c"
3219
+ }
3220
+ ]
3221
+ },
3222
+ "5": {
3223
+ name: "punctuation.section.parens.begin.bracket.round.conditional.switch.c"
3224
+ }
3225
+ },
3226
+ end: "(\\))",
3227
+ endCaptures: {
3228
+ "1": {
3229
+ name: "punctuation.section.parens.end.bracket.round.conditional.switch.c"
3230
+ }
3231
+ },
3232
+ patterns: [
3233
+ {
3234
+ include: "#evaluation_context"
3235
+ },
3236
+ {
3237
+ include: "#c_conditional_context"
3238
+ }
3239
+ ]
3240
+ },
3241
+ switch_statement: {
3242
+ name: "meta.block.switch.c",
3243
+ begin: "(((?>(?:(?:(?>(?<!\\s)\\s+)|(\\/\\*)((?>(?:[^\\*]|(?>\\*+)[^\\/])*)((?>\\*+)\\/)))+|(?:(?:(?:(?:\\b|(?<=\\W))|(?=\\W))|\\A)|\\Z))))((?<!\\w)switch(?!\\w)))",
3244
+ beginCaptures: {
3245
+ "1": {
3246
+ name: "meta.head.switch.c"
3247
+ },
3248
+ "2": {
3249
+ patterns: [
3250
+ {
3251
+ include: "#inline_comment"
3252
+ }
3253
+ ]
3254
+ },
3255
+ "3": {
3256
+ name: "comment.block.c punctuation.definition.comment.begin.c"
3257
+ },
3258
+ "4": {
3259
+ name: "comment.block.c"
3260
+ },
3261
+ "5": {
3262
+ patterns: [
3263
+ {
3264
+ match: "\\*\\/",
3265
+ name: "comment.block.c punctuation.definition.comment.end.c"
3266
+ },
3267
+ {
3268
+ match: "\\*",
3269
+ name: "comment.block.c"
3270
+ }
3271
+ ]
3272
+ },
3273
+ "6": {
3274
+ name: "keyword.control.switch.c"
3275
+ }
3276
+ },
3277
+ end: "(?:(?<=\\}|%>|\\?\\?>)|(?=[;>\\[\\]=]))",
3278
+ patterns: [
3279
+ {
3280
+ name: "meta.head.switch.c",
3281
+ begin: "\\G ?",
3282
+ end: "((?:\\{|<%|\\?\\?<|(?=;)))",
3283
+ endCaptures: {
3284
+ "1": {
3285
+ name: "punctuation.section.block.begin.bracket.curly.switch.c"
3286
+ }
3287
+ },
3288
+ patterns: [
3289
+ {
3290
+ include: "#switch_conditional_parentheses"
3291
+ },
3292
+ {
3293
+ include: "$self"
3294
+ }
3295
+ ]
3296
+ },
3297
+ {
3298
+ name: "meta.body.switch.c",
3299
+ begin: "(?<=\\{|<%|\\?\\?<)",
3300
+ end: "(\\}|%>|\\?\\?>)",
3301
+ endCaptures: {
3302
+ "1": {
3303
+ name: "punctuation.section.block.end.bracket.curly.switch.c"
3304
+ }
3305
+ },
3306
+ patterns: [
3307
+ {
3308
+ include: "#default_statement"
3309
+ },
3310
+ {
3311
+ include: "#case_statement"
3312
+ },
3313
+ {
3314
+ include: "$self"
3315
+ },
3316
+ {
3317
+ include: "#block_innards"
3318
+ }
3319
+ ]
3320
+ },
3321
+ {
3322
+ name: "meta.tail.switch.c",
3323
+ begin: "(?<=\\}|%>|\\?\\?>)[\\s\\n]*",
3324
+ end: "[\\s\\n]*(?=;)",
3325
+ patterns: [
3326
+ {
3327
+ include: "$self"
3328
+ }
3329
+ ]
3330
+ }
3331
+ ]
3332
+ },
3333
+ vararg_ellipses: {
3334
+ match: "(?<!\\.)\\.\\.\\.(?!\\.)",
3335
+ name: "punctuation.vararg-ellipses.c"
3336
+ }
3337
+ };
3338
+ var c_tmLanguage = {
3339
+ information_for_contributors: information_for_contributors,
3340
+ version: version,
3341
+ name: name,
3342
+ scopeName: scopeName,
3343
+ patterns: patterns,
3344
+ repository: repository
3345
+ };
3346
+
3347
+ export { c_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };