deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
+44
View File
@@ -0,0 +1,44 @@
'use strict';
var rust$1 = require('@lezer/rust');
var language = require('@codemirror/language');
/**
A syntax provider based on the [Lezer Rust
parser](https://github.com/lezer-parser/rust), extended with
highlighting and indentation information.
*/
const rustLanguage = language.LRLanguage.define({
name: "rust",
parser: rust$1.parser.configure({
props: [
language.indentNodeProp.add({
IfExpression: language.continuedIndent({ except: /^\s*({|else\b)/ }),
"String BlockComment": () => null,
"AttributeItem": cx => cx.continue(),
"Statement MatchArm": language.continuedIndent()
}),
language.foldNodeProp.add(type => {
if (/(Block|edTokens|List)$/.test(type.name))
return language.foldInside;
if (type.name == "BlockComment")
return tree => ({ from: tree.from + 2, to: tree.to - 2 });
return undefined;
})
]
}),
languageData: {
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
indentOnInput: /^\s*(?:\{|\})$/,
closeBrackets: { stringPrefixes: ["b", "r", "br"] }
}
});
/**
Rust language support
*/
function rust() {
return new language.LanguageSupport(rustLanguage);
}
exports.rust = rust;
exports.rustLanguage = rustLanguage;
+14
View File
@@ -0,0 +1,14 @@
import { LRLanguage, LanguageSupport } from '@codemirror/language';
/**
A syntax provider based on the [Lezer Rust
parser](https://github.com/lezer-parser/rust), extended with
highlighting and indentation information.
*/
declare const rustLanguage: LRLanguage;
/**
Rust language support
*/
declare function rust(): LanguageSupport;
export { rust, rustLanguage };
+14
View File
@@ -0,0 +1,14 @@
import { LRLanguage, LanguageSupport } from '@codemirror/language';
/**
A syntax provider based on the [Lezer Rust
parser](https://github.com/lezer-parser/rust), extended with
highlighting and indentation information.
*/
declare const rustLanguage: LRLanguage;
/**
Rust language support
*/
declare function rust(): LanguageSupport;
export { rust, rustLanguage };
+41
View File
@@ -0,0 +1,41 @@
import { parser } from '@lezer/rust';
import { LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
/**
A syntax provider based on the [Lezer Rust
parser](https://github.com/lezer-parser/rust), extended with
highlighting and indentation information.
*/
const rustLanguage = /*@__PURE__*/LRLanguage.define({
name: "rust",
parser: /*@__PURE__*/parser.configure({
props: [
/*@__PURE__*/indentNodeProp.add({
IfExpression: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
"String BlockComment": () => null,
"AttributeItem": cx => cx.continue(),
"Statement MatchArm": /*@__PURE__*/continuedIndent()
}),
/*@__PURE__*/foldNodeProp.add(type => {
if (/(Block|edTokens|List)$/.test(type.name))
return foldInside;
if (type.name == "BlockComment")
return tree => ({ from: tree.from + 2, to: tree.to - 2 });
return undefined;
})
]
}),
languageData: {
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
indentOnInput: /^\s*(?:\{|\})$/,
closeBrackets: { stringPrefixes: ["b", "r", "br"] }
}
});
/**
Rust language support
*/
function rust() {
return new LanguageSupport(rustLanguage);
}
export { rust, rustLanguage };