Removed support for kebab-case
In live coding enviroment support for `n-1` beeing the same as `n - 1` is more important then kebab case names
This commit is contained in:
parent
555a35ecc0
commit
b4cd87eea1
@ -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");
|
||||
|
@ -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, "+", {} },
|
||||
|
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user