Commit graph

27 commits

Author SHA1 Message Date
Justin Collins
885862a853 [ruby/prism] Match RubyParser behavior for -> lambda args
9f55551b09
2025-08-01 16:57:17 +00:00
Justin Collins
d289eb2723 [ruby/prism] RubyParser translation for stabby lambdas with it
c2e372a8d8
2025-08-01 16:57:17 +00:00
Nobuyoshi Nakada
5e64d5c7d9 [ruby/prism] [DOC] Markup __FILE__ as code, not emphasis
571ba378f5
2025-05-29 04:45:59 +00:00
Nobuyoshi Nakada
22451f370e [ruby/prism] [DOC] Add code fences
641775e5fe
2025-05-29 04:45:58 +00:00
Nobuyoshi Nakada
991cf2dd4d [ruby/prism] [DOC] Specify markdown mode to RDoc
12af4e144e
2025-05-29 04:45:58 +00:00
Justin Collins
d0c493df7d [ruby/prism] Fix block parameters and it for RubyParser
7a93a307ac
2025-01-14 15:33:02 +00:00
Kevin Newton
14b9098459 [ruby/prism] Frozen strings in the AST
8d9d429155
2025-01-12 18:41:42 +00:00
Kevin Newton
8eaa976cbe [ruby/prism] Fix up regression in ruby parser translation
b283a72c88
2024-12-16 10:51:22 -05:00
Earlopain
66124cdb17 [ruby/prism] Use partial_script for the parser translators
Followup to https://github.com/ruby/prism/pull/3079

68f434e356
2024-10-03 12:52:02 +00:00
Kevin Newton
2ea1950510 [ruby/prism] Do not leak explicit encoding
Fixes [Bug #20744]

f1b8b1b2a2
2024-09-16 18:57:54 +00:00
Kevin Newton
417bb8d4fd [PRISM] Field renaming
Rename some fields that do not quite make sense.

* CaseMatchNode#consequent -> CaseMatchNode#else_clause
* CaseNode#consequent -> CaseNode#else_clause
* IfNode#consequent -> IfNode#subsequent
* RescueNode#consequent -> RescueNode#subsequent
* UnlessNode#consequent -> UnlessNode#else_clause
2024-08-28 15:06:53 -04:00
Kevin Newton
21b4c14971 [ruby/prism] (ruby_parser) Handle bare string in implicit concat
afc7c9344a
2024-07-11 19:46:50 +00:00
Kevin Newton
3c3be9c6b2 [ruby/prism] (ruby_parser) Match match3 nodes for regular expressions
47cb73ce69
2024-07-11 19:46:50 +00:00
Kevin Newton
4c696597b7 [ruby/prism] (ruby_parser) Reverse associativity of and and or nodes
073e8ba307
2024-07-11 19:46:49 +00:00
Kevin Newton
72452f4387 [ruby/prism] Tests overhaul
6f886be0a4
2024-05-30 15:18:20 -04:00
Kevin Newton
c7281e2d67 [ruby/prism] Fix up ruby_parser string concat
4b06eae0df
2024-05-24 19:27:44 +00:00
Kevin Newton
e575954887 [ruby/prism] Fix support for 'it' implicit local variable
53bbcfe513
2024-05-22 16:34:04 -04:00
Kevin Newton
b20adf90e3 [ruby/prism] Fix up ruby_parser interpolation concatenation
79cec4be22
2024-05-21 18:45:16 +00:00
Kevin Newton
b5e53e2f32 [ruby/prism] Rescue LoadError for ruby_parser as well
d4eb13e703
2024-05-13 16:31:55 +00:00
Kevin Newton
2e44664547 [ruby/prism] operator rename
b5e47f5c42
2024-05-10 11:47:48 -04:00
Kevin Newton
5758e45657 [ruby/prism] Change ConstantPathNode#child to ConstantPathNode#{name,name_loc}
This has been requested for a long time, and I'm finally doing it
now. Unfortunately this is a breaking change for all of the APIs.

I've added in a Ruby method for `#child` that is deprecated so that
existing usage doesn't break, but for everyone else this is going
to be a bit of a pain.

9cbe74464e
2024-05-03 11:11:57 -04:00
Kevin Newton
1d51e929b1 [ruby/prism] Assume eval context for ruby_parser and ripper
e4d6984892
2024-05-03 13:12:27 +00:00
Kevin Newton
c7255ca219 [ruby/prism] Fix up ruby_parser translation for dstr
b0fa4b7cd8
2024-04-19 18:05:07 +00:00
Justin Collins
f5a2f55aca [ruby/prism] Use Sexp#line_max not Sexp#max_line
for RubyParser translation

a37169621a
2024-03-25 12:13:52 +00:00
Kevin Newton
c45ad17fa1 [ruby/prism] Shareable constant nodes
473cfed6d0
2024-03-15 12:31:26 +00:00
Kevin Newton
532ddc1745 [ruby/prism] Fix up linting in ripper translation
5cf5f15ee7
2024-03-06 16:43:06 +00:00
Kevin Newton
94bc5ad30a [ruby/prism] ruby_parser translator
1925b970c7
2024-02-12 17:54:54 +00:00