✨ feat(vscode): Rust 的 #![…] 内部属性做成「编译属性」卡片
This commit is contained in:
1 parent
2f610e9cb8
commit
04a11eb0b2
14 files changed
+386
-20
No files matched your search
@@ -207,6 +207,7 @@ export const KIND_ZH: Record<BlockKind, string> = {
|
||||
trait: '特质',
|
||||
impl: '实现',
|
||||
module: '模块',
|
||||
attribute: '编译属性',
|
||||
enum: '枚举',
|
||||
exception: '异常',
|
||||
type: '类型',
|
||||
@@ -722,6 +723,9 @@ export function createZhTemplateTranslator(table: ZhTable): Translator {
|
||||
return healthRows(block.facts, phrases)
|
||||
case 'start':
|
||||
return startRows(block.facts, phrases)
|
||||
// Rust 的编译属性由 Rust 的直译排(translators/rustZh.ts)
|
||||
case 'attribute':
|
||||
return []
|
||||
default:
|
||||
return block.facts.scope ? scopedVariableRows(block.facts.declarators, block.facts.scope, phrases) : variableRows(block, phrases)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user