From 953454a140854dbf44b1cc5bfdf9a986f7d3291c Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 19 Mar 2024 16:46:03 -0400 Subject: [PATCH] Roll back changes from the rewrite branch --- src/lexer.rs | 2 +- tests/functions.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer.rs b/src/lexer.rs index 3984828..2e2e770 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -232,7 +232,7 @@ pub fn lexer<'src>() -> impl Parser< .map(Token::Keyword); choice(( - boolean, float, integer, string, identifier, keyword, control, operator, + boolean, float, integer, string, keyword, identifier, control, operator, )) .map_with(|token, state| (token, state.span())) .padded() diff --git a/tests/functions.rs b/tests/functions.rs index ef54603..393d666 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -47,7 +47,7 @@ fn callback() { #[test] fn built_in_function_call() { - assert_eq!(interpret("output('Hiya')"), Ok(None)); + assert_eq!(interpret("io.write_line('Hiya')"), Ok(None)); } #[test]