Skip to content

syntax: 注释 #→// + 字符串 r# 原始串(全库迁移) - #219

Merged
miaobyte merged 1 commit into
masterfrom
comment-dslash-rawstr
Sep 4, 2026
Merged

miaobyte merged 1 commit into
masterfrom
comment-dslash-rawstr

Conversation

@miaobyte

@miaobyte miaobyte commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

注释定界符 #→//(为 r# 串腾出 #),字符串改 Rust 式原始串 r#"..."#。全库 .kv + layout + extensions + test 同步。redis 回归 184 PASS。

- scanner/parser/ast:字符串字面量去三引号/反引号,改 Rust 式原始串 r#"..."#(跨行零转义,
  以 # 数量分级定界);注释定界符 # → //(# 被 r#... 串占用)。code.rs 同步。
- extensions:kvlang.tmLanguage / language-configuration 高亮与注释映射更新。
- test.py/error_test.py:期望输出/extern/wip 头解析 # → //。
- 全库 275 .kv(tutorial/stdlib/runtime-rwirext_example)注释与多行字符串改新语法。
- 验证:redis 后端全量回归 184 PASS / 0 FAIL / 3 SKIP(shm 后端有 slotsboxmalloc 挂死 bug,
  与本改动无关,另行处理)。
@miaobyte
miaobyte merged commit e430ec2 into master Sep 4, 2026
1 check failed
@miaobyte
miaobyte deleted the comment-dslash-rawstr branch September 4, 2026 08:30
carsontung666 added a commit to carsontung666/kvlang that referenced this pull request Sep 4, 2026
carsontung666 added a commit to carsontung666/kvlang that referenced this pull request Sep 4, 2026
miaobyte added a commit that referenced this pull request Sep 5, 2026
struct WIP 基于 #219 前 master,教程注释仍用 #;rebase 后按现行 // 语法转换。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant