Commit 2a3711e
committed
Increment cursor to breakpoint + 2
When there is a `\r\n` in the following example: `p eval "%\n1\r\n \n"`
Prism was returning `"1\n "` whereas parse.y returns `"1"`. In this case
the cursor needs to be set to the breakpoint (which is `\r`) plus 2 to
ignore the new line and the space.
I'm having trouble figuring out how to test this but locally here is the
before and after output:
Parse.y
```
$ ./miniruby --parser=parse.y test.rb
"1"
```
Prism Before:
```
$ ./miniruby --parser=prism test.rb
"1\n "
```
Prism after:
```
$ ./miniruby --parser=prism test.rb
"1"
```1 parent f2a0fe6 commit 2a3711e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12401 | 12401 | | |
12402 | 12402 | | |
12403 | 12403 | | |
12404 | | - | |
| 12404 | + | |
12405 | 12405 | | |
12406 | 12406 | | |
12407 | 12407 | | |
| |||
0 commit comments