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
+70
View File
@@ -0,0 +1,70 @@
# Simple flow values
{foo: [bar, baz],
bar: "one
two three"}
==>
Stream(Document(FlowMapping(
Pair(Key(Literal),FlowSequence(Item(Literal),Item(Literal))),
Pair(Key(Literal),QuotedLiteral))))
# Pairs
[one: two, ? : four, x: ]
==>
Stream(Document(FlowSequence(
Item(FlowMapping(Pair(Key(Literal),Literal))),
Item(FlowMapping(Pair(Literal))),
Item(FlowMapping(Pair(Key(Literal)))))))
# Simple sequence
- one
- two
- three
==>
Stream(Document(BlockSequence(Item(Literal),Item(Literal),Item(Literal))))
# Nested sequence
- - one
- two
- three
==>
Stream(Document(BlockSequence(Item(BlockSequence(Item(Literal),Item(Literal))),Item(Literal))))
# Simple Mapping
One: A
Two: B
==>
Stream(Document(BlockMapping(Pair(Key(Literal),Literal),Pair(Key(Literal),Literal))))
# Semicolon in atom
foo:bar
==>
Stream(Document(Literal))
# Explicitly Indented Block Literal
foo: |2
one
two
==>
Stream(Document(BlockMapping(
Pair(Key(Literal),BlockLiteral(BlockLiteralHeader,BlockLiteralContent)))))
+1986
View File
File diff suppressed because it is too large Load Diff
+17
View File
@@ -0,0 +1,17 @@
import {parser} from "../dist/index.js"
import {fileTests} from "@lezer/generator/dist/test"
import * as fs from "fs"
import * as path from "path"
import {fileURLToPath} from "url"
let caseDir = path.dirname(fileURLToPath(import.meta.url))
for (let file of fs.readdirSync(caseDir)) {
if (!/\.txt$/.test(file)) continue
let name = /^[^\.]*/.exec(file)[0]
describe(name, () => {
for (let {name, run} of fileTests(fs.readFileSync(path.join(caseDir, file), "utf8"), file))
it(name, () => run(parser))
})
}