Skip to content

created test for consume_comment#13

Merged
GV14982 merged 2 commits into
GV14982:developfrom
christinabrgs:feature/lexer-tests
Nov 10, 2025
Merged

created test for consume_comment#13
GV14982 merged 2 commits into
GV14982:developfrom
christinabrgs:feature/lexer-tests

Conversation

@christinabrgs

Copy link
Copy Markdown
Contributor

No description provided.

@GV14982 GV14982 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

Comment on lines 228 to +237
) -> Result(AccumulatedVal(String), errors.LexError) {
case input {
_ ->
case string.pop_grapheme(input) {
Ok(#(head, tail)) -> {
let is_name_continue = predicates.is_alphanumeric(head) || head == "_"
case is_name_continue {
True -> consume_name(tail, val <> head, position.inc_col_by(pos, 1))
False -> Ok(#(input, val, pos))
}
}
Error(_) -> Ok(#(input, val, pos))
case string.pop_grapheme(input) {
Ok(#(head, tail)) -> {
let is_name_continue = predicates.is_alphanumeric(head) || head == "_"
case is_name_continue {
True -> consume_name(tail, val <> head, position.inc_col_by(pos, 1))
False -> Ok(#(input, val, pos))
}
}
Error(_) -> Ok(#(input, val, pos))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa, whoa, whoa... Way to make me look bad lol 🤣

Thanks for cleaning this up!

@GV14982 GV14982 merged commit c3b129a into GV14982:develop Nov 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants