Max Prokopiev
e9f936df71
[ruby/prism] Extract snippet into its own file and skip in TruffleRuby
...
12649ee74c
2024-01-24 20:32:02 +00:00
Kevin Newton
88d7838445
[ruby/prism] Fix assertion on spanning heredocs
...
e190308845
2024-01-09 15:15:52 +00:00
Haldun Bayhantopcu
562d949e02
[ruby/prism] Fix parsing heredoc ends
...
aa8c702271
2023-12-01 20:10:58 +00:00
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
Kevin Newton
ca7297efd3
[ruby/prism] Wire up options through the Ruby API
...
8582d372a3
2023-11-03 10:13:49 -04:00
Kevin Newton
9f16f07cf1
[ruby/prism] Additionally handle encoding comments in vim mode
...
bf9bdb9d82
2023-10-16 15:40:19 -07:00
Nobuyoshi Nakada
9059dfce12
yield
cannot be placed outside methods even in blocks
2023-10-02 23:20:03 +09:00
Nobuyoshi Nakada
b5e23d3e3b
Syntax check of yield
in the parser
2023-09-28 16:23:51 +09:00
Kevin Newton
224e76ada7
Include recently added parse_test code in rename
2023-09-27 13:57:38 -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