Skip to content

Issue with the io Lexer #9

@bivab

Description

@bivab

I found an issue when passing the string "()", "[]" or "{}" to Compiler tokensForString. The first token returned has its line slot set to 0.
When i pass any other string, such as "Foo bar()", the first token has the line slot set to one.

The following command should return true
Compiler tokensForString("()") at(0) line == Compiler tokensForString("a") at(0) line

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intendedgood first issueApproachable for new contributorsparserLexer, parser, operator shuffling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions