deploy: v0.12 存档迁移+考古日志滚动条

This commit is contained in:
2026-06-24 03:04:38 +00:00
parent 4831505ef9
commit b4c6111516
58986 changed files with 7569452 additions and 31667 deletions
+44
View File
@@ -0,0 +1,44 @@
'use strict';
var cpp$1 = require('@lezer/cpp');
var language = require('@codemirror/language');
/**
A language provider based on the [Lezer C++
parser](https://github.com/lezer-parser/cpp), extended with
highlighting and indentation information.
*/
const cppLanguage = language.LRLanguage.define({
name: "cpp",
parser: cpp$1.parser.configure({
props: [
language.indentNodeProp.add({
IfStatement: language.continuedIndent({ except: /^\s*({|else\b)/ }),
TryStatement: language.continuedIndent({ except: /^\s*({|catch)\b/ }),
LabeledStatement: language.flatIndent,
CaseStatement: context => context.baseIndent + context.unit,
BlockComment: () => null,
CompoundStatement: language.delimitedIndent({ closing: "}" }),
Statement: language.continuedIndent({ except: /^{/ })
}),
language.foldNodeProp.add({
"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList": language.foldInside,
BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
})
]
}),
languageData: {
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
indentOnInput: /^\s*(?:case |default:|\{|\})$/,
closeBrackets: { stringPrefixes: ["L", "u", "U", "u8", "LR", "UR", "uR", "u8R", "R"] }
}
});
/**
Language support for C++.
*/
function cpp() {
return new language.LanguageSupport(cppLanguage);
}
exports.cpp = cpp;
exports.cppLanguage = cppLanguage;
+14
View File
@@ -0,0 +1,14 @@
import { LRLanguage, LanguageSupport } from '@codemirror/language';
/**
A language provider based on the [Lezer C++
parser](https://github.com/lezer-parser/cpp), extended with
highlighting and indentation information.
*/
declare const cppLanguage: LRLanguage;
/**
Language support for C++.
*/
declare function cpp(): LanguageSupport;
export { cpp, cppLanguage };
+14
View File
@@ -0,0 +1,14 @@
import { LRLanguage, LanguageSupport } from '@codemirror/language';
/**
A language provider based on the [Lezer C++
parser](https://github.com/lezer-parser/cpp), extended with
highlighting and indentation information.
*/
declare const cppLanguage: LRLanguage;
/**
Language support for C++.
*/
declare function cpp(): LanguageSupport;
export { cpp, cppLanguage };
+41
View File
@@ -0,0 +1,41 @@
import { parser } from '@lezer/cpp';
import { LRLanguage, indentNodeProp, continuedIndent, flatIndent, delimitedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
/**
A language provider based on the [Lezer C++
parser](https://github.com/lezer-parser/cpp), extended with
highlighting and indentation information.
*/
const cppLanguage = /*@__PURE__*/LRLanguage.define({
name: "cpp",
parser: /*@__PURE__*/parser.configure({
props: [
/*@__PURE__*/indentNodeProp.add({
IfStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
TryStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|catch)\b/ }),
LabeledStatement: flatIndent,
CaseStatement: context => context.baseIndent + context.unit,
BlockComment: () => null,
CompoundStatement: /*@__PURE__*/delimitedIndent({ closing: "}" }),
Statement: /*@__PURE__*/continuedIndent({ except: /^{/ })
}),
/*@__PURE__*/foldNodeProp.add({
"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList": foldInside,
BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
})
]
}),
languageData: {
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
indentOnInput: /^\s*(?:case |default:|\{|\})$/,
closeBrackets: { stringPrefixes: ["L", "u", "U", "u8", "LR", "UR", "uR", "u8R", "R"] }
}
});
/**
Language support for C++.
*/
function cpp() {
return new LanguageSupport(cppLanguage);
}
export { cpp, cppLanguage };