summaryrefslogtreecommitdiff
path: root/test/prism/unescape_test.rb
AgeCommit message (Collapse)Author
2024-12-27[ruby/prism] Turn off unescape tests for Ruby >= 3.4.0Kevin Newton
https://github.com/ruby/prism/commit/f982769314
2024-12-26[ruby/prism] Handle escaped characters after controlsKevin Newton
Fixes [Bug #20986] https://github.com/ruby/prism/commit/fd0c563e9e
2024-08-23[ruby/prism] Pass Unicode escapes on to onigmoKevin Newton
When we encounter an invalid unicode escape within a regular expression, we now pass that error on to Onigmo as if it didn't exist in the parser (which matches the upstream parser's behavior). We do this because there are tests that specify that you are allowed to have invalid Unicode escapes if they are within the context of a regular expression comment for a regular expression in extended mode. That looks like: /# \u /x Note that this _only_ applies to Unicode escapes (as opposed to applying to hex or meta/control escapes as well). Importantly it also only applies if the regular expression is terminated. An unterminated regular expression will still get error handling done in the parser. That would look like: /# \u that would result in the same error handling we have today. https://github.com/ruby/prism/commit/fb98034806
2024-05-30[ruby/prism] Disallow unescape test on FFI backendKevin Newton
https://github.com/ruby/prism/commit/32277722d4
2024-05-30[ruby/prism] Tests overhaulKevin Newton
https://github.com/ruby/prism/commit/6f886be0a4
2024-05-01[ruby/prism] Mark errors for invalid symbolsKevin Newton
https://github.com/ruby/prism/commit/661884c4a3
2024-03-08[ruby/prism] Fix up regexp memory leaksKevin Newton
https://github.com/ruby/prism/commit/4dc58a533a
2024-03-07[ruby/prism] Fix up tilde heredoc line continuationsKevin Newton
https://github.com/ruby/prism/commit/15e74b2f65
2023-10-13[ruby/prism] Fix up PR failingsKevin Newton
https://github.com/ruby/prism/commit/11255f636e
2023-10-13[ruby/prism] Remove now-defunct semantic_field from nodesKevin Newton
https://github.com/ruby/prism/commit/c82a9dad64
2023-10-13[ruby/prism] Refactor unescape test to simplifyKevin Newton
https://github.com/ruby/prism/commit/4392775898
2023-10-13[ruby/prism] Properly handle unescaping in regexpKevin Newton
https://github.com/ruby/prism/commit/abf9fd6863
2023-10-13[ruby/prism] Use current_string to handle :" symbolsKevin Newton
https://github.com/ruby/prism/commit/eedeec8f9a
2023-10-13[ruby/prism] Use current_string for :' symbolsKevin Newton
https://github.com/ruby/prism/commit/fadb5be520
2023-10-13[ruby/prism] Use current_string for %s symbol literalsKevin Newton
https://github.com/ruby/prism/commit/52504f8911
2023-10-13[ruby/prism] Split up lines in tilde heredocsKevin Newton
https://github.com/ruby/prism/commit/21fad0c2ce
2023-10-13[ruby/prism] Enable remaining heredoc unescape testsKevin Newton
https://github.com/ruby/prism/commit/c7ea4941c5
2023-10-13[ruby/prism] Use current_string for x string escape sequencesKevin Newton
https://github.com/ruby/prism/commit/66ce9280bb
2023-10-13[ruby/prism] Use current_string to handle escapes in string literalsKevin Newton
https://github.com/ruby/prism/commit/d912d48104
2023-10-13[ruby/prism] Use current_string to handle %IKevin Newton
https://github.com/ruby/prism/commit/831d5f4b45
2023-10-13[ruby/prism] Use current_string for handling %W listsKevin Newton
https://github.com/ruby/prism/commit/edb1674725
2023-10-13[ruby/prism] Use current_string to handle %i escapesKevin Newton
https://github.com/ruby/prism/commit/9c90d0a777
2023-10-13[ruby/prism] Use current_string to handle %w escapesKevin Newton
https://github.com/ruby/prism/commit/b8420ea7ae
2023-10-13[ruby/prism] Strip out old char unescapingKevin Newton
https://github.com/ruby/prism/commit/27ca207ab3
2023-10-13[ruby/prism] Handle remaining escape sequences for character literalsKevin Newton
https://github.com/ruby/prism/commit/ba33607034
2023-10-13[ruby/prism] Skip tests that are currently failingKevin Newton
https://github.com/ruby/prism/commit/23b2336148
2023-10-13[ruby/prism] More thoroughly test unescapesKevin Newton
https://github.com/ruby/prism/commit/e86196dde6
2023-09-27Sync to prism rename commitsKevin Newton
2023-09-27Rename YARP filepaths to prism filepathsKevin Newton