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