Crates.io | dprint-plugin-ebnf |
lib.rs | dprint-plugin-ebnf |
version | 0.1.1 |
source | src |
created_at | 2022-10-21 14:36:46.405397 |
updated_at | 2022-10-21 14:36:46.405397 |
description | A dprint plugin for formatting the ISO 14977 EBNF notation |
homepage | |
repository | https://github.com/RubixDev/ebnf |
max_upload_size | |
id | 693659 |
size | 45,212 |
Format EBNF grammar notations through dprint.
Add the plugin to your config file by running dprint config add RubixDev/ebnf
.
Don't forget to add ebnf
to your includes
pattern.
This plugin uses the "ebnf"
config key. These options are available:
Name | Type | Default | Possible values | Description |
---|---|---|---|---|
lineWidth |
u32 |
global config or 100 |
Always wrap at the next possible point after this line width is reached | |
indentWidth |
u8 |
global config or 2 |
The number of spaces to indent multiline comments | |
newLineKind |
NewLineKind |
global config or "lf" |
"auto" , "lf" , "crlf" , "system" |
The kind of line endings to use |
quoteStyle |
QuoteStyle |
"Single" |
"Single" , "Double" |
The preferred kind of quotes to use for terminal string |
ignoreRuleCommentText |
String |
"dprint-ignore" |
The text a comment should contain to ignore formatting for the next syntax rule | |
multilineCommentsMarkdown |
bool |
true |
true , false |
Format multiline comments like markdown (requires dprint-plugin-markdown to be installed) |