add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

20
pages.zh/common/comby.md Normal file
View File

@@ -0,0 +1,20 @@
# comby
> 结构化代码搜索和替换工具,支持多种语言。
> 更多信息:<https://github.com/comby-tools/comby>。
- 匹配和重写模板,并打印更改:
`comby '{{assert_eq!(:[a], :[b])}}' '{{assert_eq!(:[b], :[a])}}' {{.rs}}`
- 带重写属性的匹配和重写:
`comby '{{assert_eq!(:[a], :[b])}}' '{{assert_eq!(:[b].Capitalize, :[a])}}' {{.rs}}`
- 原地匹配和重写:
`comby -in-place '{{match_pattern}}' '{{rewrite_pattern}}'`
- 仅执行匹配并打印匹配项:
`comby -match-only '{{match_pattern}}' ""`