Skip to content

Commit

Permalink
change casing opt
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 27, 2023
1 parent de5bee1 commit 6bac11d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zap/src/parser/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ impl<'src> SyntaxConfig<'src> {

"casing" => match opt.value.kind {
SyntaxOptValueKind::Str(value) => match value.into_config() {
"pascal" => casing = Casing::Pascal,
"camel" => casing = Casing::Camel,
"snake" => casing = Casing::Snake,
"PascalCase" => casing = Casing::Pascal,
"camelCase" => casing = Casing::Camel,
"snake_case" => casing = Casing::Snake,

_ => state.push_report(Report::SemanticInvalidOptValue {
span: opt.value.span(),
expected: "`pascal`, `camel`, or `snake`",
expected: "`PascalCase`, `camelCase`, or `snake_case`",
}),
},

_ => state.push_report(Report::SemanticInvalidOptValue {
span: opt.value.span(),
expected: "`pascal`, `camel`, or `snake`",
expected: "`PascalCase`, `camelCase`, or `snake_case`",
}),
},

Expand Down

0 comments on commit 6bac11d

Please sign in to comment.