webgal-parser 4.6.1 → 4.6.3-beta.1
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/CHANGELOG.md +13 -0
- package/build/cjs/index.cjs +145 -1391
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/interface/runtimeInterface.d.ts +2 -0
- package/build/cjs/interface/sceneInterface.d.ts +11 -1
- package/build/cjs/sceneTextPreProcessor.d.ts +10 -0
- package/build/es/index.d.ts +2 -2
- package/build/es/index.js +144 -1392
- package/build/es/interface/runtimeInterface.d.ts +2 -0
- package/build/es/interface/sceneInterface.d.ts +11 -1
- package/build/es/sceneTextPreProcessor.d.ts +10 -0
- package/build/types/index.d.ts +2 -2
- package/build/types/interface/runtimeInterface.d.ts +2 -0
- package/build/types/interface/sceneInterface.d.ts +11 -1
- package/build/types/sceneTextPreProcessor.d.ts +10 -0
- package/build/umd/index.global.js +145 -1391
- package/package.json +3 -13
- package/src/config/scriptConfig.ts +1 -0
- package/src/index.ts +6 -2
- package/src/interface/runtimeInterface.ts +2 -0
- package/src/interface/sceneInterface.ts +10 -0
- package/src/sceneParser.ts +52 -3
- package/src/sceneTextPreProcessor.ts +25 -80
- package/src/scriptParser/argsParser.ts +1 -1
- package/src/scriptParser/scriptParser.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# WebGAL Parser Changelog
|
|
2
2
|
|
|
3
|
+
## [4.6.3-beta.1] - 2026-07-31
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- 正式启用多行语句支持:`sceneParser` 现在会先经过 `sceneTextPreProcess`,把以空白开头且首字符为 `-` 或 `|` 的续行折叠进上一条语句
|
|
7
|
+
- `ISentence` 新增行范围字段 `startLine` / `endLine`(0-based,含首尾)与 `isLineBreakHolder`,供图形编辑器按行范围整体替换语句
|
|
8
|
+
- 导出 `WEBGAL_LINE_BREAK_MARK` 与 `isLineBreakPlaceholder`
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `sceneTextPreProcess`:移除逐行 `console.log`;场景首行不再被误判为续行;场景末行以 `\` 结尾时不再丢失整段累积内容
|
|
12
|
+
|
|
13
|
+
### Technical Notes
|
|
14
|
+
- 续行会被替换成 `;_WEBGAL_LINE_BREAK_` 占位注释行,**预处理前后行数严格一致**。因此「解析后语句 index == 文件行号」这一不变量继续成立,引擎的存读档、Backlog、场景栈、已读记录(都存语句 index)无需改动,旧存档也不会错位
|
|
15
|
+
|
|
3
16
|
## [4.5.13] - 2025-07-05
|
|
4
17
|
|
|
5
18
|
### Fixed
|