Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line number is wrong when code contains multiline string literals. #25

Open
felixvf opened this issue Jul 21, 2015 · 0 comments
Open

Line number is wrong when code contains multiline string literals. #25

felixvf opened this issue Jul 21, 2015 · 0 comments

Comments

@felixvf
Copy link
Contributor

felixvf commented Jul 21, 2015

Consider this Mirah code:

class Foo
    CONST = "a



    b"
end


ERROR_SHOULD_BE_HERE

When compiling, an error should happen at line 11. An error does happen, but erroneously at line 7. This means that, especially for longer Mirah code, the error messages generated by the compiler do not match with the actual code.

felixvf added a commit to felixvf/mirah-parser that referenced this issue Jul 21, 2015
felixvf added a commit to felixvf/mirah-parser that referenced this issue Jul 21, 2015
felixvf added a commit to felixvf/mirah-parser that referenced this issue Jul 21, 2015
felixvf added a commit to felixvf/mirah that referenced this issue Jul 21, 2015
felixvf added a commit to felixvf/mirah that referenced this issue Jul 21, 2015
felixvf added a commit to felixvf/mirah that referenced this issue Jul 21, 2015
felixvf added a commit that referenced this issue Jul 21, 2015
felixvf pushed a commit to felixvf/mirah that referenced this issue Jul 22, 2015
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

No branches or pull requests

1 participant