dprint-plugin-ebnf

Crates.iodprint-plugin-ebnf
lib.rsdprint-plugin-ebnf
version0.1.1
sourcesrc
created_at2022-10-21 14:36:46.405397
updated_at2022-10-21 14:36:46.405397
descriptionA dprint plugin for formatting the ISO 14977 EBNF notation
homepage
repositoryhttps://github.com/RubixDev/ebnf
max_upload_size
id693659
size45,212
Silas Groh (RubixDev)

documentation

README

dprint-plugin-ebnf

Format EBNF grammar notations through dprint.

Install

Add the plugin to your config file by running dprint config add RubixDev/ebnf.

Don't forget to add ebnf to your includes pattern.

Configuration

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)
Commit count: 33

cargo fmt