Kevin Newton
10e7e5bc8e
[ruby/prism] Refactor unescape test to simplify
...
https://github.com/ruby/prism/commit/4392775898
2023-10-13 15:31:30 -04:00
Kevin Newton
37d958eaf4
Remove old unescaping code
2023-10-13 15:31:30 -04:00
Kevin Newton
fa76cddc5b
[ruby/prism] Properly handle unescaping in regexp
...
https://github.com/ruby/prism/commit/abf9fd6863
2023-10-13 15:31:30 -04:00
Kevin Newton
e4f1c06a9b
[ruby/prism] Use current_string to handle :" symbols
...
https://github.com/ruby/prism/commit/eedeec8f9a
2023-10-13 15:31:30 -04:00
Kevin Newton
a1de762966
[ruby/prism] Use current_string for :' symbols
...
https://github.com/ruby/prism/commit/fadb5be520
2023-10-13 15:31:30 -04:00
Kevin Newton
8bf0d381dc
[ruby/prism] Use current_string for %s symbol literals
...
https://github.com/ruby/prism/commit/52504f8911
2023-10-13 15:31:30 -04:00
Kevin Newton
d0614b5254
[ruby/prism] Split up lines in tilde heredocs
...
https://github.com/ruby/prism/commit/21fad0c2ce
2023-10-13 15:31:30 -04:00
Kevin Newton
d6424453db
[ruby/prism] Enable remaining heredoc unescape tests
...
https://github.com/ruby/prism/commit/c7ea4941c5
2023-10-13 15:31:30 -04:00
Kevin Newton
24768d8a57
[ruby/prism] Use current_string for escapes in heredocs
...
https://github.com/ruby/prism/commit/fc49acfc59
2023-10-13 15:31:30 -04:00
Kevin Newton
da47a71325
[ruby/prism] Use current_string for x string escape sequences
...
https://github.com/ruby/prism/commit/66ce9280bb
2023-10-13 15:31:30 -04:00
Kevin Newton
ef1e5b65dc
[ruby/prism] Use current_string to handle escapes in string literals
...
https://github.com/ruby/prism/commit/d912d48104
2023-10-13 15:31:30 -04:00
Kevin Newton
f64a0434dd
[ruby/prism] Use current_string to handle %I
...
https://github.com/ruby/prism/commit/831d5f4b45
2023-10-13 15:31:30 -04:00
Kevin Newton
5fc34f1cde
[ruby/prism] Use current_string for handling %W lists
...
https://github.com/ruby/prism/commit/edb1674725
2023-10-13 15:31:30 -04:00
Kevin Newton
3c743445d7
[ruby/prism] Use current_string to handle %i escapes
...
https://github.com/ruby/prism/commit/9c90d0a777
2023-10-13 15:31:30 -04:00
Kevin Newton
4e3013f42d
[ruby/prism] Use current_string to handle %w escapes
...
https://github.com/ruby/prism/commit/b8420ea7ae
2023-10-13 15:31:30 -04:00
Kevin Newton
3dba3ab47d
[ruby/prism] Strip out old char unescaping
...
https://github.com/ruby/prism/commit/27ca207ab3
2023-10-13 15:31:30 -04:00
Kevin Newton
dd3986876a
[ruby/prism] Handle remaining escape sequences for character literals
...
https://github.com/ruby/prism/commit/ba33607034
2023-10-13 15:31:30 -04:00
Kevin Newton
e179e62bd2
[ruby/prism] Skip tests that are currently failing
...
https://github.com/ruby/prism/commit/23b2336148
2023-10-13 15:31:30 -04:00
Kevin Newton
8e223366fc
[ruby/prism] More thoroughly test unescapes
...
https://github.com/ruby/prism/commit/e86196dde6
2023-10-13 15:31:30 -04:00
Haldun Bayhantopcu
4387af1b4a
[ruby/prism] Fix parsing symbols in strings after labels
...
https://github.com/ruby/prism/commit/e16531650d
2023-10-12 16:01:40 +00:00
Matt Valentine-House
5c8764477f
[ruby/prism] Increase the depth for the For node index variable
...
In CRuby's parser locals in for nodes appear deeper in the ast than they
do in Prism, but we can fix that with a transparent scope
https://github.com/ruby/prism/commit/460187f41e
2023-10-12 15:26:29 +00:00
Haldun Bayhantopcu
7eccc13c1f
[ruby/prism] Emit error when assigning to a numbered parameter
...
https://github.com/ruby/prism/commit/66248ac2f6
2023-10-06 14:10:28 +00:00
Matt Valentine-House
7db4ce13ed
[ruby/prism] Introduce transparent scopes.
...
A transparent scope is a scope that cannot have local variables added to
it's local table. When a local is added to it's table, it instead gets
added to the first non-transparent parent scope.
This is used in for loops to ensure the correct depth for local
variables inside the body
https://github.com/ruby/prism/commit/ddb8e82253
Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
2023-10-06 12:21:03 +00:00
Vinicius Stock
69b024d7cc
[ruby/prism] Add full_name to ConstantPathNode and ConstantPathTargetNode
...
https://github.com/ruby/prism/commit/b390553028
2023-10-06 01:57:34 +00:00
Haldun Bayhantopcu
8d8fe54355
[ruby/prism] Check for duplicate parameter names in destructured params
...
https://github.com/ruby/prism/commit/c3438aabea
2023-10-05 16:35:45 +00:00
Haldun Bayhantopcu
38cb92a00c
[ruby/prism] Check for duplicate names in shadow args
...
https://github.com/ruby/prism/commit/e100c6b8ae
2023-10-05 15:12:05 +00:00
Haldun Bayhantopcu
fb9795cf7a
[ruby/prism] Fix parsing shadow args in lambda blocks
...
https://github.com/ruby/prism/commit/53efaf252d
2023-10-05 11:25:32 +00:00
Nobuyoshi Nakada
9059dfce12
`yield` cannot be placed outside methods even in blocks
2023-10-02 23:20:03 +09:00
Benoit Daloze
87dad067e0
Sync with prism CallNode#name changes
...
* https://github.com/ruby/prism/pull/1533
2023-10-02 09:18:56 -04:00
Kevin Newton
a213d21448
Move CRuby-specific prism files to top level
2023-09-28 09:44:16 -04:00
Haldun Bayhantopcu
834560a923
[ruby/prism] Check whether the predicate is closed for conditionals
...
https://github.com/ruby/prism/commit/bf43006d0a
2023-09-28 13:32:02 +00:00
Haldun Bayhantopcu
7799fe90da
[ruby/prism] Check for a semicolon or a newline after the inheritance operator
...
https://github.com/ruby/prism/commit/0326ba6775
2023-09-28 13:31:22 +00:00
Haldun Bayhantopcu
0084bac47a
[ruby/prism] Fix assertion failure for fwd params after rest
...
https://github.com/ruby/prism/commit/f86bff6dd7
2023-09-28 13:24:57 +00:00
Nobuyoshi Nakada
b5e23d3e3b
Syntax check of `yield` in the parser
2023-09-28 16:23:51 +09:00
eileencodes
54bbf9a6e9
[PRISM] Implement MatchLastLineNode
...
This PR implements `MatchLastLineNode` for Prism.
Related: ruby/prism#1335
2023-09-27 18:36:23 -04:00
Kevin Newton
224e76ada7
Include recently added parse_test code in rename
2023-09-27 13:57:38 -04:00
Kevin Newton
3d0a46796b
Rename YARP symbols to prism
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