Nobuyoshi Nakada
991cf2dd4d
[ruby/prism] [DOC] Specify markdown mode to RDoc
...
12af4e144e
2025-05-29 04:45:58 +00:00
Kevin Newton
b97ff7dfda
[ruby/prism] Fix up lex difference when ~ heredoc with 0 dedent and line continuation
...
84a9251915
2024-09-25 18:35:05 +00:00
Vinicius Stock
4fbb208185
[ruby/prism] Create specialized ASCIISource
with asciionly optimizations
...
40993166a8
2024-05-03 18:10:21 +00:00
Kevin Newton
23be6599a2
[ruby/prism] Split parse result based on type
...
17194e096d
2024-04-19 19:25:32 +00:00
Gopal Patel
46fe3dc799
[ruby/prism] Fix IgnoredNewlineToken comparison of Ripper::Lexer::State
...
8c9502f61b
2024-02-24 03:39:20 +00:00
Gopal Patel
b9b0712556
[ruby/prism] Use steep to type check RBS and Ruby files
...
eabed9f4fd
2024-02-24 03:39:19 +00:00
Kevin Newton
0e1f22ac7e
[ruby/prism] Dev-only CLI
...
We keep adding more scripts to /bin that are doing the same kinds
of processing. Instead, this commit consolidates them all into a
single CLI that shares the same logic so that we can consistently
read files in the same way.
It keeps around 2 binstubs for bin/lex and bin/parse since those
are the most used and I'm sure people have built up muscle memory
for those. Those scripts are now just wrappers for forwarding to
bin/prism.
bddcb9bf17
2024-02-07 21:26:14 +00:00
Kevin Newton
aad3c36bdf
[ruby/prism] Support for Ruby 2.7
...
1a15b70a8e
2024-02-07 16:54:34 +00:00
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