From 34fc35ce55fa31b30cbb3491b0bce9c2289abbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 20 Jan 2021 22:56:50 +0100 Subject: trailing comma on nextable enum --- src/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler.rs b/src/compiler.rs index 727f177..e45e611 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -6,7 +6,7 @@ use crate::tokenizer::{Token, TokenStream}; use crate::vm::{Value, Block, Op}; macro_rules! nextable_enum { - ( $name:ident { $( $thing:ident ),* } ) => { + ( $name:ident { $( $thing:ident ),* $( , )? } ) => { #[derive(PartialEq, PartialOrd, Clone, Copy, Debug)] enum $name { $( $thing, )* @@ -43,7 +43,7 @@ nextable_enum!(Prec { Bool, Comp, Term, - Factor + Factor, }); #[derive(Debug, Clone)] -- cgit v1.2.1