@cratis/screenplay-language 4.52.0 → 4.54.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.
- package/README.md +15 -0
- package/dist/TypeReferenceSymbol.d.ts +8 -0
- package/dist/TypeReferenceSymbol.d.ts.map +1 -0
- package/dist/bundles/chunk-GJX4NJYC.js +4836 -0
- package/dist/bundles/chunk-GJX4NJYC.js.map +7 -0
- package/dist/bundles/index.js +1417 -0
- package/dist/bundles/index.js.map +7 -0
- package/dist/bundles/sub-languages/capture/index.js +677 -0
- package/dist/bundles/sub-languages/capture/index.js.map +7 -0
- package/dist/bundles/sub-languages/projection/index.js +1647 -0
- package/dist/bundles/sub-languages/projection/index.js.map +7 -0
- package/dist/code-actions.d.ts +3 -0
- package/dist/code-actions.d.ts.map +1 -0
- package/dist/completion-items.d.ts +1 -0
- package/dist/completion-items.d.ts.map +1 -1
- package/dist/completion-planner.d.ts.map +1 -1
- package/dist/completions.d.ts.map +1 -1
- package/dist/diagnostic-codes.d.ts +3 -0
- package/dist/diagnostic-codes.d.ts.map +1 -1
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/hover-content.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/keyword-docs.d.ts.map +1 -1
- package/dist/language.d.ts +1 -0
- package/dist/language.d.ts.map +1 -1
- package/dist/production-destinations.d.ts.map +1 -1
- package/dist/symbols.d.ts +4 -0
- package/dist/symbols.d.ts.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/validation.d.ts +1 -0
- package/dist/validation.d.ts.map +1 -1
- package/package.json +13 -9
- package/DestinationHint.ts +0 -8
- package/ProductionSymbol.ts +0 -11
- package/completion-items.ts +0 -261
- package/completion-planner.ts +0 -167
- package/completions.ts +0 -156
- package/diagnostic-codes.ts +0 -43
- package/diagnostics.ts +0 -55
- package/dist/DestinationHint.js +0 -4
- package/dist/DestinationHint.js.map +0 -1
- package/dist/ProductionSymbol.js +0 -4
- package/dist/ProductionSymbol.js.map +0 -1
- package/dist/completion-items.js +0 -228
- package/dist/completion-items.js.map +0 -1
- package/dist/completion-planner.js +0 -143
- package/dist/completion-planner.js.map +0 -1
- package/dist/completions.js +0 -101
- package/dist/completions.js.map +0 -1
- package/dist/diagnostic-codes.js +0 -41
- package/dist/diagnostic-codes.js.map +0 -1
- package/dist/diagnostics.js +0 -50
- package/dist/diagnostics.js.map +0 -1
- package/dist/document-context.js +0 -85
- package/dist/document-context.js.map +0 -1
- package/dist/event-analysis-source.js +0 -19
- package/dist/event-analysis-source.js.map +0 -1
- package/dist/event-context-catalog.js +0 -116
- package/dist/event-context-catalog.js.map +0 -1
- package/dist/event-context.js +0 -88
- package/dist/event-context.js.map +0 -1
- package/dist/file-imports.js +0 -58
- package/dist/file-imports.js.map +0 -1
- package/dist/file-references.js +0 -70
- package/dist/file-references.js.map +0 -1
- package/dist/hover-content.js +0 -98
- package/dist/hover-content.js.map +0 -1
- package/dist/hover.js +0 -15
- package/dist/hover.js.map +0 -1
- package/dist/index.js +0 -61
- package/dist/index.js.map +0 -1
- package/dist/inlay-hints.js +0 -15
- package/dist/inlay-hints.js.map +0 -1
- package/dist/inline-event-validation.js +0 -131
- package/dist/inline-event-validation.js.map +0 -1
- package/dist/keyword-docs.js +0 -148
- package/dist/keyword-docs.js.map +0 -1
- package/dist/language.js +0 -196
- package/dist/language.js.map +0 -1
- package/dist/production-destinations.js +0 -32
- package/dist/production-destinations.js.map +0 -1
- package/dist/sub-language-registry.js +0 -18
- package/dist/sub-language-registry.js.map +0 -1
- package/dist/sub-languages/capture/CompletionProvider.js +0 -332
- package/dist/sub-languages/capture/CompletionProvider.js.map +0 -1
- package/dist/sub-languages/capture/HoverProvider.js +0 -87
- package/dist/sub-languages/capture/HoverProvider.js.map +0 -1
- package/dist/sub-languages/capture/Validator.js +0 -72
- package/dist/sub-languages/capture/Validator.js.map +0 -1
- package/dist/sub-languages/capture/index.js +0 -58
- package/dist/sub-languages/capture/index.js.map +0 -1
- package/dist/sub-languages/capture/language.js +0 -160
- package/dist/sub-languages/capture/language.js.map +0 -1
- package/dist/sub-languages/cdl.js +0 -74
- package/dist/sub-languages/cdl.js.map +0 -1
- package/dist/sub-languages/pdl.js +0 -73
- package/dist/sub-languages/pdl.js.map +0 -1
- package/dist/sub-languages/projection/CodeActionProvider.js +0 -93
- package/dist/sub-languages/projection/CodeActionProvider.js.map +0 -1
- package/dist/sub-languages/projection/CompletionProvider.js +0 -595
- package/dist/sub-languages/projection/CompletionProvider.js.map +0 -1
- package/dist/sub-languages/projection/HoverProvider.js +0 -333
- package/dist/sub-languages/projection/HoverProvider.js.map +0 -1
- package/dist/sub-languages/projection/Validator.js +0 -388
- package/dist/sub-languages/projection/Validator.js.map +0 -1
- package/dist/sub-languages/projection/index.js +0 -160
- package/dist/sub-languages/projection/index.js.map +0 -1
- package/dist/sub-languages/projection/language.js +0 -171
- package/dist/sub-languages/projection/language.js.map +0 -1
- package/dist/symbols.js +0 -275
- package/dist/symbols.js.map +0 -1
- package/dist/themes/screenplay-dark.js +0 -30
- package/dist/themes/screenplay-dark.js.map +0 -1
- package/dist/themes/screenplay-light.js +0 -30
- package/dist/themes/screenplay-light.js.map +0 -1
- package/dist/tokens.js +0 -147
- package/dist/tokens.js.map +0 -1
- package/dist/validation.js +0 -248
- package/dist/validation.js.map +0 -1
- package/document-context.ts +0 -93
- package/event-analysis-source.ts +0 -18
- package/event-context-catalog.ts +0 -135
- package/event-context.ts +0 -119
- package/file-imports.ts +0 -70
- package/file-references.ts +0 -87
- package/for_documentContext/when_stripping_comments.ts +0 -32
- package/for_eventContext/when_resolving_generated_catalog_vectors.ts +0 -15
- package/for_eventGenerations/when_editing_event_generations.ts +0 -57
- package/for_fileImports/when_finding_file_imports.ts +0 -38
- package/for_fileReferences/when_recognizing_an_absolute_path/with_paths_of_every_shape.ts +0 -26
- package/for_fileReferences/when_scanning_a_document/inside_a_code_fence.ts +0 -26
- package/for_fileReferences/when_scanning_a_document/with_a_bare_file_keyword.ts +0 -19
- package/for_fileReferences/when_scanning_a_document/with_a_file_directive.ts +0 -30
- package/for_fileReferences/when_scanning_a_document/with_a_property_named_file.ts +0 -25
- package/for_fileReferences/when_scanning_a_document/with_a_trailing_comment.ts +0 -25
- package/for_fileReferences/when_scanning_a_document/with_directives_on_several_constructs.ts +0 -41
- package/for_importablePaths/when_listing_what_a_document_can_import.ts +0 -34
- package/for_inlineEvents/when_analyzing_many_inline_events.ts +0 -59
- package/for_inlineEvents/when_authoring_inline_events.ts +0 -149
- package/for_inlineEvents/when_completing_many_events.ts +0 -49
- package/for_inlineEvents/when_indexing_command_production_ownership.ts +0 -79
- package/for_planCompletions/when_completing_a_file_import.ts +0 -26
- package/for_planCompletions/when_completing_a_specification_query.ts +0 -24
- package/for_planCompletions/when_completing_a_specification_step.ts +0 -42
- package/for_planCompletions/when_completing_an_absent_read_model.ts +0 -14
- package/for_planCompletions/when_completing_reaction_reads.ts +0 -36
- package/for_projectionCompletionProvider/when_completing_an_event_context_path.ts +0 -102
- package/for_projectionHoverProvider/when_hovering_an_event_context_path.ts +0 -44
- package/for_projectionValidator/when_validating_a_projection_with_variants.ts +0 -128
- package/for_projectionValidator/when_validating_event_context_paths.ts +0 -31
- package/for_scanDocument/when_scanning_a_query/with_a_dotted_return_type.ts +0 -34
- package/for_scanDocument/when_scanning_aliased_reads.ts +0 -33
- package/for_scanDocument/when_scanning_many_commands.ts +0 -47
- package/for_tokens/when_highlighting_a_file_import.ts +0 -18
- package/for_tokens/when_highlighting_event_metadata.ts +0 -63
- package/for_tokens/when_highlighting_specification_steps.ts +0 -28
- package/for_validateLines/when_validating_a_document/with_a_problem_of_every_coded_kind.ts +0 -77
- package/for_validateLines/when_validating_a_document/with_an_unknown_policy.ts +0 -33
- package/for_validateLines/when_validating_a_file_placed_by_an_import/with_names_declared_in_other_files.ts +0 -43
- package/for_validateLines/when_validating_event_context_paths/in_a_projection.ts +0 -97
- package/for_validateLines/when_validating_file_imports/at_every_level.ts +0 -36
- package/for_validateLines/when_validating_production_destinations/with_an_available_identifier.ts +0 -120
- package/hover-content.ts +0 -117
- package/hover.ts +0 -23
- package/index.ts +0 -125
- package/inlay-hints.ts +0 -17
- package/inline-event-validation.ts +0 -115
- package/keyword-docs.ts +0 -152
- package/language.ts +0 -212
- package/production-destinations.ts +0 -32
- package/sub-language-registry.ts +0 -42
- package/sub-languages/capture/CompletionProvider.ts +0 -365
- package/sub-languages/capture/HoverProvider.ts +0 -99
- package/sub-languages/capture/Validator.ts +0 -97
- package/sub-languages/capture/index.ts +0 -72
- package/sub-languages/capture/language.ts +0 -176
- package/sub-languages/cdl.ts +0 -76
- package/sub-languages/pdl.ts +0 -75
- package/sub-languages/projection/CodeActionProvider.ts +0 -123
- package/sub-languages/projection/CompletionProvider.ts +0 -660
- package/sub-languages/projection/HoverProvider.ts +0 -377
- package/sub-languages/projection/Validator.ts +0 -441
- package/sub-languages/projection/index.ts +0 -223
- package/sub-languages/projection/language.ts +0 -193
- package/symbols.ts +0 -374
- package/themes/screenplay-dark.ts +0 -33
- package/themes/screenplay-light.ts +0 -33
- package/tokens.ts +0 -174
- package/validation.ts +0 -443
- package/vitest.setup.ts +0 -5
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
export const languageId = 'pdl';
|
|
4
|
-
// Keywords for the Projection Declaration Language
|
|
5
|
-
const KEYWORDS = [
|
|
6
|
-
'projection',
|
|
7
|
-
'sequence',
|
|
8
|
-
'all',
|
|
9
|
-
'every',
|
|
10
|
-
'on',
|
|
11
|
-
'from',
|
|
12
|
-
'key',
|
|
13
|
-
'parent',
|
|
14
|
-
'join',
|
|
15
|
-
'automap',
|
|
16
|
-
'no',
|
|
17
|
-
'children',
|
|
18
|
-
'nested',
|
|
19
|
-
'identified',
|
|
20
|
-
'by',
|
|
21
|
-
'add',
|
|
22
|
-
'subtract',
|
|
23
|
-
'remove',
|
|
24
|
-
'via',
|
|
25
|
-
'with',
|
|
26
|
-
'default',
|
|
27
|
-
'increment',
|
|
28
|
-
'decrement',
|
|
29
|
-
'count',
|
|
30
|
-
'set',
|
|
31
|
-
'unset',
|
|
32
|
-
'clear',
|
|
33
|
-
'events',
|
|
34
|
-
'id',
|
|
35
|
-
'exclude',
|
|
36
|
-
'variant',
|
|
37
|
-
'enters',
|
|
38
|
-
];
|
|
39
|
-
// Built-in expressions and functions
|
|
40
|
-
const BUILTINS = [
|
|
41
|
-
'$eventSourceId',
|
|
42
|
-
'$causedBy',
|
|
43
|
-
'$eventContext',
|
|
44
|
-
];
|
|
45
|
-
// Operators
|
|
46
|
-
const OPERATORS = ['=', '+=', '-=', '=>', '.'];
|
|
47
|
-
export const configuration = {
|
|
48
|
-
comments: {
|
|
49
|
-
lineComment: '#',
|
|
50
|
-
},
|
|
51
|
-
brackets: [
|
|
52
|
-
['{', '}'],
|
|
53
|
-
['[', ']'],
|
|
54
|
-
['(', ')'],
|
|
55
|
-
],
|
|
56
|
-
autoClosingPairs: [
|
|
57
|
-
{ open: '{', close: '}' },
|
|
58
|
-
{ open: '[', close: ']' },
|
|
59
|
-
{ open: '(', close: ')' },
|
|
60
|
-
{ open: '"', close: '"' },
|
|
61
|
-
{ open: "'", close: "'" },
|
|
62
|
-
{ open: '`', close: '`' },
|
|
63
|
-
],
|
|
64
|
-
surroundingPairs: [
|
|
65
|
-
{ open: '{', close: '}' },
|
|
66
|
-
{ open: '[', close: ']' },
|
|
67
|
-
{ open: '(', close: ')' },
|
|
68
|
-
{ open: '"', close: '"' },
|
|
69
|
-
{ open: "'", close: "'" },
|
|
70
|
-
{ open: '`', close: '`' },
|
|
71
|
-
],
|
|
72
|
-
indentationRules: {
|
|
73
|
-
increaseIndentPattern: /^.*(:|\bon\b|\ball\b|\bevery\b|\bchildren\b|\bnested\b|\bparent\b|\bvariant\b)\s*$/,
|
|
74
|
-
decreaseIndentPattern: /^.*\}.*$/,
|
|
75
|
-
},
|
|
76
|
-
folding: {
|
|
77
|
-
offSide: true,
|
|
78
|
-
markers: {
|
|
79
|
-
start: /^\s*(projection|all|every|on|children|nested|parent|variant)/,
|
|
80
|
-
end: /^\s*$/,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
wordPattern: /@?[a-zA-Z_$][\w$-]*/,
|
|
84
|
-
};
|
|
85
|
-
export const monarchLanguage = {
|
|
86
|
-
defaultToken: '',
|
|
87
|
-
tokenPostfix: '.pdl',
|
|
88
|
-
keywords: KEYWORDS,
|
|
89
|
-
builtins: BUILTINS,
|
|
90
|
-
operators: OPERATORS,
|
|
91
|
-
// Symbols
|
|
92
|
-
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
93
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
94
|
-
tokenizer: {
|
|
95
|
-
root: [
|
|
96
|
-
// Whitespace
|
|
97
|
-
{ include: '@whitespace' },
|
|
98
|
-
// Template strings with ${...} interpolation
|
|
99
|
-
[/`/, { token: 'string.template', next: '@templateString' }],
|
|
100
|
-
// Escaped identifiers (@ prefix allows using keywords as identifiers)
|
|
101
|
-
[/@[a-zA-Z_$][\w$]*/, 'identifier.escape'],
|
|
102
|
-
// Check for uppercase keywords (error case - keywords must be lowercase)
|
|
103
|
-
[
|
|
104
|
-
/[A-Z][a-zA-Z_$][\w$]*/,
|
|
105
|
-
{
|
|
106
|
-
cases: {
|
|
107
|
-
'@keywords': 'invalid',
|
|
108
|
-
'@default': 'identifier',
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
// Identifiers and keywords (lowercase only for keywords)
|
|
113
|
-
[
|
|
114
|
-
/[a-z_$][\w$]*/,
|
|
115
|
-
{
|
|
116
|
-
cases: {
|
|
117
|
-
'@keywords': 'keyword',
|
|
118
|
-
'@builtins': 'variable.predefined',
|
|
119
|
-
'@default': 'identifier',
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
// Delimiters and operators
|
|
124
|
-
[/[{}()[\]]/, '@brackets'],
|
|
125
|
-
[/=>/, 'operator.arrow'],
|
|
126
|
-
[
|
|
127
|
-
/@symbols/,
|
|
128
|
-
{
|
|
129
|
-
cases: {
|
|
130
|
-
'@operators': 'operator',
|
|
131
|
-
'@default': '',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
// Numbers
|
|
136
|
-
[/\d*\.\d+([eE][-+]?\d+)?/, 'number.float'],
|
|
137
|
-
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
|
138
|
-
[/\d+/, 'number'],
|
|
139
|
-
// Delimiter: after number because of .\d floats
|
|
140
|
-
[/[;,.]/, 'delimiter'],
|
|
141
|
-
// Strings
|
|
142
|
-
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
|
143
|
-
[/"/, { token: 'string.quote', next: '@string' }],
|
|
144
|
-
],
|
|
145
|
-
whitespace: [
|
|
146
|
-
[/[ \t\r\n]+/, ''],
|
|
147
|
-
[/#.*$/, 'comment'],
|
|
148
|
-
],
|
|
149
|
-
// Template string state
|
|
150
|
-
templateString: [
|
|
151
|
-
[/\$\{/, { token: 'delimiter.bracket', next: '@templateExpression' }],
|
|
152
|
-
[/[^\\`$]+/, 'string.template'],
|
|
153
|
-
[/@escapes/, 'string.template.escape'],
|
|
154
|
-
[/\\./, 'string.template.escape.invalid'],
|
|
155
|
-
[/`/, { token: 'string.template', next: '@pop' }],
|
|
156
|
-
],
|
|
157
|
-
// Template expression inside ${}
|
|
158
|
-
templateExpression: [
|
|
159
|
-
[/\}/, { token: 'delimiter.bracket', next: '@pop' }],
|
|
160
|
-
{ include: '@root' },
|
|
161
|
-
],
|
|
162
|
-
// Regular string state
|
|
163
|
-
string: [
|
|
164
|
-
[/[^\\"]+/, 'string'],
|
|
165
|
-
[/@escapes/, 'string.escape'],
|
|
166
|
-
[/\\./, 'string.escape.invalid'],
|
|
167
|
-
[/"/, { token: 'string.quote', next: '@pop' }],
|
|
168
|
-
],
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
//# sourceMappingURL=language.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../../sub-languages/projection/language.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAIrG,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,mDAAmD;AACnD,MAAM,QAAQ,GAAG;IACb,YAAY;IACZ,UAAU;IACV,KAAK;IACL,OAAO;IACP,IAAI;IACJ,MAAM;IACN,KAAK;IACL,QAAQ;IACR,MAAM;IACN,SAAS;IACT,IAAI;IACJ,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,IAAI;IACJ,KAAK;IACL,UAAU;IACV,QAAQ;IACR,KAAK;IACL,MAAM;IACN,SAAS;IACT,WAAW;IACX,WAAW;IACX,OAAO;IACP,KAAK;IACL,OAAO;IACP,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,SAAS;IACT,QAAQ;CACF,CAAC;AAEX,qCAAqC;AACrC,MAAM,QAAQ,GAAG;IACb,gBAAgB;IAChB,WAAW;IACX,eAAe;CACT,CAAC;AAEX,YAAY;AACZ,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAoC;IAC1D,QAAQ,EAAE;QACN,WAAW,EAAE,GAAG;KACnB;IACD,QAAQ,EAAE;QACN,CAAC,GAAG,EAAE,GAAG,CAAC;QACV,CAAC,GAAG,EAAE,GAAG,CAAC;QACV,CAAC,GAAG,EAAE,GAAG,CAAC;KACb;IACD,gBAAgB,EAAE;QACd,EAAE,IAAI,EAAE,GAAG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AAC,UAAU,EAAE,iBAAiB,CAAC;YAC/B,CAAC,UAAU,EAAE,wBAAwB,CAAC;YACtC,CAAC,KAAK,EAAE,gCAAgC,CAAC;YACzC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACpD;QAED,iCAAiC;QACjC,kBAAkB,EAAE;YAChB,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;YACpD,EAAE,OAAO,EAAE,OAAO,EAAE;SACvB;QAED,uBAAuB;QACvB,MAAM,EAAE;YACJ,CAAC,SAAS,EAAE,QAAQ,CAAC;YACrB,CAAC,UAAU,EAAE,eAAe,CAAC;YAC7B,CAAC,KAAK,EAAE,uBAAuB,CAAC;YAChC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACjD;KACJ;CACJ,CAAC"}
|
package/dist/symbols.js
DELETED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
import { fenceMap, indentOf } from './document-context';
|
|
4
|
-
import { eventAnalysisSource } from './event-analysis-source';
|
|
5
|
-
import { clauseKeywords } from './language';
|
|
6
|
-
const conceptPattern = /^concept\s+(\w+)\s*:\s*(\w+)((?:\s+@\w+)*)\s*$/;
|
|
7
|
-
const propertyPattern = /^\s*(@?[a-z_]\w*)\s+([\w.]+(?:\[\])?\??)(\s+identifier)?\s*$/;
|
|
8
|
-
const attributeReasonPattern = /^([a-z_]\w*)\s+reason\s+"((?:[^"\\]|\\.)*)"\s*$/;
|
|
9
|
-
const readPattern = /^\s*reads\s+([A-Z]\w*)(?:\s+as\s+([a-z_]\w*))?(?:\s+by\s+([a-z_]\w*))?\s*$/;
|
|
10
|
-
const commandReserved = ['authorize', 'produces', 'reads'];
|
|
11
|
-
// AuthorizeParser's continuation pattern, including the compiler's Unicode word characters.
|
|
12
|
-
const authorizationContinuation = /^(?:(?:or|and)\s+)?[A-Za-z_(][\p{L}\p{Mn}\p{Nd}\p{Pc}\s()]*$/u;
|
|
13
|
-
const eventReserved = clauseKeywords.filter(keyword => !['id', 'description', 'documentation'].includes(keyword));
|
|
14
|
-
const queryParameterPattern = /^\s*(?:by|filter)\s+([a-z_]\w*)\s+([\w.]+(?:\[\])?\??)(?:\s+from\s+.+)?\s*$/;
|
|
15
|
-
// Property-shaped clauses depend on their owner. Commands reserve only authorize,
|
|
16
|
-
// produces and reads; bare directives such as description and handler can be properties.
|
|
17
|
-
// The @ escape always denotes a property, and 'as' keeps its established property meaning.
|
|
18
|
-
function propertiesIn(lines, body, reserved) {
|
|
19
|
-
return body
|
|
20
|
-
.map((index) => ({ index, match: lines[index].match(propertyPattern) }))
|
|
21
|
-
.filter((entry) => entry.match !== null)
|
|
22
|
-
.filter(({ match }) => match[1].startsWith('@') || match[1] === 'as' || !reserved.includes(match[1]))
|
|
23
|
-
.map(({ index, match }) => ({
|
|
24
|
-
name: match[1].replace(/^@/, ''),
|
|
25
|
-
type: match[2],
|
|
26
|
-
isIdentifier: match[3] !== undefined,
|
|
27
|
-
line: index,
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
function collectBody(lines, fences, start, indent) {
|
|
31
|
-
const body = [];
|
|
32
|
-
for (let index = start + 1; index < lines.length; index++) {
|
|
33
|
-
if (fences[index]) {
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
const line = lines[index];
|
|
37
|
-
if (line.trim().length === 0)
|
|
38
|
-
continue;
|
|
39
|
-
if (indentOf(line) <= indent)
|
|
40
|
-
break;
|
|
41
|
-
body.push(index);
|
|
42
|
-
}
|
|
43
|
-
return body;
|
|
44
|
-
}
|
|
45
|
-
// Event/production parsers accept every greater indent, not just the smallest child indent.
|
|
46
|
-
// Command block directives own their nested lines; properties do not. Fenced prose is never syntax.
|
|
47
|
-
export function directBody(lines, fences, start, indent) {
|
|
48
|
-
const body = collectBody(lines, fences, start, indent).filter(index => !fences[index] && !/^\s*(?:\/\/|#)/.test(lines[index]));
|
|
49
|
-
if (!/^\s*command\b/.test(lines[start]))
|
|
50
|
-
return body;
|
|
51
|
-
let blockIndent;
|
|
52
|
-
let authorization = false;
|
|
53
|
-
return body.filter(index => {
|
|
54
|
-
const childIndent = indentOf(lines[index]);
|
|
55
|
-
const text = lines[index].trim();
|
|
56
|
-
// AuthorizeParser owns only consecutive deeper lines with requirement shape.
|
|
57
|
-
// Unlike opaque blocks, a nonmatching line returns control to CommandParser.
|
|
58
|
-
if (blockIndent !== undefined && childIndent > blockIndent &&
|
|
59
|
-
(!authorization || authorizationContinuation.test(text)))
|
|
60
|
-
return false;
|
|
61
|
-
const property = text !== 'validate csharp' && propertiesIn(lines, [index], commandReserved).length > 0;
|
|
62
|
-
// Description consumes only a quoted value or a fence (already excluded above).
|
|
63
|
-
const leaf = property || /^description(?:\s|$)/.test(text);
|
|
64
|
-
blockIndent = leaf ? undefined : childIndent;
|
|
65
|
-
authorization = /^authorize(?:\s|$)/.test(text);
|
|
66
|
-
return true;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
export function scanDocument(lines) {
|
|
70
|
-
const symbols = {
|
|
71
|
-
imports: [],
|
|
72
|
-
concepts: [],
|
|
73
|
-
types: [],
|
|
74
|
-
policies: [],
|
|
75
|
-
events: [],
|
|
76
|
-
commands: [],
|
|
77
|
-
queries: [],
|
|
78
|
-
screens: [],
|
|
79
|
-
triggers: [],
|
|
80
|
-
};
|
|
81
|
-
// One normalization pass for every declaration, including comments on fence openers.
|
|
82
|
-
lines = eventAnalysisSource(lines);
|
|
83
|
-
const fences = fenceMap(lines);
|
|
84
|
-
const eventLines = lines;
|
|
85
|
-
const eventFences = fences;
|
|
86
|
-
// Typed inline mappings share property syntax once their source expression is removed.
|
|
87
|
-
// Do this once, never once per inline event.
|
|
88
|
-
const eventPropertyLines = lines.map(line => line.replace(/\s*=(?!=|>).*/, ''));
|
|
89
|
-
for (let index = 0; index < lines.length; index++) {
|
|
90
|
-
if (fences[index])
|
|
91
|
-
continue;
|
|
92
|
-
const line = lines[index];
|
|
93
|
-
const trimmed = line.trim();
|
|
94
|
-
const indent = indentOf(line);
|
|
95
|
-
const importMatch = eventLines[index].trim().match(/^import\s+([\w.]+)\s*$/);
|
|
96
|
-
if (importMatch && indent === 0) {
|
|
97
|
-
const qualifiedName = importMatch[1];
|
|
98
|
-
const shortName = qualifiedName.split('.').pop() ?? qualifiedName;
|
|
99
|
-
symbols.imports.push({ qualifiedName, shortName, line: index });
|
|
100
|
-
continue;
|
|
101
|
-
}
|
|
102
|
-
const conceptMatch = trimmed.match(conceptPattern);
|
|
103
|
-
if (conceptMatch) {
|
|
104
|
-
const body = collectBody(lines, fences, index, indent).map((i) => lines[i].trim());
|
|
105
|
-
const attributeReasons = {};
|
|
106
|
-
for (const line of body) {
|
|
107
|
-
const reason = line.match(attributeReasonPattern);
|
|
108
|
-
if (reason && attributeReasons[reason[1]] === undefined) {
|
|
109
|
-
attributeReasons[reason[1]] = reason[2];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
const enumValues = conceptMatch[2] === 'Enum'
|
|
113
|
-
? body.filter((line) => !attributeReasonPattern.test(line))
|
|
114
|
-
: [];
|
|
115
|
-
symbols.concepts.push({
|
|
116
|
-
name: conceptMatch[1],
|
|
117
|
-
primitive: conceptMatch[2],
|
|
118
|
-
attributes: conceptMatch[3].trim().split(/\s+/).filter(Boolean),
|
|
119
|
-
attributeReasons,
|
|
120
|
-
enumValues,
|
|
121
|
-
line: index,
|
|
122
|
-
});
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
const typeMatch = trimmed.match(/^type\s+(\w+)\s*$/);
|
|
126
|
-
if (typeMatch) {
|
|
127
|
-
symbols.types.push({
|
|
128
|
-
name: typeMatch[1],
|
|
129
|
-
properties: propertiesIn(lines, collectBody(lines, fences, index, indent), clauseKeywords),
|
|
130
|
-
line: index,
|
|
131
|
-
});
|
|
132
|
-
continue;
|
|
133
|
-
}
|
|
134
|
-
const policyMatch = trimmed.match(/^policy\s+(\w+)\s*$/);
|
|
135
|
-
if (policyMatch) {
|
|
136
|
-
const requires = collectBody(lines, fences, index, indent)
|
|
137
|
-
.filter((i) => !fences[i])
|
|
138
|
-
.map((i) => lines[i].trim());
|
|
139
|
-
symbols.policies.push({ name: policyMatch[1], requires, line: index });
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
const eventMatch = eventLines[index].trim().match(/^(?:produces\s+)?event\s+(\w+)(?:\s+generation\s+(\d+))?\s*$/);
|
|
143
|
-
if (eventMatch) {
|
|
144
|
-
symbols.events.push({
|
|
145
|
-
name: eventMatch[1],
|
|
146
|
-
...(eventMatch[2] ? { generation: Number(eventMatch[2]) } : {}),
|
|
147
|
-
inline: trimmed.startsWith('produces '),
|
|
148
|
-
properties: propertiesIn(trimmed.startsWith('produces ') ? eventPropertyLines : eventLines, directBody(eventLines, eventFences, index, indent), eventReserved),
|
|
149
|
-
line: index,
|
|
150
|
-
});
|
|
151
|
-
continue;
|
|
152
|
-
}
|
|
153
|
-
const commandMatch = eventLines[index].trim().match(/^command\s+(\w+)\s*$/);
|
|
154
|
-
if (commandMatch) {
|
|
155
|
-
// A command property is a leaf, not an indentation owner. Share the parser-shaped
|
|
156
|
-
// body with properties, productions, advice and destination hints.
|
|
157
|
-
const body = directBody(lines, fences, index, indent);
|
|
158
|
-
const productionHeaders = body.filter(line => /^\s*produces\b/.test(lines[line]));
|
|
159
|
-
symbols.commands.push({
|
|
160
|
-
name: commandMatch[1],
|
|
161
|
-
properties: propertiesIn(lines, body.filter(line => lines[line].trim() !== 'validate csharp'), commandReserved),
|
|
162
|
-
productionHeaders,
|
|
163
|
-
produces: productionHeaders.flatMap(line => {
|
|
164
|
-
const header = eventLines[line].trim();
|
|
165
|
-
const inline = /^produces\s+event\b/.test(header);
|
|
166
|
-
const conditional = /^produces\s+when\b/.test(header);
|
|
167
|
-
const eventLine = conditional ? directBody(eventLines, eventFences, line, indentOf(eventLines[line]))[0] : line;
|
|
168
|
-
if (eventLine === undefined)
|
|
169
|
-
return [];
|
|
170
|
-
const name = conditional ? eventLines[eventLine].trim() : header.match(inline ? /^produces\s+event\s+([A-Za-z_]\w*)(?:\s+generation\s+\d+)?\s*$/ : /^produces\s+([A-Z]\w*)\s*$/)?.[1];
|
|
171
|
-
if (name === undefined || !/^[A-Za-z_]\w*$/.test(name))
|
|
172
|
-
return [];
|
|
173
|
-
const children = directBody(eventLines, eventFences, eventLine, indentOf(eventLines[eventLine]));
|
|
174
|
-
const targets = children.map(index => eventLines[index].trim().match(/^for(?:\s+(.*))?$/)).filter(match => match !== null);
|
|
175
|
-
// Empty or repeated targets are uncertain, not implicit destinations.
|
|
176
|
-
const target = targets.length === 0 ? undefined : targets.length === 1 ? targets[0][1] ?? '' : '';
|
|
177
|
-
const mappings = children.flatMap(index => {
|
|
178
|
-
const match = eventLines[index].trim().match(inline ? /^(@?[a-z_]\w*)\s+[\w.[\]?]+\s*=(?!=|>)\s*(.+)$/ : /^(@?[\w.]+)\s*=(?!=|>)\s*(.+)$/);
|
|
179
|
-
return match === null ? [] : [{ name: match[1].replace(/^@/, ''), source: match[2], line: index }];
|
|
180
|
-
});
|
|
181
|
-
return [{ name, inline, conditional, line, target, mappings }];
|
|
182
|
-
}),
|
|
183
|
-
reads: body.filter((line) => !fences[line])
|
|
184
|
-
.map((line) => ({ line, match: lines[line].match(readPattern) }))
|
|
185
|
-
.filter((entry) => entry.match !== null)
|
|
186
|
-
.map(({ line, match }) => ({
|
|
187
|
-
view: match[1],
|
|
188
|
-
...(match[2] ? { alias: match[2] } : {}),
|
|
189
|
-
...(match[3] ? { by: match[3] } : {}),
|
|
190
|
-
line,
|
|
191
|
-
})),
|
|
192
|
-
line: index,
|
|
193
|
-
});
|
|
194
|
-
continue;
|
|
195
|
-
}
|
|
196
|
-
// The return type shape is the compiler's, dots and all - QueryParser's
|
|
197
|
-
// ^query\s+([A-Za-z_]\w*)\s*=>\s*(observable\s+)?([\w.]+(?:\[\])?\??)$. A narrower one here
|
|
198
|
-
// silently drops the query from the symbol table, and with it every check and completion that
|
|
199
|
-
// reads from it.
|
|
200
|
-
const queryMatch = trimmed.match(/^query\s+(\w+)\s*=>\s*(?:observable\s+)?([\w.]+(?:\[\])?\??)\s*$/);
|
|
201
|
-
if (queryMatch) {
|
|
202
|
-
// The return type names a read model, which no construct declares — only the
|
|
203
|
-
// 'by' and 'filter' parameters resolve against the document's own types.
|
|
204
|
-
const parameters = collectBody(lines, fences, index, indent)
|
|
205
|
-
.map((i) => ({ index: i, match: lines[i].match(queryParameterPattern) }))
|
|
206
|
-
.filter((entry) => entry.match !== null)
|
|
207
|
-
.map(({ index: line, match }) => ({
|
|
208
|
-
name: match[1],
|
|
209
|
-
type: match[2],
|
|
210
|
-
isIdentifier: false,
|
|
211
|
-
line,
|
|
212
|
-
}));
|
|
213
|
-
symbols.queries.push({
|
|
214
|
-
name: queryMatch[1],
|
|
215
|
-
returnType: queryMatch[2],
|
|
216
|
-
parameters,
|
|
217
|
-
line: index,
|
|
218
|
-
});
|
|
219
|
-
continue;
|
|
220
|
-
}
|
|
221
|
-
const screenMatch = trimmed.match(/^screen\s+(\w+)\s*$/);
|
|
222
|
-
if (screenMatch) {
|
|
223
|
-
symbols.screens.push({ name: screenMatch[1], line: index });
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
const triggerMatch = trimmed.match(/^trigger\s+(\w+)\s*$/);
|
|
227
|
-
if (triggerMatch && indent === 0) {
|
|
228
|
-
symbols.triggers.push({ name: triggerMatch[1], line: index });
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return symbols;
|
|
232
|
-
}
|
|
233
|
-
// The symbols of several documents as one - what an application spread over files declares. Lines refer to
|
|
234
|
-
// the document each symbol came from, so the result names things; it does not locate them.
|
|
235
|
-
export function mergeSymbols(...documents) {
|
|
236
|
-
return {
|
|
237
|
-
imports: documents.flatMap((document) => document.imports),
|
|
238
|
-
concepts: documents.flatMap((document) => document.concepts),
|
|
239
|
-
types: documents.flatMap((document) => document.types),
|
|
240
|
-
policies: documents.flatMap((document) => document.policies),
|
|
241
|
-
events: documents.flatMap((document) => document.events),
|
|
242
|
-
commands: documents.flatMap((document) => document.commands),
|
|
243
|
-
queries: documents.flatMap((document) => document.queries),
|
|
244
|
-
screens: documents.flatMap((document) => document.screens),
|
|
245
|
-
triggers: documents.flatMap((document) => document.triggers),
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
export function knownEventNames(symbols) {
|
|
249
|
-
return [
|
|
250
|
-
...symbols.events.map((event) => event.name),
|
|
251
|
-
...symbols.imports.map((imported) => imported.shortName),
|
|
252
|
-
];
|
|
253
|
-
}
|
|
254
|
-
// The built-in host signals, which have no declaration to scan for because every application has them.
|
|
255
|
-
export const builtInTriggerNames = ['Startup', 'Shutdown'];
|
|
256
|
-
// What a reaction's `when` may name: an event, a declared trigger, or a host signal. The compiler resolves
|
|
257
|
-
// the three in that order, and the editor offers them the same way rather than guessing which was meant.
|
|
258
|
-
export function knownTriggerNames(symbols) {
|
|
259
|
-
return [
|
|
260
|
-
...knownEventNames(symbols),
|
|
261
|
-
...symbols.triggers.map((trigger) => trigger.name),
|
|
262
|
-
...builtInTriggerNames,
|
|
263
|
-
];
|
|
264
|
-
}
|
|
265
|
-
// Everything a property type reference can resolve to — the primitives, the declared
|
|
266
|
-
// concepts and types, and the short names of the imports.
|
|
267
|
-
export function knownTypeNames(symbols, primitives) {
|
|
268
|
-
return [
|
|
269
|
-
...primitives,
|
|
270
|
-
...symbols.concepts.map((concept) => concept.name),
|
|
271
|
-
...symbols.types.map((type) => type.name),
|
|
272
|
-
...symbols.imports.map((imported) => imported.shortName),
|
|
273
|
-
];
|
|
274
|
-
}
|
|
275
|
-
//# sourceMappingURL=symbols.js.map
|
package/d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,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAClD,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;QACzC,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC;KAC3D,CAAC;AACN,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
export const screenplayDarkThemeName = 'screenplay-dark';
|
|
4
|
-
export const screenplayDark = {
|
|
5
|
-
base: 'vs-dark',
|
|
6
|
-
inherit: true,
|
|
7
|
-
rules: [
|
|
8
|
-
{ token: 'keyword.play', foreground: 'C586C0' },
|
|
9
|
-
{ token: 'keyword.tag.play', foreground: '569CD6', fontStyle: 'italic' },
|
|
10
|
-
{ token: 'keyword.type.play', foreground: '4FC1FF', fontStyle: 'bold' },
|
|
11
|
-
{ token: 'type.play', foreground: '4EC9B0' },
|
|
12
|
-
{ token: 'type.identifier.play', foreground: '4EC9B0' },
|
|
13
|
-
{ token: 'identifier.play', foreground: '9CDCFE' },
|
|
14
|
-
{ token: 'annotation.play', foreground: 'DCDCAA' },
|
|
15
|
-
{ token: 'variable.predefined.play', foreground: 'D7BA7D' },
|
|
16
|
-
{ token: 'string.play', foreground: 'CE9178' },
|
|
17
|
-
{ token: 'string.link.play', foreground: 'CE9178', fontStyle: 'underline' },
|
|
18
|
-
{ token: 'string.invalid.play', foreground: 'F44747' },
|
|
19
|
-
{ token: 'string.quote.play', foreground: '6A9955' },
|
|
20
|
-
{ token: 'number.play', foreground: 'B5CEA8' },
|
|
21
|
-
{ token: 'number.float.play', foreground: 'B5CEA8' },
|
|
22
|
-
{ token: 'comment.play', foreground: '6A9955', fontStyle: 'italic' },
|
|
23
|
-
{ token: 'operator.play', foreground: 'D4D4D4' },
|
|
24
|
-
{ token: 'delimiter.play', foreground: 'CCCCCC' },
|
|
25
|
-
],
|
|
26
|
-
colors: {
|
|
27
|
-
'editor.background': '#1E1E1E',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=screenplay-dark.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screenplay-dark.js","sourceRoot":"","sources":["../../themes/screenplay-dark.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAIrG,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;AAEzD,MAAM,CAAC,MAAM,cAAc,GAAgC;IACvD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE;QACH,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC/C,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QACxE,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE;QACvE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC5C,EAAE,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE;QACvD,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE;QAClD,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE;QAClD,EAAE,KAAK,EAAE,0BAA0B,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC3D,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC9C,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE;QAC3E,EAAE,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,QAAQ,EAAE;QACtD,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE;QACpD,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC9C,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE;QACpD,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QACpE,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE;QAChD,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACpD;IACD,MAAM,EAAE;QACJ,mBAAmB,EAAE,SAAS;KACjC;CACJ,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
export const screenplayLightThemeName = 'screenplay-light';
|
|
4
|
-
export const screenplayLight = {
|
|
5
|
-
base: 'vs',
|
|
6
|
-
inherit: true,
|
|
7
|
-
rules: [
|
|
8
|
-
{ token: 'keyword.play', foreground: 'AF00DB' },
|
|
9
|
-
{ token: 'keyword.tag.play', foreground: '0000FF', fontStyle: 'italic' },
|
|
10
|
-
{ token: 'keyword.type.play', foreground: '0070C1', fontStyle: 'bold' },
|
|
11
|
-
{ token: 'type.play', foreground: '267F99' },
|
|
12
|
-
{ token: 'type.identifier.play', foreground: '267F99' },
|
|
13
|
-
{ token: 'identifier.play', foreground: '001080' },
|
|
14
|
-
{ token: 'annotation.play', foreground: '795E26' },
|
|
15
|
-
{ token: 'variable.predefined.play', foreground: 'B45309' },
|
|
16
|
-
{ token: 'string.play', foreground: 'A31515' },
|
|
17
|
-
{ token: 'string.link.play', foreground: 'A31515', fontStyle: 'underline' },
|
|
18
|
-
{ token: 'string.invalid.play', foreground: 'CD3131' },
|
|
19
|
-
{ token: 'string.quote.play', foreground: '008000' },
|
|
20
|
-
{ token: 'number.play', foreground: '098658' },
|
|
21
|
-
{ token: 'number.float.play', foreground: '098658' },
|
|
22
|
-
{ token: 'comment.play', foreground: '008000', fontStyle: 'italic' },
|
|
23
|
-
{ token: 'operator.play', foreground: '000000' },
|
|
24
|
-
{ token: 'delimiter.play', foreground: '000000' },
|
|
25
|
-
],
|
|
26
|
-
colors: {
|
|
27
|
-
'editor.background': '#FFFFFF',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=screenplay-light.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screenplay-light.js","sourceRoot":"","sources":["../../themes/screenplay-light.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAIrG,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAAkB,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAgC;IACxD,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,KAAK,EAAE;QACH,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC/C,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QACxE,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE;QACvE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC5C,EAAE,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE;QACvD,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE;QAClD,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE;QAClD,EAAE,KAAK,EAAE,0BAA0B,EAAE,UAAU,EAAE,QAAQ,EAA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