Curly brace on same line produces error #58

Closed
pepri opened this Issue Jun 10, 2014 · 1 comment

Projects

None yet

2 participants

@pepri
pepri commented Jun 10, 2014

When I use curly brace at the end of line, error occurs:

java> void test() {
    | while (true) {
    | }
    | }
ERROR: reached end of file while parsing
}
 ^

When I use curly brace on new line, everything is ok:

java> void test() {
    | while (true)
    | {
    | }
    | }
Created method void test()
java>
@albertlatacz
Owner

Hi @pepri, thanks for spotting this. Method signature detection was too greedy. Will fix it in next push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment