@podlite/textmate 0.0.0-stage → 0.0.2
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/CHANGELOG.podlite +8 -0
- package/LICENSE +22 -0
- package/README.md +55 -2
- package/esm/grammar.d.ts +26 -0
- package/esm/grammar.js +473 -0
- package/esm/grammar.js.map +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -0
- package/lib/grammar.d.ts +26 -0
- package/lib/grammar.js +476 -0
- package/lib/grammar.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -0
- package/lib/podlite.tmLanguage.json +4905 -0
- package/package.json +56 -3
package/lib/grammar.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface GrammarCapture {
|
|
2
|
+
name?: string;
|
|
3
|
+
patterns?: GrammarRule[];
|
|
4
|
+
}
|
|
5
|
+
export type GrammarCaptures = Record<string, GrammarCapture>;
|
|
6
|
+
export interface GrammarRule {
|
|
7
|
+
name?: string;
|
|
8
|
+
contentName?: string;
|
|
9
|
+
match?: string;
|
|
10
|
+
begin?: string;
|
|
11
|
+
end?: string;
|
|
12
|
+
captures?: GrammarCaptures;
|
|
13
|
+
beginCaptures?: GrammarCaptures;
|
|
14
|
+
endCaptures?: GrammarCaptures;
|
|
15
|
+
patterns?: GrammarRule[];
|
|
16
|
+
include?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PodliteGrammar {
|
|
19
|
+
name: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
scopeName: string;
|
|
22
|
+
aliases: string[];
|
|
23
|
+
patterns: GrammarRule[];
|
|
24
|
+
repository: Record<string, GrammarRule>;
|
|
25
|
+
}
|
|
26
|
+
export declare const podliteGrammar: PodliteGrammar;
|
package/lib/grammar.js
ADDED
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// A TextMate grammar is a JSON document. It is kept as TypeScript so it is typed and
|
|
3
|
+
// can be built from small parts; every pattern is a plain string, so the object
|
|
4
|
+
// serialises to JSON as it is.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.podliteGrammar = void 0;
|
|
7
|
+
const R = String.raw;
|
|
8
|
+
// The identifier of the specification: a letter or underscore, then letters, digits
|
|
9
|
+
// and underscores; a hyphen or apostrophe only before a letter
|
|
10
|
+
const NAME = R `[\p{L}_][\p{L}\p{Nd}_]*(?:['-][\p{L}_][\p{L}\p{Nd}_]*)*`;
|
|
11
|
+
const AFTER_NAME = R `(?=[ \t]|$)`;
|
|
12
|
+
// The start of a line where some directive or block marker begins. A table rule such
|
|
13
|
+
// as ====|==== does not count: an identifier has to follow the sign
|
|
14
|
+
const DIRECTIVE_LINE = R `^(?=[ \t]*=[\p{L}_])`;
|
|
15
|
+
const BLANK_LINE = R `^(?=[ \t]*$)`;
|
|
16
|
+
// Shiki never shows the grammar an empty line, so a body that should end at a blank
|
|
17
|
+
// line can end only at a line of spaces or at the next directive
|
|
18
|
+
const END_PARAGRAPH = `${DIRECTIVE_LINE}|${BLANK_LINE}`;
|
|
19
|
+
const NEVER = '(?!)';
|
|
20
|
+
const SEMANTIC_NAME = R `[\p{Lu}_][\p{Lu}\p{Nd}_]*(?:['-][\p{Lu}_][\p{Lu}\p{Nd}_]*)*`;
|
|
21
|
+
const MIXED_CASE_NAME = R `(?=[\p{L}\p{Nd}_'-]*\p{Ll})(?=[\p{L}\p{Nd}_'-]*\p{Lu})${NAME}`;
|
|
22
|
+
const RAW_NAMES = {
|
|
23
|
+
// fixture, assert and resource are the verbatim children of =test (specification 3.0)
|
|
24
|
+
standard: 'data-table|code|data|formula|markdown|fixture|assert|resource',
|
|
25
|
+
semantic: false,
|
|
26
|
+
// named blocks, whose body goes to a plug-in
|
|
27
|
+
custom: MIXED_CASE_NAME,
|
|
28
|
+
};
|
|
29
|
+
const COMMENT_NAMES = { standard: 'comment', semantic: false, custom: NEVER };
|
|
30
|
+
const TABLE_NAMES = { standard: 'table', semantic: false, custom: NEVER };
|
|
31
|
+
const PICTURE_NAMES = { standard: 'picture', semantic: false, custom: NEVER };
|
|
32
|
+
const TEXT_NAMES = {
|
|
33
|
+
standard: R `pod|para|nested|defn|input|output|toc|row|cell|test|item\d*|head\d+`,
|
|
34
|
+
semantic: true,
|
|
35
|
+
custom: NAME,
|
|
36
|
+
};
|
|
37
|
+
// Groups of a marker line: 1 indent, 2 directive word (or the bare sign), 3 the name,
|
|
38
|
+
// 4 to 6 the name by kind, 7 the rest of the line
|
|
39
|
+
const marker = (directive, names) => R `^([ \t]*)(${directive})` +
|
|
40
|
+
(directive === '=' ? '' : R `[ \t]+`) +
|
|
41
|
+
`((${names.standard})|(${names.semantic ? SEMANTIC_NAME : NEVER})|(${names.custom}))` +
|
|
42
|
+
AFTER_NAME +
|
|
43
|
+
'(.*)$';
|
|
44
|
+
const markerCaptures = (keyword, rest) => ({
|
|
45
|
+
2: { name: keyword },
|
|
46
|
+
4: { name: 'entity.name.tag.standard.podlite' },
|
|
47
|
+
5: { name: 'entity.name.tag.semantic.podlite' },
|
|
48
|
+
6: { name: 'entity.name.tag.custom.podlite' },
|
|
49
|
+
7: rest,
|
|
50
|
+
});
|
|
51
|
+
const DIRECTIVE = 'keyword.control.directive.podlite';
|
|
52
|
+
const SIGN = 'punctuation.definition.tag.podlite';
|
|
53
|
+
const ATTRIBUTES = { patterns: [{ include: '#attributes' }] };
|
|
54
|
+
const closerCaptures = {
|
|
55
|
+
2: { name: DIRECTIVE },
|
|
56
|
+
3: { name: 'entity.name.tag.podlite' },
|
|
57
|
+
};
|
|
58
|
+
// A verbatim body closes at its name written whole, at an indent no deeper than the
|
|
59
|
+
// opener's, as the parser of @podlite/schema decides on the cases it agrees with
|
|
60
|
+
const VERBATIM_CLOSER = R `^(?!\1[ \t])([ \t]*)(=end)[ \t]+(\3)(?=[ \t]|$)`;
|
|
61
|
+
// Other delimited blocks close at their name with any indent, as the parser's general rule
|
|
62
|
+
const CLOSER = R `^([ \t]*)(=end)[ \t]+(\3)(?=[ \t]|$)`;
|
|
63
|
+
const header = { include: '#header' };
|
|
64
|
+
const rawLine = { match: '.+', name: 'markup.raw.block.podlite' };
|
|
65
|
+
const commentLine = { match: '.+', name: 'comment.block.podlite' };
|
|
66
|
+
// longest first, so <<< is never read as < followed by <<
|
|
67
|
+
const DELIMITERS = [
|
|
68
|
+
{ key: '4', open: '<<<<', close: '>>>>' },
|
|
69
|
+
{ key: '3', open: '<<<', close: '>>>' },
|
|
70
|
+
{ key: '2', open: '<<', close: '>>' },
|
|
71
|
+
{ key: '1', open: '<', close: '>' },
|
|
72
|
+
{ key: 'g', open: '«', close: '»' },
|
|
73
|
+
];
|
|
74
|
+
const exactOpen = (d) => (d.key === 'g' ? '«' : R `(?<!<)${d.open}(?!<)`);
|
|
75
|
+
// A run of closing angles closes, nearest first, whatever is still open (specification 3.0),
|
|
76
|
+
// so a closer is matched by its width alone: in B<a I<b>> the first > closes I, the second B
|
|
77
|
+
const exactClose = (d) => (d.key === 'g' ? '»' : d.close);
|
|
78
|
+
const CODE_KINDS = [
|
|
79
|
+
{ letters: 'B', name: 'markup.bold.podlite', content: 'markup' },
|
|
80
|
+
{ letters: 'I', name: 'markup.italic.podlite', content: 'markup' },
|
|
81
|
+
{ letters: 'U', name: 'markup.underline.podlite', content: 'markup' },
|
|
82
|
+
{ letters: 'O', name: 'markup.strikethrough.podlite', content: 'markup' },
|
|
83
|
+
{ letters: 'KT', name: 'markup.inline.raw.podlite', content: 'markup' },
|
|
84
|
+
{ letters: 'C', name: 'markup.inline.raw.podlite', content: 'plain' },
|
|
85
|
+
// V changes how its content is read, not how it looks
|
|
86
|
+
{ letters: 'V', content: 'plain' },
|
|
87
|
+
{ letters: 'Z', name: 'comment.block.podlite', content: 'plain' },
|
|
88
|
+
{ letters: 'E', name: 'constant.character.entity.podlite', content: 'markup' },
|
|
89
|
+
{ letters: 'AR', name: 'variable.other.podlite', content: 'markup' },
|
|
90
|
+
// G guards its content from being shown, it is not a comment; Q and Y are reserved and,
|
|
91
|
+
// written anyway, are read as markup codes (specification 3.0)
|
|
92
|
+
{ letters: 'DFGHJMNPQSXY', name: 'meta.markup.podlite', content: 'markup' },
|
|
93
|
+
];
|
|
94
|
+
const CODE_SIGN = 'punctuation.definition.markup.podlite';
|
|
95
|
+
const CONTEXTS = [
|
|
96
|
+
{ key: 'paragraph', recover: END_PARAGRAPH },
|
|
97
|
+
{ key: 'delimited', recover: DIRECTIVE_LINE },
|
|
98
|
+
];
|
|
99
|
+
const codeRule = (kind, d, ctx) => ({
|
|
100
|
+
name: kind.name,
|
|
101
|
+
begin: `([${kind.letters}])(${exactOpen(d)})`,
|
|
102
|
+
end: `(${exactClose(d)})|(?:${ctx.recover})`,
|
|
103
|
+
beginCaptures: { 1: { name: CODE_SIGN }, 2: { name: CODE_SIGN } },
|
|
104
|
+
endCaptures: { 1: { name: CODE_SIGN } },
|
|
105
|
+
patterns: [{ include: `#brackets-${d.key}-${ctx.key}` }].concat(kind.content === 'markup' ? [{ include: `#inline-${ctx.key}` }] : []),
|
|
106
|
+
});
|
|
107
|
+
// Same-width angles inside a code are text, but they have to pair up
|
|
108
|
+
const bracketRule = (d, ctx) => ({
|
|
109
|
+
begin: exactOpen(d),
|
|
110
|
+
end: `${exactClose(d)}|(?:${ctx.recover})`,
|
|
111
|
+
patterns: [{ include: `#brackets-${d.key}-${ctx.key}` }],
|
|
112
|
+
});
|
|
113
|
+
// L and W: the label runs to the first bar outside nested codes, the address to the
|
|
114
|
+
// first space followed by a colon, the attributes to the closer
|
|
115
|
+
const LINK_LETTERS = 'LW';
|
|
116
|
+
const LINK_TARGET = 'markup.underline.link.podlite';
|
|
117
|
+
const LINK_LABEL = 'string.other.link.podlite';
|
|
118
|
+
// A TextMate lookahead cannot recurse, so codes inside a link label are matched by a pattern
|
|
119
|
+
// built to a fixed depth of angles, each angle of a wide delimiter counting as one; a label
|
|
120
|
+
// nested deeper is read as an address
|
|
121
|
+
const LABEL_NESTING = 4;
|
|
122
|
+
const nestedPattern = (open, close, depth) => depth <= 1
|
|
123
|
+
? `(?:${open}[^${open}${close}]*${close})`
|
|
124
|
+
: `(?:${open}(?:[^${open}${close}]|${nestedPattern(open, close, depth - 1)})*${close})`;
|
|
125
|
+
const linkRules = (d, ctx) => {
|
|
126
|
+
const close = exactClose(d);
|
|
127
|
+
const text = d.key === 'g' ? R `(?:(?![ \t]:)[^«»|])` : R `(?:(?![ \t]:)[^<>|])`;
|
|
128
|
+
const nested = d.key === 'g' ? nestedPattern('«', '»', LABEL_NESTING) : nestedPattern('<', '>', LABEL_NESTING);
|
|
129
|
+
const address = {
|
|
130
|
+
begin: R `(?<=[^ \t])|^|(?=\S)`,
|
|
131
|
+
end: R `(?=[ \t]+:)|(?=${close})|(?:${ctx.recover})`,
|
|
132
|
+
contentName: LINK_TARGET,
|
|
133
|
+
};
|
|
134
|
+
const tail = {
|
|
135
|
+
begin: R `(?=[ \t]+:)`,
|
|
136
|
+
end: `(?=${close})|(?:${ctx.recover})`,
|
|
137
|
+
patterns: [{ include: '#attributes' }],
|
|
138
|
+
};
|
|
139
|
+
const inner = (rest) => [{ include: `#brackets-${d.key}-${ctx.key}` }, ...rest];
|
|
140
|
+
return [
|
|
141
|
+
{
|
|
142
|
+
// a bar before the closer and before any attribute: the link has a label
|
|
143
|
+
begin: `([${LINK_LETTERS}])(${exactOpen(d)})(?=(?:${text}|${nested})*\\|)`,
|
|
144
|
+
end: `(${close})|(?:${ctx.recover})`,
|
|
145
|
+
beginCaptures: { 1: { name: CODE_SIGN }, 2: { name: CODE_SIGN } },
|
|
146
|
+
endCaptures: { 1: { name: CODE_SIGN } },
|
|
147
|
+
patterns: [
|
|
148
|
+
{
|
|
149
|
+
begin: R `\G`,
|
|
150
|
+
end: R `(\|)|(?=${close})|(?:${ctx.recover})`,
|
|
151
|
+
endCaptures: { 1: { name: 'punctuation.separator.link.podlite' } },
|
|
152
|
+
contentName: LINK_LABEL,
|
|
153
|
+
patterns: inner([{ include: `#inline-${ctx.key}` }]),
|
|
154
|
+
},
|
|
155
|
+
{ ...address, begin: R `(?<=\|)`, patterns: inner([]) },
|
|
156
|
+
tail,
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
begin: `([${LINK_LETTERS}])(${exactOpen(d)})`,
|
|
161
|
+
end: `(${close})|(?:${ctx.recover})`,
|
|
162
|
+
beginCaptures: { 1: { name: CODE_SIGN }, 2: { name: CODE_SIGN } },
|
|
163
|
+
endCaptures: { 1: { name: CODE_SIGN } },
|
|
164
|
+
patterns: [{ ...address, begin: R `\G`, patterns: inner([]) }, tail],
|
|
165
|
+
},
|
|
166
|
+
];
|
|
167
|
+
};
|
|
168
|
+
const inlineRules = (ctx) => ({
|
|
169
|
+
patterns: DELIMITERS.flatMap(d => [...linkRules(d, ctx), ...CODE_KINDS.map(kind => codeRule(kind, d, ctx))]),
|
|
170
|
+
});
|
|
171
|
+
// --- attributes -----------------------------------------------------------------
|
|
172
|
+
const attributes = {
|
|
173
|
+
patterns: [
|
|
174
|
+
{
|
|
175
|
+
begin: R `(:)(!)?([\p{L}_][\p{L}\p{Nd}_-]*)`,
|
|
176
|
+
beginCaptures: {
|
|
177
|
+
1: { name: 'entity.other.attribute-name.podlite' },
|
|
178
|
+
2: { name: 'keyword.operator.negation.podlite' },
|
|
179
|
+
3: { name: 'entity.other.attribute-name.podlite' },
|
|
180
|
+
},
|
|
181
|
+
// the value, if any, follows the name with nothing in between
|
|
182
|
+
end: R `(?!\G)|(?=[ \t])|$`,
|
|
183
|
+
patterns: [
|
|
184
|
+
{ match: R `\G<[^>]*>`, name: 'string.unquoted.podlite' },
|
|
185
|
+
{ match: R `\G«[^»]*»`, name: 'string.unquoted.podlite' },
|
|
186
|
+
{ match: R `\G\(\s*[-+]?\d+(?:\.\d+)?\s*\)`, name: 'constant.numeric.podlite' },
|
|
187
|
+
{ match: R `\G\(\s*(?:True|False)\s*\)`, name: 'constant.language.boolean.podlite' },
|
|
188
|
+
{ match: R `\G\(\s*'(?:[^'\\]|\\.)*'\s*\)`, name: 'string.quoted.single.podlite' },
|
|
189
|
+
{ match: R `\G\(\s*"(?:[^"\\]|\\.)*"\s*\)`, name: 'string.quoted.double.podlite' },
|
|
190
|
+
{ match: R `\G\([^)]*\)`, name: 'meta.structure.list.podlite' },
|
|
191
|
+
{ match: R `\G'(?:[^'\\]|\\.)*'`, name: 'string.quoted.single.podlite' },
|
|
192
|
+
{ match: R `\G"(?:[^"\\]|\\.)*"`, name: 'string.quoted.double.podlite' },
|
|
193
|
+
{ match: R `\G「[^」]*」`, name: 'string.quoted.other.podlite' },
|
|
194
|
+
{ match: R `\G\{[^}]*\}`, name: 'meta.structure.dictionary.podlite' },
|
|
195
|
+
],
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
};
|
|
199
|
+
// --- blocks ---------------------------------------------------------------------
|
|
200
|
+
const continuation = (rest) => ({
|
|
201
|
+
match: R `^([ \t]*)(=)(?=[ \t])(.*)$`,
|
|
202
|
+
captures: { 2: { name: 'punctuation.definition.continuation.podlite' }, 3: rest },
|
|
203
|
+
});
|
|
204
|
+
// The lines that go on with the settings of the marker line just above. \G holds only
|
|
205
|
+
// right after the marker line, so a later line of the same shape stays body text
|
|
206
|
+
const headerRule = (rest) => ({
|
|
207
|
+
begin: R `\G`,
|
|
208
|
+
end: R `^(?![ \t]*=[ \t])`,
|
|
209
|
+
patterns: [continuation(rest)],
|
|
210
|
+
});
|
|
211
|
+
const ending = (form, verbatim) => form === 'begin' ? (verbatim ? VERBATIM_CLOSER : CLOSER) : END_PARAGRAPH;
|
|
212
|
+
const keywordOf = (form) => (form === '=' ? SIGN : DIRECTIVE);
|
|
213
|
+
const directiveOf = (form) => (form === '=' ? '=' : `=${form}`);
|
|
214
|
+
// The rest of an abbreviated line is data, not settings
|
|
215
|
+
const restOf = (form, data) => (form === '=' ? data : ATTRIBUTES);
|
|
216
|
+
const rawBlock = (form) => ({
|
|
217
|
+
begin: marker(directiveOf(form), RAW_NAMES),
|
|
218
|
+
beginCaptures: markerCaptures(keywordOf(form), restOf(form, { name: 'markup.raw.block.podlite' })),
|
|
219
|
+
end: ending(form, true),
|
|
220
|
+
endCaptures: closerCaptures,
|
|
221
|
+
patterns: form === '=' ? [rawLine] : [header, rawLine],
|
|
222
|
+
});
|
|
223
|
+
const commentBlock = (form) => ({
|
|
224
|
+
begin: marker(directiveOf(form), COMMENT_NAMES),
|
|
225
|
+
beginCaptures: markerCaptures(keywordOf(form), restOf(form, { name: 'comment.block.podlite' })),
|
|
226
|
+
end: ending(form, true),
|
|
227
|
+
endCaptures: closerCaptures,
|
|
228
|
+
// a delimited comment holds other comments; any other marker inside is comment text
|
|
229
|
+
patterns: form === 'begin'
|
|
230
|
+
? [header, { include: '#comment-begin' }, commentLine]
|
|
231
|
+
: form === 'for'
|
|
232
|
+
? [header, commentLine]
|
|
233
|
+
: [],
|
|
234
|
+
});
|
|
235
|
+
const tableRule = (form) => {
|
|
236
|
+
const inside = form === 'begin' ? 'delimited' : 'paragraph';
|
|
237
|
+
return {
|
|
238
|
+
begin: marker(directiveOf(form), TABLE_NAMES),
|
|
239
|
+
beginCaptures: markerCaptures(keywordOf(form), restOf(form, { patterns: [{ include: `#table-row-${inside}` }] })),
|
|
240
|
+
end: ending(form, false),
|
|
241
|
+
endCaptures: closerCaptures,
|
|
242
|
+
patterns: [
|
|
243
|
+
...(form === '=' ? [] : [header]),
|
|
244
|
+
// rows and cells are recognised as they arrive; one context serves both table forms
|
|
245
|
+
...(form === 'begin' ? [{ include: '#delimited-blocks' }] : []),
|
|
246
|
+
{ include: '#cell-markers' },
|
|
247
|
+
{ include: '#stray-end' },
|
|
248
|
+
{ include: `#table-row-${inside}` },
|
|
249
|
+
],
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
const tableRow = (ctx) => ({
|
|
253
|
+
patterns: [
|
|
254
|
+
{
|
|
255
|
+
match: R `^[ \t]*(?=[-=_+|: \t]*[-=_]{2})[-=_+|: \t]+$`,
|
|
256
|
+
name: 'punctuation.separator.table.podlite',
|
|
257
|
+
},
|
|
258
|
+
{ match: R `\|`, name: 'punctuation.separator.table.podlite' },
|
|
259
|
+
{ include: `#inline-${ctx.key}` },
|
|
260
|
+
],
|
|
261
|
+
});
|
|
262
|
+
const SOURCE = 'string.unquoted.source.podlite';
|
|
263
|
+
const pictureRule = (form) => {
|
|
264
|
+
const inside = form === 'begin' ? 'delimited' : 'paragraph';
|
|
265
|
+
const stop = form === 'begin' ? R `^(?=[ \t]*=end[ \t])` : END_PARAGRAPH;
|
|
266
|
+
return {
|
|
267
|
+
begin: marker(directiveOf(form), PICTURE_NAMES),
|
|
268
|
+
beginCaptures: markerCaptures(keywordOf(form), restOf(form, { name: SOURCE })),
|
|
269
|
+
end: ending(form, false),
|
|
270
|
+
endCaptures: closerCaptures,
|
|
271
|
+
patterns: form === '='
|
|
272
|
+
? [{ include: `#inline-${inside}` }]
|
|
273
|
+
: [
|
|
274
|
+
header,
|
|
275
|
+
// the first line with text is the source; everything after it, up to the end, is the caption
|
|
276
|
+
{
|
|
277
|
+
begin: R `^[ \t]*(\S.*?)[ \t]*$`,
|
|
278
|
+
beginCaptures: { 1: { name: SOURCE } },
|
|
279
|
+
end: stop,
|
|
280
|
+
patterns: [{ include: `#inline-${inside}` }],
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
// Text a block shows: only the marker line carries the block's own scope, so an empty
|
|
286
|
+
// line, which shiki never passes on, cannot leave a heading painted over the next paragraph
|
|
287
|
+
const markerLine = (name, patterns = []) => ({
|
|
288
|
+
begin: R `\G`,
|
|
289
|
+
end: '$',
|
|
290
|
+
contentName: name,
|
|
291
|
+
patterns,
|
|
292
|
+
});
|
|
293
|
+
const textBlock = (form) => {
|
|
294
|
+
if (form === 'begin') {
|
|
295
|
+
return {
|
|
296
|
+
begin: marker('=begin', TEXT_NAMES),
|
|
297
|
+
beginCaptures: markerCaptures(DIRECTIVE, ATTRIBUTES),
|
|
298
|
+
end: CLOSER,
|
|
299
|
+
endCaptures: closerCaptures,
|
|
300
|
+
patterns: [header, { include: '#blocks' }, { include: '#inline-delimited' }],
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
if (form === 'for') {
|
|
304
|
+
return {
|
|
305
|
+
begin: marker('=for', TEXT_NAMES),
|
|
306
|
+
beginCaptures: markerCaptures(DIRECTIVE, ATTRIBUTES),
|
|
307
|
+
end: END_PARAGRAPH,
|
|
308
|
+
patterns: [header, { include: '#inline-paragraph' }],
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
return {
|
|
312
|
+
begin: R `^([ \t]*)(=)((${TEXT_NAMES.standard})|(${SEMANTIC_NAME})|(${NAME}))${AFTER_NAME}`,
|
|
313
|
+
beginCaptures: markerCaptures(SIGN, {}),
|
|
314
|
+
end: END_PARAGRAPH,
|
|
315
|
+
patterns: [{ include: '#inline-paragraph' }],
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
const headingLine = {
|
|
319
|
+
begin: R `^([ \t]*)(=)(head\d+)${AFTER_NAME}`,
|
|
320
|
+
beginCaptures: { 2: { name: SIGN }, 3: { name: 'entity.name.tag.standard.podlite' } },
|
|
321
|
+
end: END_PARAGRAPH,
|
|
322
|
+
patterns: [
|
|
323
|
+
markerLine('markup.heading.podlite', [{ include: '#inline-paragraph' }]),
|
|
324
|
+
{ include: '#inline-paragraph' },
|
|
325
|
+
],
|
|
326
|
+
};
|
|
327
|
+
const itemLine = {
|
|
328
|
+
begin: R `^([ \t]*)(=)(item\d*)${AFTER_NAME}(?:[ \t]+(\[[ xX]\]))?`,
|
|
329
|
+
beginCaptures: {
|
|
330
|
+
2: { name: SIGN },
|
|
331
|
+
3: { name: 'entity.name.tag.standard.podlite' },
|
|
332
|
+
4: { name: 'constant.language.task.podlite' },
|
|
333
|
+
},
|
|
334
|
+
end: END_PARAGRAPH,
|
|
335
|
+
patterns: [{ include: '#inline-paragraph' }],
|
|
336
|
+
};
|
|
337
|
+
const cellMarkers = {
|
|
338
|
+
patterns: [
|
|
339
|
+
{
|
|
340
|
+
begin: R `^([ \t]*)(=for)[ \t]+(row|cell)${AFTER_NAME}(.*)$`,
|
|
341
|
+
beginCaptures: { 2: { name: DIRECTIVE }, 3: { name: 'entity.name.tag.standard.podlite' }, 4: ATTRIBUTES },
|
|
342
|
+
end: END_PARAGRAPH,
|
|
343
|
+
patterns: [header, { include: '#inline-paragraph' }],
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
// the rest of an abbreviated row or cell is its text
|
|
347
|
+
begin: R `^([ \t]*)(=)(row|cell)${AFTER_NAME}`,
|
|
348
|
+
beginCaptures: { 2: { name: SIGN }, 3: { name: 'entity.name.tag.standard.podlite' } },
|
|
349
|
+
end: END_PARAGRAPH,
|
|
350
|
+
patterns: [{ include: '#inline-paragraph' }],
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
};
|
|
354
|
+
// =config, =set, =alias, =include, =boundary: directives, not blocks; each goes on over
|
|
355
|
+
// its continuation lines in its own way
|
|
356
|
+
const standalone = (word, operand, operandCaptures, rest) => ({
|
|
357
|
+
begin: R `^([ \t]*)(=${word})${AFTER_NAME}${operand}`,
|
|
358
|
+
beginCaptures: { 2: { name: DIRECTIVE }, ...operandCaptures },
|
|
359
|
+
end: R `^(?![ \t]*=[ \t])`,
|
|
360
|
+
patterns: [continuation(rest)],
|
|
361
|
+
});
|
|
362
|
+
const flowing = (word, operand, operandCaptures, body) => ({
|
|
363
|
+
begin: R `^([ \t]*)(=${word})${AFTER_NAME}${operand}`,
|
|
364
|
+
beginCaptures: { 2: { name: DIRECTIVE }, ...operandCaptures },
|
|
365
|
+
end: R `^(?![ \t]*=[ \t])`,
|
|
366
|
+
patterns: [
|
|
367
|
+
{ match: R `^[ \t]*(=)(?=[ \t])`, captures: { 1: { name: 'punctuation.definition.continuation.podlite' } } },
|
|
368
|
+
...body,
|
|
369
|
+
],
|
|
370
|
+
});
|
|
371
|
+
const INCLUDE_SOURCE = R `[A-Za-z][\w+.-]*:[^\s|]*`;
|
|
372
|
+
// attributes of the source: from a space followed by a colon to a bar outside quotes and brackets
|
|
373
|
+
const INCLUDE_ATTRIBUTES = R `(?:[ \t]+:(?:[^|'"(\[]|'[^']*'|"[^"]*"|\([^)]*\)|\[[^\]]*\])*)?`;
|
|
374
|
+
const directives = {
|
|
375
|
+
patterns: [
|
|
376
|
+
standalone('config', R `(?:[ \t]+(?:([A-Z]<>)|(${NAME})))?(.*)$`, {
|
|
377
|
+
3: { name: 'entity.name.tag.markup.podlite' },
|
|
378
|
+
4: { name: 'entity.name.tag.podlite' },
|
|
379
|
+
5: ATTRIBUTES,
|
|
380
|
+
}, ATTRIBUTES),
|
|
381
|
+
// a continuation of =set either brings more attributes or goes on with a value; a value
|
|
382
|
+
// and the replacement text of =alias may carry a markup code over to the next line, so
|
|
383
|
+
// they are read by the patterns of the directive, not inside a capture of one line
|
|
384
|
+
flowing('set', '', {}, [{ include: '#attributes' }, { include: '#inline-paragraph' }]),
|
|
385
|
+
flowing('alias', R `(?:[ \t]+(${NAME}))?`, { 3: { name: 'variable.other.alias.podlite' } }, [
|
|
386
|
+
{ include: '#inline-paragraph' },
|
|
387
|
+
]),
|
|
388
|
+
standalone('include',
|
|
389
|
+
// with a source scheme the source may carry attributes; without one the whole line is the selection
|
|
390
|
+
R `[ \t]+(?:(${INCLUDE_SOURCE})(${INCLUDE_ATTRIBUTES})(.*)|(.*))$`, {
|
|
391
|
+
3: { name: SOURCE },
|
|
392
|
+
4: ATTRIBUTES,
|
|
393
|
+
5: { name: 'string.unquoted.selector.podlite' },
|
|
394
|
+
6: { name: 'string.unquoted.selector.podlite' },
|
|
395
|
+
}, ATTRIBUTES),
|
|
396
|
+
standalone('boundary', '(.*)$', { 3: ATTRIBUTES }, ATTRIBUTES),
|
|
397
|
+
],
|
|
398
|
+
};
|
|
399
|
+
const strayEnd = {
|
|
400
|
+
match: R `^([ \t]*)(=end)[ \t]+(${NAME})${AFTER_NAME}`,
|
|
401
|
+
captures: { 2: { name: DIRECTIVE }, 3: { name: 'entity.name.tag.podlite' } },
|
|
402
|
+
};
|
|
403
|
+
// Delimited blocks, which can sit inside other delimited blocks
|
|
404
|
+
const delimitedBlocks = {
|
|
405
|
+
patterns: [
|
|
406
|
+
{ include: '#comment-begin' },
|
|
407
|
+
rawBlock('begin'),
|
|
408
|
+
tableRule('begin'),
|
|
409
|
+
pictureRule('begin'),
|
|
410
|
+
textBlock('begin'),
|
|
411
|
+
],
|
|
412
|
+
};
|
|
413
|
+
const blocks = {
|
|
414
|
+
patterns: [
|
|
415
|
+
{ include: '#delimited-blocks' },
|
|
416
|
+
commentBlock('for'),
|
|
417
|
+
rawBlock('for'),
|
|
418
|
+
tableRule('for'),
|
|
419
|
+
pictureRule('for'),
|
|
420
|
+
textBlock('for'),
|
|
421
|
+
{ include: '#directives' },
|
|
422
|
+
{ include: '#stray-end' },
|
|
423
|
+
commentBlock('='),
|
|
424
|
+
rawBlock('='),
|
|
425
|
+
tableRule('='),
|
|
426
|
+
pictureRule('='),
|
|
427
|
+
headingLine,
|
|
428
|
+
itemLine,
|
|
429
|
+
textBlock('='),
|
|
430
|
+
],
|
|
431
|
+
};
|
|
432
|
+
// At the root of a document an indented line opens a code block, unless it goes on with
|
|
433
|
+
// a paragraph. The parser runs the code on to a blank line; here it stops at a line
|
|
434
|
+
// without the indent too, because shiki hides the blank line and the rule would
|
|
435
|
+
// otherwise swallow the paragraph after it
|
|
436
|
+
const root = {
|
|
437
|
+
patterns: [
|
|
438
|
+
{ include: '#blocks' },
|
|
439
|
+
{
|
|
440
|
+
begin: R `^(?=[ \t]+\S)`,
|
|
441
|
+
end: R `^(?=\S)|${DIRECTIVE_LINE}|${BLANK_LINE}`,
|
|
442
|
+
patterns: [rawLine],
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
begin: R `^(?=\S)`,
|
|
446
|
+
end: END_PARAGRAPH,
|
|
447
|
+
patterns: [{ include: '#inline-paragraph' }],
|
|
448
|
+
},
|
|
449
|
+
],
|
|
450
|
+
};
|
|
451
|
+
const repository = {
|
|
452
|
+
root,
|
|
453
|
+
blocks,
|
|
454
|
+
'delimited-blocks': delimitedBlocks,
|
|
455
|
+
'comment-begin': commentBlock('begin'),
|
|
456
|
+
'cell-markers': cellMarkers,
|
|
457
|
+
directives,
|
|
458
|
+
'stray-end': strayEnd,
|
|
459
|
+
header: headerRule(ATTRIBUTES),
|
|
460
|
+
attributes,
|
|
461
|
+
};
|
|
462
|
+
for (const ctx of CONTEXTS) {
|
|
463
|
+
repository[`inline-${ctx.key}`] = inlineRules(ctx);
|
|
464
|
+
repository[`table-row-${ctx.key}`] = tableRow(ctx);
|
|
465
|
+
for (const d of DELIMITERS)
|
|
466
|
+
repository[`brackets-${d.key}-${ctx.key}`] = { patterns: [bracketRule(d, ctx)] };
|
|
467
|
+
}
|
|
468
|
+
exports.podliteGrammar = {
|
|
469
|
+
name: 'podlite',
|
|
470
|
+
displayName: 'Podlite',
|
|
471
|
+
scopeName: 'text.podlite',
|
|
472
|
+
aliases: ['pod6'],
|
|
473
|
+
patterns: [{ include: '#root' }],
|
|
474
|
+
repository,
|
|
475
|
+
};
|
|
476
|
+
//# sourceMappingURL=grammar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grammar.js","sourceRoot":"","sources":["../src/grammar.ts"],"names":[],"mappings":";AAAA,qFAAqF;AACrF,gFAAgF;AAChF,+BAA+B;;;AA+B/B,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,CAAA;AAEpB,oFAAoF;AACpF,+DAA+D;AAC/D,MAAM,IAAI,GAAG,CAAC,CAAA,yDAAyD,CAAA;AACvE,MAAM,UAAU,GAAG,CAAC,CAAA,aAAa,CAAA;AAEjC,qFAAqF;AACrF,oEAAoE;AACpE,MAAM,cAAc,GAA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GAAG,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAA;AAC9G,CAAC;AAEY,QAAA,cAAc,GAAmB;IAC5C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,cAAc;IACzB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAChC,UAAU;CACX,CAAA"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.podliteGrammar = void 0;
|
|
4
|
+
var grammar_1 = require("./grammar");
|
|
5
|
+
Object.defineProperty(exports, "podliteGrammar", { enumerable: true, get: function () { return grammar_1.podliteGrammar; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAAjC,yGAAA,cAAc,OAAA"}
|