1 个不稳定版本
0.1.1 | 2022 年 10 月 21 日 |
---|
#2341 在 开发工具
36KB
666 行(不包括注释)
dprint-plugin-ebnf
通过 dprint 格式化 EBNF 语法表示。
安装
运行 dprint config add RubixDev/ebnf
将插件添加到您的配置文件中。
不要忘记将 ebnf
添加到您的 includes
模式。
配置
此插件使用 "ebnf"
配置密钥。以下选项可用:
名称 | 类型 | 默认值 | 可能值 | 描述 |
---|---|---|---|---|
lineWidth |
u32 |
全局配置或 100 |
在此行宽达到后,始终在下一个可能点进行包装 | |
indentWidth |
u8 |
全局配置或 2 |
缩进多行注释的空间数 | |
newLineKind |
NewLineKind |
全局配置或 "lf" |
"auto" 、"lf" 、"crlf" 、"system" |
要使用的行结束类型 |
quoteStyle |
QuoteStyle |
"Single" |
"Single" 、"Double" |
用于终端字符串的首选引号类型 |
ignoreRuleCommentText |
String |
"dprint-ignore" |
注释中应包含的文本,以便忽略下一个语法规则的格式化 | |
multilineCommentsMarkdown |
bool |
true |
true 、false |
将多行注释格式化如 markdown(需要安装 dprint-plugin-markdown ) |
依赖项
~2.6–3.5MB
~70K SLoC