mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
nit: fix braces placement
This commit is contained in:
parent
ee32a10dd7
commit
34ee05c808
@ -56,8 +56,7 @@ pub fn analyze_expr<'a>(expr: &'a ExprSymbol) -> Symbols<'a> {
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||
pub enum Presence
|
||||
{
|
||||
pub enum Presence {
|
||||
None,
|
||||
InCurlyBrackets,
|
||||
Normal
|
||||
@ -69,8 +68,7 @@ impl Presence {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn check_between_braces(action: &str) -> Presence
|
||||
{
|
||||
pub fn check_between_braces(action: &str) -> Presence {
|
||||
if let Some(funky_index) = action.find("<>") {
|
||||
let (before, after) = {
|
||||
let (before, after) = action.split_at(funky_index);
|
||||
@ -123,4 +121,4 @@ mod test {
|
||||
assert_eq!(Presence::InCurlyBrackets, check_between_braces("bl{<> } b"));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user