From 3e9aa3e46bd5906469751c908a0daedfe26dac22 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 1 Sep 2019 22:46:03 +0200 Subject: Make make_parser into a proc_macro_attribute That way rustfmt will format the contents of the parser. --- dhall_syntax/src/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dhall_syntax/src/parser.rs') diff --git a/dhall_syntax/src/parser.rs b/dhall_syntax/src/parser.rs index fa2d7c5..2864a97 100644 --- a/dhall_syntax/src/parser.rs +++ b/dhall_syntax/src/parser.rs @@ -215,7 +215,8 @@ fn make_precclimber() -> PrecClimber { ) } -make_parser! { +#[make_parser] +impl _ { fn EOI(_: ParseInput) -> ParseResult<()> { Ok(()) } -- cgit v1.2.3