@standarx/graph 0.0.0-stage → 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 (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.fr.md +438 -0
  3. package/README.md +437 -2
  4. package/THIRD_PARTY_NOTICES.md +22 -0
  5. package/assets/fonts/Inter-Regular.ttf +0 -0
  6. package/assets/fonts/Inter-SemiBold.ttf +0 -0
  7. package/assets/fonts/OFL.txt +92 -0
  8. package/dist/adapter-0bggwh8x.js +393 -0
  9. package/dist/cli-4m00785g.js +20 -0
  10. package/dist/cli-5v9761s9.js +330 -0
  11. package/dist/cli-9f1pdw5q.js +462 -0
  12. package/dist/cli-a4ax1vkc.js +172 -0
  13. package/dist/cli-abzdy8pn.js +1144 -0
  14. package/dist/cli-gh5166k6.js +1565 -0
  15. package/dist/cli-m29a3wgx.js +579 -0
  16. package/dist/cli-mzmjkk5v.js +11 -0
  17. package/dist/cli-nhmh6yxk.js +2485 -0
  18. package/dist/cli-nyckgf1t.js +4 -0
  19. package/dist/cli-sfdqkbd1.js +433 -0
  20. package/dist/cli-txrzzr2q.js +0 -0
  21. package/dist/cli-vecew2na.js +709 -0
  22. package/dist/cli-wt9dmbhm.js +560 -0
  23. package/dist/cli-ywgtv1cg.js +39 -0
  24. package/dist/cli-z3ccx2y4.js +141 -0
  25. package/dist/cli.d.ts +2 -0
  26. package/dist/cli.js +413 -0
  27. package/dist/core/index.d.ts +6 -0
  28. package/dist/core/index.js +91 -0
  29. package/dist/core/spatial.d.ts +16 -0
  30. package/dist/core/threshold.d.ts +1 -0
  31. package/dist/core/view.d.ts +80 -0
  32. package/dist/export/index.d.ts +18 -0
  33. package/dist/export/index.js +170 -0
  34. package/dist/export/pdf.d.ts +5 -0
  35. package/dist/export/png.d.ts +4 -0
  36. package/dist/format/index.d.ts +4 -0
  37. package/dist/format/index.js +69 -0
  38. package/dist/format/json-schema.d.ts +2 -0
  39. package/dist/format/schema.d.ts +787 -0
  40. package/dist/format/semantic/er.d.ts +3 -0
  41. package/dist/format/semantic/graph.d.ts +3 -0
  42. package/dist/format/semantic/sequence.d.ts +3 -0
  43. package/dist/format/semantic/shared.d.ts +14 -0
  44. package/dist/format/semantic/state.d.ts +3 -0
  45. package/dist/format/semantic/tree.d.ts +3 -0
  46. package/dist/format/transition-label.d.ts +2 -0
  47. package/dist/format/validate.d.ts +11 -0
  48. package/dist/html/index.d.ts +3 -0
  49. package/dist/html/index.js +125 -0
  50. package/dist/html/layout-worker.d.ts +1 -0
  51. package/dist/html/layout-worker.generated.d.ts +1 -0
  52. package/dist/html/mount.d.ts +12 -0
  53. package/dist/html/page.d.ts +14 -0
  54. package/dist/html/render.d.ts +7 -0
  55. package/dist/html/runtime.d.ts +1 -0
  56. package/dist/html/runtime.generated.d.ts +1 -0
  57. package/dist/html/shell.d.ts +10 -0
  58. package/dist/html/svg-adapter.d.ts +8 -0
  59. package/dist/html/ui.d.ts +34 -0
  60. package/dist/language/actions.d.ts +3 -0
  61. package/dist/language/analysis.d.ts +38 -0
  62. package/dist/language/complete.d.ts +3 -0
  63. package/dist/language/diagnostics.d.ts +14 -0
  64. package/dist/language/docs.d.ts +11 -0
  65. package/dist/language/format.d.ts +17 -0
  66. package/dist/language/hover.d.ts +3 -0
  67. package/dist/language/index.d.ts +8 -0
  68. package/dist/language/index.js +1560 -0
  69. package/dist/language/navigation.d.ts +9 -0
  70. package/dist/language/positions.d.ts +7 -0
  71. package/dist/language/symbols.d.ts +3 -0
  72. package/dist/language/types.d.ts +46 -0
  73. package/dist/layout/elk.d.ts +35 -0
  74. package/dist/layout/er.d.ts +3 -0
  75. package/dist/layout/font-metrics.d.ts +9 -0
  76. package/dist/layout/graph.d.ts +3 -0
  77. package/dist/layout/index.d.ts +5 -0
  78. package/dist/layout/index.js +16 -0
  79. package/dist/layout/measure.d.ts +10 -0
  80. package/dist/layout/sequence.d.ts +3 -0
  81. package/dist/layout/shapes.d.ts +16 -0
  82. package/dist/layout/shared.d.ts +31 -0
  83. package/dist/layout/state.d.ts +3 -0
  84. package/dist/layout/tree.d.ts +3 -0
  85. package/dist/layout/types.d.ts +198 -0
  86. package/dist/layout-worker.generated-xsmtzrfj.js +34 -0
  87. package/dist/mermaid/common.d.ts +36 -0
  88. package/dist/mermaid/er.d.ts +3 -0
  89. package/dist/mermaid/graph.d.ts +4 -0
  90. package/dist/mermaid/index.d.ts +6 -0
  91. package/dist/mermaid/index.js +6 -0
  92. package/dist/mermaid/mindmap.d.ts +3 -0
  93. package/dist/mermaid/sequence.d.ts +3 -0
  94. package/dist/mermaid/state.d.ts +3 -0
  95. package/dist/remark/index.d.ts +9 -0
  96. package/dist/remark/index.js +102 -0
  97. package/dist/shared/errors.d.ts +6 -0
  98. package/dist/shared/package-root.d.ts +5 -0
  99. package/dist/svg/escape.d.ts +1 -0
  100. package/dist/svg/index.d.ts +3 -0
  101. package/dist/svg/index.js +25 -0
  102. package/dist/svg/render.d.ts +9 -0
  103. package/dist/svg/theme.d.ts +62 -0
  104. package/dist/svg-adapter-gq5vmp6q.js +227 -0
  105. package/dist/text/build.d.ts +10 -0
  106. package/dist/text/canonical.d.ts +10 -0
  107. package/dist/text/errors.d.ts +33 -0
  108. package/dist/text/highlight.d.ts +13 -0
  109. package/dist/text/index.d.ts +33 -0
  110. package/dist/text/index.js +25 -0
  111. package/dist/text/lexer.d.ts +29 -0
  112. package/dist/text/parser.d.ts +160 -0
  113. package/dist/text/print.d.ts +6 -0
  114. package/dist/text/slug.d.ts +1 -0
  115. package/dist/text/syntax.d.ts +8 -0
  116. package/dist/version.d.ts +1 -0
  117. package/dist/webgl/adapter.d.ts +4 -0
  118. package/dist/webgl/index.d.ts +7 -0
  119. package/dist/webgl/index.js +15 -0
  120. package/dist/webgl/runtime.d.ts +1 -0
  121. package/dist/webgl/runtime.generated.d.ts +1 -0
  122. package/grammars/standargraph.tmLanguage.json +599 -0
  123. package/language-configuration.json +35 -0
  124. package/licenses/EPL-2.0.txt +277 -0
  125. package/licenses/MPL-2.0.txt +373 -0
  126. package/package.json +133 -4
  127. package/schema/graph-document.v1.json +1737 -0
@@ -0,0 +1,599 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3
+ "name": "Standargraph",
4
+ "scopeName": "source.standargraph",
5
+ "fileTypes": [
6
+ "sg"
7
+ ],
8
+ "patterns": [
9
+ {
10
+ "include": "#comment"
11
+ },
12
+ {
13
+ "include": "#diagram-graph"
14
+ },
15
+ {
16
+ "include": "#diagram-sequence"
17
+ },
18
+ {
19
+ "include": "#diagram-state"
20
+ },
21
+ {
22
+ "include": "#diagram-er"
23
+ },
24
+ {
25
+ "include": "#diagram-tree"
26
+ },
27
+ {
28
+ "include": "#invalid"
29
+ }
30
+ ],
31
+ "repository": {
32
+ "comment": {
33
+ "name": "comment.line.number-sign.standargraph",
34
+ "match": "(#).*$",
35
+ "captures": {
36
+ "1": {
37
+ "name": "punctuation.definition.comment.standargraph"
38
+ }
39
+ }
40
+ },
41
+ "string": {
42
+ "name": "string.quoted.double.standargraph",
43
+ "begin": "(\")",
44
+ "end": "(\")|$",
45
+ "beginCaptures": {
46
+ "1": {
47
+ "name": "punctuation.definition.string.begin.standargraph"
48
+ }
49
+ },
50
+ "endCaptures": {
51
+ "1": {
52
+ "name": "punctuation.definition.string.end.standargraph"
53
+ }
54
+ },
55
+ "patterns": [
56
+ {
57
+ "name": "constant.character.escape.standargraph",
58
+ "match": "\\\\(?:[\"\\\\nt]|u\\{[0-9a-fA-F]{1,6}\\})"
59
+ },
60
+ {
61
+ "name": "invalid.illegal.escape.standargraph",
62
+ "match": "\\\\."
63
+ }
64
+ ]
65
+ },
66
+ "backtick-id": {
67
+ "name": "variable.other.standargraph",
68
+ "match": "`(?:[^`\\\\\\n]|\\\\.)*`"
69
+ },
70
+ "first-id": {
71
+ "match": "^\\s*(?:([\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*)|(`(?:[^`\\\\\\n]|\\\\.)*`))",
72
+ "captures": {
73
+ "1": {
74
+ "name": "entity.name.tag.standargraph"
75
+ },
76
+ "2": {
77
+ "name": "entity.name.tag.standargraph"
78
+ }
79
+ }
80
+ },
81
+ "ident": {
82
+ "name": "variable.other.standargraph",
83
+ "match": "[\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*"
84
+ },
85
+ "end-line": {
86
+ "match": "^\\s*(end)(?=\\s*(?:#.*)?$)",
87
+ "captures": {
88
+ "1": {
89
+ "name": "keyword.control.block.standargraph"
90
+ }
91
+ }
92
+ },
93
+ "do-keyword": {
94
+ "name": "keyword.control.block.standargraph",
95
+ "match": "(?<![\\p{L}\\p{N}_./-])do(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])(?=\\s*(?:#.*)?$)"
96
+ },
97
+ "group-line": {
98
+ "match": "^\\s*(group)\\s+(?:([\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*)|(`(?:[^`\\\\\\n]|\\\\.)*`))",
99
+ "captures": {
100
+ "1": {
101
+ "name": "storage.type.group.standargraph"
102
+ },
103
+ "2": {
104
+ "name": "entity.name.namespace.standargraph"
105
+ },
106
+ "3": {
107
+ "name": "entity.name.namespace.standargraph"
108
+ }
109
+ }
110
+ },
111
+ "braces": {
112
+ "patterns": [
113
+ {
114
+ "name": "punctuation.section.block.begin.standargraph",
115
+ "match": "\\{"
116
+ },
117
+ {
118
+ "name": "punctuation.section.block.end.standargraph",
119
+ "match": "\\}"
120
+ }
121
+ ]
122
+ },
123
+ "operators": {
124
+ "patterns": [
125
+ {
126
+ "name": "keyword.operator.reply.standargraph",
127
+ "match": "-->"
128
+ },
129
+ {
130
+ "name": "keyword.operator.async.standargraph",
131
+ "match": "->>"
132
+ },
133
+ {
134
+ "name": "keyword.operator.arrow.standargraph",
135
+ "match": "->"
136
+ },
137
+ {
138
+ "name": "keyword.operator.line.standargraph",
139
+ "match": "--"
140
+ },
141
+ {
142
+ "name": "keyword.operator.dots.standargraph",
143
+ "match": "\\.\\."
144
+ }
145
+ ]
146
+ },
147
+ "word-operator": {
148
+ "name": "keyword.operator.word.standargraph",
149
+ "match": "(?<=[\\p{L}\\p{N}_`*]\\s|[\\p{L}\\p{N}_`*]\\s\\s|[\\p{L}\\p{N}_`*]\\s\\s\\s)(to|with|async|reply|via)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])(?=\\s+[^\\s#])"
150
+ },
151
+ "star": {
152
+ "name": "keyword.operator.star.standargraph",
153
+ "match": "\\*"
154
+ },
155
+ "state-initial": {
156
+ "match": "^\\s*(initial)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])(?=\\s*(?:->>|-->|->|--|\\.\\.|(?:to|with|async|reply|via)(?![\\p{L}\\p{N}_])))",
157
+ "captures": {
158
+ "1": {
159
+ "name": "keyword.operator.word.standargraph"
160
+ }
161
+ }
162
+ },
163
+ "state-final": {
164
+ "name": "keyword.operator.word.standargraph",
165
+ "match": "(?<=->\\s|->\\s\\s|to\\s|to\\s\\s)final(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])"
166
+ },
167
+ "cardinality": {
168
+ "name": "constant.numeric.cardinality.standargraph",
169
+ "match": "(?<![\\p{L}\\p{N}_./-])(?:0\\.\\.1|1\\.\\.\\*|0\\.\\.\\*|1)(?![\\p{L}\\p{N}_*])"
170
+ },
171
+ "attr-values": {
172
+ "patterns": [
173
+ {
174
+ "include": "#comment"
175
+ },
176
+ {
177
+ "include": "#string"
178
+ },
179
+ {
180
+ "include": "#list"
181
+ },
182
+ {
183
+ "name": "constant.numeric.standargraph",
184
+ "match": "(?<![\\p{L}\\p{N}_./-])-?[0-9]+(?:\\.[0-9]+)?(?:[eE][-+]?[0-9]+)?"
185
+ },
186
+ {
187
+ "name": "constant.language.boolean.standargraph",
188
+ "match": "(?<![\\p{L}\\p{N}_./-])(?:true|false)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])"
189
+ },
190
+ {
191
+ "name": "string.unquoted.standargraph",
192
+ "match": "[\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*"
193
+ },
194
+ {
195
+ "name": "punctuation.separator.comma.standargraph",
196
+ "match": ","
197
+ }
198
+ ]
199
+ },
200
+ "list": {
201
+ "name": "meta.list.standargraph",
202
+ "begin": "(\\[)",
203
+ "end": "(\\])",
204
+ "beginCaptures": {
205
+ "1": {
206
+ "name": "punctuation.definition.list.begin.standargraph"
207
+ }
208
+ },
209
+ "endCaptures": {
210
+ "1": {
211
+ "name": "punctuation.definition.list.end.standargraph"
212
+ }
213
+ },
214
+ "patterns": [
215
+ {
216
+ "include": "#attr-values"
217
+ }
218
+ ]
219
+ },
220
+ "attributes": {
221
+ "name": "meta.attributes.standargraph",
222
+ "begin": "(\\[)",
223
+ "end": "(\\])",
224
+ "beginCaptures": {
225
+ "1": {
226
+ "name": "punctuation.definition.attributes.begin.standargraph"
227
+ }
228
+ },
229
+ "endCaptures": {
230
+ "1": {
231
+ "name": "punctuation.definition.attributes.end.standargraph"
232
+ }
233
+ },
234
+ "patterns": [
235
+ {
236
+ "include": "#comment"
237
+ },
238
+ {
239
+ "match": "(?<![\\p{L}\\p{N}_./-])(shape|pseudo|confidence|direction|layout)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])(\\s*)(=)(\\s*)([\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*)",
240
+ "captures": {
241
+ "1": {
242
+ "name": "variable.parameter.attribute.standargraph"
243
+ },
244
+ "3": {
245
+ "name": "keyword.operator.assignment.standargraph"
246
+ },
247
+ "5": {
248
+ "name": "constant.other.enum.standargraph"
249
+ }
250
+ }
251
+ },
252
+ {
253
+ "name": "variable.parameter.attribute.standargraph",
254
+ "match": "(?:[\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*|`(?:[^`\\\\\\n]|\\\\.)*`)(?=\\s*=)"
255
+ },
256
+ {
257
+ "name": "keyword.operator.assignment.standargraph",
258
+ "match": "="
259
+ },
260
+ {
261
+ "include": "#attr-values"
262
+ }
263
+ ]
264
+ },
265
+ "entity-attribute-line": {
266
+ "match": "^\\s*(?:([\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*)|(`(?:[^`\\\\\\n]|\\\\.)*`))(?:(\\s+)(\"(?:[^\"\\\\\\n]|\\\\.)*\")|(\\s+)(?!(?:pk|fk|uk|null)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_]))([\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*))?",
267
+ "captures": {
268
+ "1": {
269
+ "name": "entity.name.tag.standargraph"
270
+ },
271
+ "2": {
272
+ "name": "entity.name.tag.standargraph"
273
+ },
274
+ "4": {
275
+ "name": "string.quoted.double.standargraph"
276
+ },
277
+ "6": {
278
+ "name": "entity.name.type.standargraph"
279
+ }
280
+ }
281
+ },
282
+ "entity-attribute-patterns": {
283
+ "patterns": [
284
+ {
285
+ "include": "#comment"
286
+ },
287
+ {
288
+ "include": "#entity-attribute-line"
289
+ },
290
+ {
291
+ "name": "storage.modifier.standargraph",
292
+ "match": "(?<![\\p{L}\\p{N}_./-])(pk|fk|uk|null)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])"
293
+ },
294
+ {
295
+ "include": "#string"
296
+ },
297
+ {
298
+ "match": "(\\[)(\\])",
299
+ "captures": {
300
+ "1": {
301
+ "name": "punctuation.definition.array.begin.standargraph"
302
+ },
303
+ "2": {
304
+ "name": "punctuation.definition.array.end.standargraph"
305
+ }
306
+ }
307
+ },
308
+ {
309
+ "include": "#attributes"
310
+ },
311
+ {
312
+ "name": "punctuation.section.parens.begin.standargraph",
313
+ "match": "\\("
314
+ },
315
+ {
316
+ "name": "punctuation.section.parens.end.standargraph",
317
+ "match": "\\)"
318
+ },
319
+ {
320
+ "name": "punctuation.separator.comma.standargraph",
321
+ "match": ","
322
+ },
323
+ {
324
+ "name": "constant.numeric.standargraph",
325
+ "match": "(?<![\\p{L}\\p{N}_./-])[0-9]+(?:\\.[0-9]+)?"
326
+ },
327
+ {
328
+ "name": "entity.name.type.standargraph",
329
+ "match": "[\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*"
330
+ }
331
+ ]
332
+ },
333
+ "entity-block-braces": {
334
+ "name": "meta.block.entity.standargraph",
335
+ "begin": "(\\{)",
336
+ "end": "(\\})",
337
+ "beginCaptures": {
338
+ "1": {
339
+ "name": "punctuation.section.block.begin.standargraph"
340
+ }
341
+ },
342
+ "endCaptures": {
343
+ "1": {
344
+ "name": "punctuation.section.block.end.standargraph"
345
+ }
346
+ },
347
+ "patterns": [
348
+ {
349
+ "include": "#entity-attribute-patterns"
350
+ }
351
+ ]
352
+ },
353
+ "entity-block-words": {
354
+ "name": "meta.block.entity.standargraph",
355
+ "begin": "(?<![\\p{L}\\p{N}_./-])(do)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])(?=\\s*(?:#.*)?$)",
356
+ "end": "^\\s*(end)(?=\\s*(?:#.*)?$)",
357
+ "beginCaptures": {
358
+ "1": {
359
+ "name": "keyword.control.block.standargraph"
360
+ }
361
+ },
362
+ "endCaptures": {
363
+ "1": {
364
+ "name": "keyword.control.block.standargraph"
365
+ }
366
+ },
367
+ "patterns": [
368
+ {
369
+ "include": "#entity-attribute-patterns"
370
+ }
371
+ ]
372
+ },
373
+ "tree-label": {
374
+ "match": "^\\s*([^\"\\s#\\[][^\\[#]*?)(?=\\s*(?:\\[|#|$))",
375
+ "captures": {
376
+ "1": {
377
+ "name": "string.unquoted.label.standargraph"
378
+ }
379
+ }
380
+ },
381
+ "diagram-graph": {
382
+ "name": "meta.diagram.graph.standargraph",
383
+ "begin": "^\\s*(graph)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])",
384
+ "end": "(?!)",
385
+ "beginCaptures": {
386
+ "1": {
387
+ "name": "keyword.other.kind.standargraph"
388
+ }
389
+ },
390
+ "patterns": [
391
+ {
392
+ "include": "#comment"
393
+ },
394
+ {
395
+ "include": "#end-line"
396
+ },
397
+ {
398
+ "include": "#group-line"
399
+ },
400
+ {
401
+ "include": "#first-id"
402
+ },
403
+ {
404
+ "include": "#string"
405
+ },
406
+ {
407
+ "include": "#backtick-id"
408
+ },
409
+ {
410
+ "include": "#attributes"
411
+ },
412
+ {
413
+ "include": "#word-operator"
414
+ },
415
+ {
416
+ "include": "#operators"
417
+ },
418
+ {
419
+ "include": "#do-keyword"
420
+ },
421
+ {
422
+ "include": "#braces"
423
+ },
424
+ {
425
+ "include": "#ident"
426
+ }
427
+ ]
428
+ },
429
+ "diagram-sequence": {
430
+ "name": "meta.diagram.sequence.standargraph",
431
+ "begin": "^\\s*(sequence)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])",
432
+ "end": "(?!)",
433
+ "beginCaptures": {
434
+ "1": {
435
+ "name": "keyword.other.kind.standargraph"
436
+ }
437
+ },
438
+ "patterns": [
439
+ {
440
+ "include": "#comment"
441
+ },
442
+ {
443
+ "include": "#end-line"
444
+ },
445
+ {
446
+ "include": "#first-id"
447
+ },
448
+ {
449
+ "include": "#string"
450
+ },
451
+ {
452
+ "include": "#backtick-id"
453
+ },
454
+ {
455
+ "include": "#attributes"
456
+ },
457
+ {
458
+ "include": "#word-operator"
459
+ },
460
+ {
461
+ "include": "#operators"
462
+ },
463
+ {
464
+ "include": "#ident"
465
+ }
466
+ ]
467
+ },
468
+ "diagram-state": {
469
+ "name": "meta.diagram.state.standargraph",
470
+ "begin": "^\\s*(state)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])",
471
+ "end": "(?!)",
472
+ "beginCaptures": {
473
+ "1": {
474
+ "name": "keyword.other.kind.standargraph"
475
+ }
476
+ },
477
+ "patterns": [
478
+ {
479
+ "include": "#comment"
480
+ },
481
+ {
482
+ "include": "#end-line"
483
+ },
484
+ {
485
+ "include": "#state-initial"
486
+ },
487
+ {
488
+ "include": "#first-id"
489
+ },
490
+ {
491
+ "include": "#string"
492
+ },
493
+ {
494
+ "include": "#backtick-id"
495
+ },
496
+ {
497
+ "include": "#attributes"
498
+ },
499
+ {
500
+ "include": "#state-final"
501
+ },
502
+ {
503
+ "include": "#word-operator"
504
+ },
505
+ {
506
+ "include": "#operators"
507
+ },
508
+ {
509
+ "include": "#star"
510
+ },
511
+ {
512
+ "include": "#do-keyword"
513
+ },
514
+ {
515
+ "include": "#braces"
516
+ },
517
+ {
518
+ "include": "#ident"
519
+ }
520
+ ]
521
+ },
522
+ "diagram-er": {
523
+ "name": "meta.diagram.er.standargraph",
524
+ "begin": "^\\s*(er)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])",
525
+ "end": "(?!)",
526
+ "beginCaptures": {
527
+ "1": {
528
+ "name": "keyword.other.kind.standargraph"
529
+ }
530
+ },
531
+ "patterns": [
532
+ {
533
+ "include": "#comment"
534
+ },
535
+ {
536
+ "include": "#end-line"
537
+ },
538
+ {
539
+ "include": "#first-id"
540
+ },
541
+ {
542
+ "include": "#string"
543
+ },
544
+ {
545
+ "include": "#backtick-id"
546
+ },
547
+ {
548
+ "include": "#attributes"
549
+ },
550
+ {
551
+ "include": "#cardinality"
552
+ },
553
+ {
554
+ "include": "#word-operator"
555
+ },
556
+ {
557
+ "include": "#operators"
558
+ },
559
+ {
560
+ "include": "#entity-block-braces"
561
+ },
562
+ {
563
+ "include": "#entity-block-words"
564
+ },
565
+ {
566
+ "include": "#ident"
567
+ }
568
+ ]
569
+ },
570
+ "diagram-tree": {
571
+ "name": "meta.diagram.tree.standargraph",
572
+ "begin": "^\\s*(tree)(?![\\p{L}\\p{N}_]|[./-][\\p{L}\\p{N}_])",
573
+ "end": "(?!)",
574
+ "beginCaptures": {
575
+ "1": {
576
+ "name": "keyword.other.kind.standargraph"
577
+ }
578
+ },
579
+ "patterns": [
580
+ {
581
+ "include": "#comment"
582
+ },
583
+ {
584
+ "include": "#tree-label"
585
+ },
586
+ {
587
+ "include": "#string"
588
+ },
589
+ {
590
+ "include": "#attributes"
591
+ }
592
+ ]
593
+ },
594
+ "invalid": {
595
+ "begin": "^\\s*[^\\s#]",
596
+ "end": "(?!)"
597
+ }
598
+ }
599
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "comments": {
3
+ "lineComment": "#"
4
+ },
5
+ "brackets": [
6
+ ["{", "}"],
7
+ ["[", "]"],
8
+ ["(", ")"]
9
+ ],
10
+ "autoClosingPairs": [
11
+ { "open": "{", "close": "}" },
12
+ { "open": "[", "close": "]" },
13
+ { "open": "(", "close": ")" },
14
+ { "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
15
+ { "open": "`", "close": "`", "notIn": ["string", "comment"] }
16
+ ],
17
+ "surroundingPairs": [
18
+ ["{", "}"],
19
+ ["[", "]"],
20
+ ["(", ")"],
21
+ ["\"", "\""],
22
+ ["`", "`"]
23
+ ],
24
+ "indentationRules": {
25
+ "increaseIndentPattern": "(?:\\{|\\bdo)\\s*(?:#.*)?$",
26
+ "decreaseIndentPattern": "^\\s*(?:\\}|end\\b)"
27
+ },
28
+ "folding": {
29
+ "markers": {
30
+ "start": "(?:\\{|\\bdo)\\s*(?:#.*)?$",
31
+ "end": "^\\s*(?:\\}|end)\\s*(?:#.*)?$"
32
+ }
33
+ },
34
+ "wordPattern": "[\\p{L}_][\\p{L}\\p{N}_]*(?:[./-][\\p{L}\\p{N}_]+)*"
35
+ }