@cssdoc/grammarkdown-tmlanguage 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +34 -0
- package/dist/index.d.mts +193 -0
- package/dist/index.mjs +118 -0
- package/grammarkdown.tmLanguage.json +84 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Danny Wahl
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @cssdoc/grammarkdown-tmlanguage
|
|
2
|
+
|
|
3
|
+
A small TextMate grammar for [grammarkdown](https://github.com/rbuckton/grammarkdown) — the
|
|
4
|
+
ECMAScript-style grammar notation used by TSDoc and by cssdoc's own doc-comment spec
|
|
5
|
+
(`CssDoc.grammarkdown`). It highlights productions, the `:` / `::` / `:::` separators, backtick
|
|
6
|
+
terminals, `<character-class>` tokens, `U+` code points, parameter and constraint brackets, and the
|
|
7
|
+
`but not` / `one of` / `lookahead` / `empty` keywords.
|
|
8
|
+
|
|
9
|
+
## Use with Shiki or VitePress
|
|
10
|
+
|
|
11
|
+
The default export is a Shiki `LanguageRegistration`, so it registers directly:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
// .vitepress/config.ts
|
|
15
|
+
import grammarkdown from "@cssdoc/grammarkdown-tmlanguage";
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
markdown: {
|
|
19
|
+
languages: [grammarkdown],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then tag fenced blocks with `grammarkdown`.
|
|
25
|
+
|
|
26
|
+
## Use the raw grammar
|
|
27
|
+
|
|
28
|
+
For editors or other TextMate consumers, the grammar is published as a plain file:
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
import grammar from "@cssdoc/grammarkdown-tmlanguage/grammarkdown.tmLanguage.json" with { type: "json" };
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Its scope name is `source.grammarkdown`.
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
//#region grammarkdown.tmLanguage.json.d.ts
|
|
2
|
+
declare let $schema: string;
|
|
3
|
+
declare let name: string;
|
|
4
|
+
declare let scopeName: string;
|
|
5
|
+
declare let fileTypes: string[];
|
|
6
|
+
declare let patterns: {
|
|
7
|
+
include: string;
|
|
8
|
+
}[];
|
|
9
|
+
declare namespace repository {
|
|
10
|
+
namespace comment {
|
|
11
|
+
export let match: string;
|
|
12
|
+
let name_1: string;
|
|
13
|
+
export { name_1 as name };
|
|
14
|
+
}
|
|
15
|
+
namespace prose {
|
|
16
|
+
let match_1: string;
|
|
17
|
+
export { match_1 as match };
|
|
18
|
+
let name_2: string;
|
|
19
|
+
export { name_2 as name };
|
|
20
|
+
}
|
|
21
|
+
namespace directive {
|
|
22
|
+
let match_2: string;
|
|
23
|
+
export { match_2 as match };
|
|
24
|
+
let name_3: string;
|
|
25
|
+
export { name_3 as name };
|
|
26
|
+
}
|
|
27
|
+
namespace production {
|
|
28
|
+
let match_3: string;
|
|
29
|
+
export { match_3 as match };
|
|
30
|
+
export let captures: {
|
|
31
|
+
"1": {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
"2": {
|
|
35
|
+
name: string;
|
|
36
|
+
patterns: {
|
|
37
|
+
include: string;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
"3": {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
namespace constraint {
|
|
46
|
+
export let begin: string;
|
|
47
|
+
export let end: string;
|
|
48
|
+
let name_4: string;
|
|
49
|
+
export { name_4 as name };
|
|
50
|
+
let patterns_1: ({
|
|
51
|
+
include: string;
|
|
52
|
+
match?: undefined;
|
|
53
|
+
name?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
match: string;
|
|
56
|
+
name: string;
|
|
57
|
+
include?: undefined;
|
|
58
|
+
})[];
|
|
59
|
+
export { patterns_1 as patterns };
|
|
60
|
+
}
|
|
61
|
+
namespace terminal {
|
|
62
|
+
let match_4: string;
|
|
63
|
+
export { match_4 as match };
|
|
64
|
+
let name_5: string;
|
|
65
|
+
export { name_5 as name };
|
|
66
|
+
}
|
|
67
|
+
namespace characterClass {
|
|
68
|
+
let match_5: string;
|
|
69
|
+
export { match_5 as match };
|
|
70
|
+
let name_6: string;
|
|
71
|
+
export { name_6 as name };
|
|
72
|
+
}
|
|
73
|
+
namespace codepoint {
|
|
74
|
+
let match_6: string;
|
|
75
|
+
export { match_6 as match };
|
|
76
|
+
let name_7: string;
|
|
77
|
+
export { name_7 as name };
|
|
78
|
+
}
|
|
79
|
+
namespace keywords {
|
|
80
|
+
let match_7: string;
|
|
81
|
+
export { match_7 as match };
|
|
82
|
+
let name_8: string;
|
|
83
|
+
export { name_8 as name };
|
|
84
|
+
}
|
|
85
|
+
namespace optional {
|
|
86
|
+
let match_8: string;
|
|
87
|
+
export { match_8 as match };
|
|
88
|
+
let name_9: string;
|
|
89
|
+
export { name_9 as name };
|
|
90
|
+
}
|
|
91
|
+
namespace nonterminal {
|
|
92
|
+
let match_9: string;
|
|
93
|
+
export { match_9 as match };
|
|
94
|
+
let name_10: string;
|
|
95
|
+
export { name_10 as name };
|
|
96
|
+
}
|
|
97
|
+
namespace parameters {
|
|
98
|
+
let match_10: string;
|
|
99
|
+
export { match_10 as match };
|
|
100
|
+
let name_11: string;
|
|
101
|
+
export { name_11 as name };
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
declare namespace __json_default_export {
|
|
105
|
+
export { $schema, name, scopeName, fileTypes, patterns, repository };
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/index.d.ts
|
|
109
|
+
/** The grammarkdown TextMate grammar, shaped as a Shiki `LanguageRegistration`. */
|
|
110
|
+
declare const grammarkdown: {
|
|
111
|
+
$schema: string;
|
|
112
|
+
name: string;
|
|
113
|
+
scopeName: string;
|
|
114
|
+
fileTypes: string[];
|
|
115
|
+
patterns: {
|
|
116
|
+
include: string;
|
|
117
|
+
}[];
|
|
118
|
+
repository: {
|
|
119
|
+
comment: {
|
|
120
|
+
match: string;
|
|
121
|
+
name: string;
|
|
122
|
+
};
|
|
123
|
+
prose: {
|
|
124
|
+
match: string;
|
|
125
|
+
name: string;
|
|
126
|
+
};
|
|
127
|
+
directive: {
|
|
128
|
+
match: string;
|
|
129
|
+
name: string;
|
|
130
|
+
};
|
|
131
|
+
production: {
|
|
132
|
+
match: string;
|
|
133
|
+
captures: {
|
|
134
|
+
"1": {
|
|
135
|
+
name: string;
|
|
136
|
+
};
|
|
137
|
+
"2": {
|
|
138
|
+
name: string;
|
|
139
|
+
patterns: {
|
|
140
|
+
include: string;
|
|
141
|
+
}[];
|
|
142
|
+
};
|
|
143
|
+
"3": {
|
|
144
|
+
name: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
constraint: {
|
|
149
|
+
begin: string;
|
|
150
|
+
end: string;
|
|
151
|
+
name: string;
|
|
152
|
+
patterns: ({
|
|
153
|
+
include: string;
|
|
154
|
+
match?: undefined;
|
|
155
|
+
name?: undefined;
|
|
156
|
+
} | {
|
|
157
|
+
match: string;
|
|
158
|
+
name: string;
|
|
159
|
+
include?: undefined;
|
|
160
|
+
})[];
|
|
161
|
+
};
|
|
162
|
+
terminal: {
|
|
163
|
+
match: string;
|
|
164
|
+
name: string;
|
|
165
|
+
};
|
|
166
|
+
characterClass: {
|
|
167
|
+
match: string;
|
|
168
|
+
name: string;
|
|
169
|
+
};
|
|
170
|
+
codepoint: {
|
|
171
|
+
match: string;
|
|
172
|
+
name: string;
|
|
173
|
+
};
|
|
174
|
+
keywords: {
|
|
175
|
+
match: string;
|
|
176
|
+
name: string;
|
|
177
|
+
};
|
|
178
|
+
optional: {
|
|
179
|
+
match: string;
|
|
180
|
+
name: string;
|
|
181
|
+
};
|
|
182
|
+
nonterminal: {
|
|
183
|
+
match: string;
|
|
184
|
+
name: string;
|
|
185
|
+
};
|
|
186
|
+
parameters: {
|
|
187
|
+
match: string;
|
|
188
|
+
name: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
//#endregion
|
|
193
|
+
export { __json_default_export as default, grammarkdown };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
//#region grammarkdown.tmLanguage.json
|
|
2
|
+
var grammarkdown_tmLanguage_default = {
|
|
3
|
+
$schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
4
|
+
name: "grammarkdown",
|
|
5
|
+
scopeName: "source.grammarkdown",
|
|
6
|
+
fileTypes: ["grammarkdown"],
|
|
7
|
+
patterns: [
|
|
8
|
+
{ "include": "#comment" },
|
|
9
|
+
{ "include": "#prose" },
|
|
10
|
+
{ "include": "#directive" },
|
|
11
|
+
{ "include": "#production" },
|
|
12
|
+
{ "include": "#constraint" },
|
|
13
|
+
{ "include": "#terminal" },
|
|
14
|
+
{ "include": "#characterClass" },
|
|
15
|
+
{ "include": "#codepoint" },
|
|
16
|
+
{ "include": "#keywords" },
|
|
17
|
+
{ "include": "#optional" },
|
|
18
|
+
{ "include": "#nonterminal" }
|
|
19
|
+
],
|
|
20
|
+
repository: {
|
|
21
|
+
"comment": {
|
|
22
|
+
"match": "//.*$",
|
|
23
|
+
"name": "comment.line.double-slash.grammarkdown"
|
|
24
|
+
},
|
|
25
|
+
"prose": {
|
|
26
|
+
"match": "^\\s*>.*$",
|
|
27
|
+
"name": "string.unquoted.prose.grammarkdown"
|
|
28
|
+
},
|
|
29
|
+
"directive": {
|
|
30
|
+
"match": "@(import|define|line|augments|noStrictParametricRedeclaration|noSyntacticPredicates)\\b",
|
|
31
|
+
"name": "keyword.control.directive.grammarkdown"
|
|
32
|
+
},
|
|
33
|
+
"production": {
|
|
34
|
+
"match": "^\\s*([A-Za-z][A-Za-z0-9]*)\\s*(\\[[^\\]]*\\])?\\s*(:::|::|:)",
|
|
35
|
+
"captures": {
|
|
36
|
+
"1": { "name": "entity.name.type.production.grammarkdown" },
|
|
37
|
+
"2": {
|
|
38
|
+
"name": "meta.parameter-list.grammarkdown",
|
|
39
|
+
"patterns": [{ "include": "#parameters" }]
|
|
40
|
+
},
|
|
41
|
+
"3": { "name": "keyword.operator.definition.grammarkdown" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"constraint": {
|
|
45
|
+
"begin": "\\[",
|
|
46
|
+
"end": "\\]",
|
|
47
|
+
"name": "meta.annotation.grammarkdown",
|
|
48
|
+
"patterns": [
|
|
49
|
+
{ "include": "#keywords" },
|
|
50
|
+
{ "include": "#terminal" },
|
|
51
|
+
{
|
|
52
|
+
"match": "[+~?]",
|
|
53
|
+
"name": "keyword.operator.parameter.grammarkdown"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"match": "[∈∉≠]|!=",
|
|
57
|
+
"name": "keyword.operator.assertion.grammarkdown"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"match": "\\b[A-Za-z][A-Za-z0-9]*\\b",
|
|
61
|
+
"name": "variable.parameter.grammarkdown"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"terminal": {
|
|
66
|
+
"match": "`[^`]*`",
|
|
67
|
+
"name": "constant.character.terminal.grammarkdown"
|
|
68
|
+
},
|
|
69
|
+
"characterClass": {
|
|
70
|
+
"match": "<[^>\\n]+>",
|
|
71
|
+
"name": "constant.language.character-class.grammarkdown"
|
|
72
|
+
},
|
|
73
|
+
"codepoint": {
|
|
74
|
+
"match": "\\bU\\+[0-9A-Fa-f]{2,6}\\b",
|
|
75
|
+
"name": "constant.numeric.codepoint.grammarkdown"
|
|
76
|
+
},
|
|
77
|
+
"keywords": {
|
|
78
|
+
"match": "\\b(but\\s+not|one\\s+of|lookahead|empty|here|but|not|or|of|no)\\b",
|
|
79
|
+
"name": "keyword.control.grammarkdown"
|
|
80
|
+
},
|
|
81
|
+
"optional": {
|
|
82
|
+
"match": "\\?",
|
|
83
|
+
"name": "keyword.operator.optional.grammarkdown"
|
|
84
|
+
},
|
|
85
|
+
"nonterminal": {
|
|
86
|
+
"match": "\\b[A-Z][A-Za-z0-9]*\\b",
|
|
87
|
+
"name": "variable.other.nonterminal.grammarkdown"
|
|
88
|
+
},
|
|
89
|
+
"parameters": {
|
|
90
|
+
"match": "\\b[A-Za-z][A-Za-z0-9]*\\b",
|
|
91
|
+
"name": "variable.parameter.grammarkdown"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/index.ts
|
|
97
|
+
/**
|
|
98
|
+
* `@cssdoc/grammarkdown-tmlanguage` — a TextMate grammar for
|
|
99
|
+
* [grammarkdown](https://github.com/rbuckton/grammarkdown), the ECMAScript-style grammar notation used
|
|
100
|
+
* by TSDoc and by cssdoc's own doc-comment spec. The default export is the grammar as a Shiki
|
|
101
|
+
* `LanguageRegistration` (it carries `name` and `scopeName`), so it drops straight into a Shiki or
|
|
102
|
+
* VitePress config; the raw grammar is also published at `./grammarkdown.tmLanguage.json` for editors
|
|
103
|
+
* and other TextMate consumers.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* // .vitepress/config.ts
|
|
108
|
+
* import grammarkdown from "@cssdoc/grammarkdown-tmlanguage";
|
|
109
|
+
* export default { markdown: { languages: [grammarkdown] } };
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @module @cssdoc/grammarkdown-tmlanguage
|
|
113
|
+
*/
|
|
114
|
+
/** The grammarkdown TextMate grammar, shaped as a Shiki `LanguageRegistration`. */
|
|
115
|
+
const grammarkdown = grammarkdown_tmLanguage_default;
|
|
116
|
+
var src_default = grammarkdown_tmLanguage_default;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { src_default as default, grammarkdown };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"name": "grammarkdown",
|
|
4
|
+
"scopeName": "source.grammarkdown",
|
|
5
|
+
"fileTypes": ["grammarkdown"],
|
|
6
|
+
"patterns": [
|
|
7
|
+
{ "include": "#comment" },
|
|
8
|
+
{ "include": "#prose" },
|
|
9
|
+
{ "include": "#directive" },
|
|
10
|
+
{ "include": "#production" },
|
|
11
|
+
{ "include": "#constraint" },
|
|
12
|
+
{ "include": "#terminal" },
|
|
13
|
+
{ "include": "#characterClass" },
|
|
14
|
+
{ "include": "#codepoint" },
|
|
15
|
+
{ "include": "#keywords" },
|
|
16
|
+
{ "include": "#optional" },
|
|
17
|
+
{ "include": "#nonterminal" }
|
|
18
|
+
],
|
|
19
|
+
"repository": {
|
|
20
|
+
"comment": {
|
|
21
|
+
"match": "//.*$",
|
|
22
|
+
"name": "comment.line.double-slash.grammarkdown"
|
|
23
|
+
},
|
|
24
|
+
"prose": {
|
|
25
|
+
"match": "^\\s*>.*$",
|
|
26
|
+
"name": "string.unquoted.prose.grammarkdown"
|
|
27
|
+
},
|
|
28
|
+
"directive": {
|
|
29
|
+
"match": "@(import|define|line|augments|noStrictParametricRedeclaration|noSyntacticPredicates)\\b",
|
|
30
|
+
"name": "keyword.control.directive.grammarkdown"
|
|
31
|
+
},
|
|
32
|
+
"production": {
|
|
33
|
+
"match": "^\\s*([A-Za-z][A-Za-z0-9]*)\\s*(\\[[^\\]]*\\])?\\s*(:::|::|:)",
|
|
34
|
+
"captures": {
|
|
35
|
+
"1": { "name": "entity.name.type.production.grammarkdown" },
|
|
36
|
+
"2": {
|
|
37
|
+
"name": "meta.parameter-list.grammarkdown",
|
|
38
|
+
"patterns": [{ "include": "#parameters" }]
|
|
39
|
+
},
|
|
40
|
+
"3": { "name": "keyword.operator.definition.grammarkdown" }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"constraint": {
|
|
44
|
+
"begin": "\\[",
|
|
45
|
+
"end": "\\]",
|
|
46
|
+
"name": "meta.annotation.grammarkdown",
|
|
47
|
+
"patterns": [
|
|
48
|
+
{ "include": "#keywords" },
|
|
49
|
+
{ "include": "#terminal" },
|
|
50
|
+
{ "match": "[+~?]", "name": "keyword.operator.parameter.grammarkdown" },
|
|
51
|
+
{ "match": "[∈∉≠]|!=", "name": "keyword.operator.assertion.grammarkdown" },
|
|
52
|
+
{ "match": "\\b[A-Za-z][A-Za-z0-9]*\\b", "name": "variable.parameter.grammarkdown" }
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"terminal": {
|
|
56
|
+
"match": "`[^`]*`",
|
|
57
|
+
"name": "constant.character.terminal.grammarkdown"
|
|
58
|
+
},
|
|
59
|
+
"characterClass": {
|
|
60
|
+
"match": "<[^>\\n]+>",
|
|
61
|
+
"name": "constant.language.character-class.grammarkdown"
|
|
62
|
+
},
|
|
63
|
+
"codepoint": {
|
|
64
|
+
"match": "\\bU\\+[0-9A-Fa-f]{2,6}\\b",
|
|
65
|
+
"name": "constant.numeric.codepoint.grammarkdown"
|
|
66
|
+
},
|
|
67
|
+
"keywords": {
|
|
68
|
+
"match": "\\b(but\\s+not|one\\s+of|lookahead|empty|here|but|not|or|of|no)\\b",
|
|
69
|
+
"name": "keyword.control.grammarkdown"
|
|
70
|
+
},
|
|
71
|
+
"optional": {
|
|
72
|
+
"match": "\\?",
|
|
73
|
+
"name": "keyword.operator.optional.grammarkdown"
|
|
74
|
+
},
|
|
75
|
+
"nonterminal": {
|
|
76
|
+
"match": "\\b[A-Z][A-Za-z0-9]*\\b",
|
|
77
|
+
"name": "variable.other.nonterminal.grammarkdown"
|
|
78
|
+
},
|
|
79
|
+
"parameters": {
|
|
80
|
+
"match": "\\b[A-Za-z][A-Za-z0-9]*\\b",
|
|
81
|
+
"name": "variable.parameter.grammarkdown"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cssdoc/grammarkdown-tmlanguage",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A TextMate grammar for grammarkdown (the ECMAScript-style grammar notation), shipped as a Shiki language.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"grammar",
|
|
7
|
+
"grammarkdown",
|
|
8
|
+
"shiki",
|
|
9
|
+
"syntax-highlighting",
|
|
10
|
+
"textmate",
|
|
11
|
+
"tmlanguage"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://cssdoc.dev",
|
|
14
|
+
"bugs": "https://github.com/thedannywahl/cssdoc/issues",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/thedannywahl/cssdoc.git",
|
|
19
|
+
"directory": "syntaxes/grammarkdown"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"grammarkdown.tmLanguage.json"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": "./dist/index.mjs",
|
|
28
|
+
"./grammarkdown.tmLanguage.json": "./grammarkdown.tmLanguage.json",
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/node": "^24.13.3",
|
|
36
|
+
"@vitest/coverage-v8": "4.1.9",
|
|
37
|
+
"publint": "^0.3.21",
|
|
38
|
+
"typescript": "^6.0.3",
|
|
39
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.4",
|
|
40
|
+
"vite-plus": "0.2.4"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "vp pack",
|
|
44
|
+
"dev": "vp pack --watch",
|
|
45
|
+
"test": "vp test",
|
|
46
|
+
"check": "vp check",
|
|
47
|
+
"publint": "publint"
|
|
48
|
+
}
|
|
49
|
+
}
|