Martin Emde
cbe57caa24
[ruby/prism] Fix comments after HEREDOCs again.
...
The problem was deeper than just looking back a single token.
You can push the heredoc_end token way back into the list.
We need to save the last location of a heredoc end to see if
it's the last token in the file.
Fixes https://github.com/ruby/prism/pull/1954
91dfd4eecd
2023-12-01 15:17:20 +00:00
Martin Emde
aac8be8034
[ruby/prism] Fix lex_compat for <<HEREDOC # comment
at EOF
...
Fixes https://github.com/ruby/prism/pull/1874
304dd78dd2
2023-11-30 14:10:04 +00:00
Kevin Newton
c798943a4a
[ruby/prism] Move DATA parsing into its own parse result field
...
42b60b6e95
2023-11-28 13:25:48 +00:00
Kevin Newton
05f5c545d2
[ruby/prism] Wire up options through the FFI API
...
f0aa8ad93b
2023-11-03 10:13:49 -04:00
Kevin Newton
ca7297efd3
[ruby/prism] Wire up options through the Ruby API
...
8582d372a3
2023-11-03 10:13:49 -04:00
Kevin Newton
79034fbd50
[ruby/prism] More Ruby docs
...
ca9a660f52
2023-11-01 13:10:29 -04:00
Mau Magnaguagno
f20e91fbf7
[ruby/prism] Avoid String#chars in DedentingHeredoc#to_a
...
Prefer String#[] directly.
916f991220
2023-10-23 14:56:18 +00:00
Kevin Newton
8210cc4218
[ruby/prism] Fix lex compat when dedent should be 0
...
41c0e0e06e
2023-10-18 16:09:16 +00:00
Kevin Newton
5523a23469
[ruby/prism] Attach magic comments to the parse result
...
c7ef25a79a
2023-10-16 15:40:19 -07:00
Mau Magnaguagno
f6564fdd37
[ruby/prism] Simplify DedentingHeredoc#to_a
...
Move common ``results << token`` outside case-when.
84d0722ee9
2023-10-13 21:11:07 +00:00
Kevin Newton
11e946da2f
[ruby/prism] Fix up PR failings
...
11255f636e
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