sourceror icon indicating copy to clipboard operation
sourceror copied to clipboard

Improve `Sourceror.parse_expression/2`

Open doorgan opened this issue 3 years ago • 0 comments

Sourceror.parse_expression/2 tries to parse an expression on a line-by-line basis, but it would be better if it were able to parse the largest single expression by reading the source code character by character.

With the current behavior it will also fail to parse a valid expression if the rest of the last line has an incomplete expression.

doorgan avatar Jun 22 '21 22:06 doorgan