@younndai/yon-textmate 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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shiki.d.ts","sourceRoot":"","sources":["../src/shiki.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEX,eAAe,WAAW,CAAC"}
package/dist/shiki.js ADDED
@@ -0,0 +1,25 @@
1
+ import grammar from '../syntaxes/yon.tmLanguage.json' with { type: 'json' };
2
+ /**
3
+ * YON language definition for Shiki.
4
+ *
5
+ * Usage with Shiki:
6
+ * ```ts
7
+ * import { createHighlighter } from 'shiki';
8
+ * import { yonLanguage } from '@younndai/yon-textmate';
9
+ *
10
+ * const highlighter = await createHighlighter({
11
+ * themes: ['github-dark'],
12
+ * langs: [yonLanguage],
13
+ * });
14
+ *
15
+ * const html = highlighter.codeToHtml(yonCode, { lang: 'yon', theme: 'github-dark' });
16
+ * ```
17
+ */
18
+ export const yonLanguage = {
19
+ id: 'yon',
20
+ scopeName: 'source.yon',
21
+ grammar,
22
+ aliases: ['YON', 'younndai'],
23
+ };
24
+ export default yonLanguage;
25
+ //# sourceMappingURL=shiki.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shiki.js","sourceRoot":"","sources":["../src/shiki.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAE5E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,KAAK;IACT,SAAS,EAAE,YAAY;IACvB,OAAO;IACP,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;CACpB,CAAC;AAEX,eAAe,WAAW,CAAC"}
@@ -0,0 +1,23 @@
1
+ {
2
+ "comments": {
3
+ "lineComment": "#"
4
+ },
5
+ "brackets": [
6
+ ["[", "]"]
7
+ ],
8
+ "autoClosingPairs": [
9
+ { "open": "\"", "close": "\"" },
10
+ { "open": "[", "close": "]" }
11
+ ],
12
+ "surroundingPairs": [
13
+ { "open": "\"", "close": "\"" },
14
+ { "open": "[", "close": "]" }
15
+ ],
16
+ "folding": {
17
+ "markers": {
18
+ "start": "^\\s*@(SEC|BEGIN)\\b",
19
+ "end": "^\\s*@END\\b"
20
+ }
21
+ },
22
+ "wordPattern": "[A-Za-z0-9_./:@+#-]+"
23
+ }
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@younndai/yon-textmate",
3
+ "version": "0.1.0",
4
+ "description": "TextMate grammar and Shiki integration for YON syntax highlighting",
5
+ "type": "module",
6
+ "main": "./dist/shiki.js",
7
+ "types": "./dist/shiki.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/shiki.js",
11
+ "types": "./dist/shiki.d.ts"
12
+ },
13
+ "./syntaxes/yon.tmLanguage.json": "./syntaxes/yon.tmLanguage.json",
14
+ "./language-configuration.json": "./language-configuration.json"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "test": "npx vscode-tmgrammar-test -g syntaxes/yon.tmLanguage.json tests/*.yon"
19
+ },
20
+ "keywords": [
21
+ "yon",
22
+ "textmate",
23
+ "syntax",
24
+ "highlighting",
25
+ "younndai",
26
+ "shiki"
27
+ ],
28
+ "author": "MARLINK TRADING SRL (YounndAI)",
29
+ "license": "Apache-2.0",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/younndai/yon-textmate"
33
+ },
34
+ "homepage": "https://yon.younndai.com",
35
+ "devDependencies": {
36
+ "typescript": "*",
37
+ "vscode-tmgrammar-test": "^0.1.3"
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "syntaxes",
42
+ "language-configuration.json",
43
+ "README.md",
44
+ "LICENSE"
45
+ ],
46
+ "publishConfig": {
47
+ "access": "public"
48
+ }
49
+ }