Jean Boussier
2af82e2316
[ruby/prism] Convert start line to signed integers
...
Ruby allows for 0 or negative line start, this is often used
with `eval` calls to get a correct offset when prefixing a snippet.
e.g.
```ruby
caller = caller_locations(1, 1).first
class_eval <<~RUBY, caller.path, caller.line - 2
# frozen_string_literal: true
def some_method
#{caller_provided_code_snippet}
end
RUBY
```
0d14ed1452
2023-11-29 13:56:19 +00:00
Jean Boussier
2653404840
[ruby/prism] Rename varint as varuint
...
Line numbers may be negative, so we need to introduce signed varint,
so renaming unsigned ones first avoid confusion.
90d862361e
2023-11-29 13:56:18 +00:00
Kevin Newton
690f3bbf5d
[ruby/prism] Last remaining missing C comments
...
e327449db6
2023-11-01 13:10:29 -04:00
Kevin Newton
b67994d6bf
[ruby/prism] Even more C documentation
...
bec5ca37a0
2023-11-01 13:10:29 -04:00
Kevin Newton
26a05c4217
[ruby/prism] Use printf attribute and then fix warnings
...
3193902c43
2023-10-27 14:23:17 +00:00
Kevin Newton
d1bb858d47
[ruby/prism] Match existing Ruby prettyprint
...
6d8358c083
2023-10-26 15:19:43 -04:00
Kevin Newton
e9aa2398b9
[ruby/prism] Get general prettyprint structure working
...
7c9cf63d4c
2023-10-26 15:19:35 -04:00
Kevin Newton
dd3986876a
[ruby/prism] Handle remaining escape sequences for character literals
...
ba33607034
2023-10-13 15:31:30 -04:00
Kevin Newton
4f73a7c2f7
Sync to prism rename commits
2023-09-27 13:57:38 -04:00
Kevin Newton
8ab56869a6
Rename YARP filepaths to prism filepaths
2023-09-27 13:57:38 -04:00