Commit 8a1129d
authored
Do not open nesting for character literals (#1190)
* Do not open nesting for character literals
To fix the indentation of `end` in the following code:
```ruby
if c == ?a
puts "a"
end
```
* Check node.opening for prism-latest
To fix the test failures at https://github.com/ruby/irb/actions/runs/23577491147/job/68670877251?pr=11901 parent 24007f9 commit 8a1129d
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
350 | 360 | | |
351 | 361 | | |
0 commit comments