Fmt config

This commit is contained in:
2026-06-28 15:52:02 +02:00
parent 31eebb4baa
commit 2174b99a3f
6 changed files with 72 additions and 30 deletions
+5
View File
@@ -20,6 +20,11 @@ pub struct Program {
pub items: Vec<TopLevel>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct MistFmtConfig {
pub allman_bracket_style: bool,
}
pub fn parse<'a>(source: &'a str) -> Result<Program, ParseError<'a>> {
let mut pairs = MistParser::parse(Rule::program, source)?;