aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/lexer/tests.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix lexer processing [+-].\d as symbol instead of numberTolmachev Igor2026-05-091-1/+9
| | | | | | | Extended lookahead in the number branch to 3 chars. Added tests for "-.5", "+.5", "-.0" in test_numbers and for "-.", "+.", ".", "+.a", "-.a" in test_ambiguous.
* Add test for span positions after quote tokenTolmachev Igor2026-05-091-0/+14
|
* Split Spanned<T> from Span and expose fieldsTolmachev Igor2026-05-081-2/+4
| | | | | Spanned<T> wraps a value with a Span. Public fields enable destructuring in pattern matches.
* Fold unclosed string error into Token variantTolmachev Igor2026-05-081-31/+18
| | | | | UnclosedString was the only error variant, making lexer::Error redundant. Also removes Result from the Iterator impl.
* Add lexerTolmachev Igor2026-05-071-0/+372