diff --git a/src/tests/lex.cc b/src/tests/lex.cc index 50ea1fa..34fc7d8 100644 --- a/src/tests/lex.cc +++ b/src/tests/lex.cc @@ -145,7 +145,6 @@ suite lexer_test = [] { expect_token_type_and_value(Token::Type::Symbol, "i2"); expect_token_type_and_value(Token::Type::Symbol, "example"); expect_token_type_and_value(Token::Type::Symbol, "d1envelope"); - expect_token_type_and_value(Token::Type::Symbol, "kebab-case"); expect_token_type_and_value(Token::Type::Symbol, "snake_case"); expect_token_type_and_value(Token::Type::Symbol, "camelCase"); expect_token_type_and_value(Token::Type::Symbol, "PascalCase"); diff --git a/src/tests/parser.cc b/src/tests/parser.cc index 6d29fd2..f230403 100644 --- a/src/tests/parser.cc +++ b/src/tests/parser.cc @@ -86,7 +86,7 @@ suite parser_test = [] { Ast::literal({ Token::Type::Numeric, "2", {} }) })); - expect_ast("say (fib (n - 1) + fib (n - 2))", Ast::call({ + expect_ast("say (fib (n-1) + fib (n-2))", Ast::call({ Ast::literal({ Token::Type::Symbol, "say", {} }), Ast::binary( { Token::Type::Operator, "+", {} }, diff --git a/src/unicode.cc b/src/unicode.cc index dafbc64..5f22dd0 100644 --- a/src/unicode.cc +++ b/src/unicode.cc @@ -101,6 +101,5 @@ bool unicode::is_space(u32 space) bool unicode::is_identifier(u32 letter, unicode::First_Character is_first_character) { return (unicode::is_letter(letter) || letter == '_' || letter == '#' || letter == '$' || letter == '@') - || (!bool(is_first_character) && ( - letter == '-' || letter == '\'' || unicode::is_digit(letter))); + || (!bool(is_first_character) && (letter == '\'' || unicode::is_digit(letter))); }