summaryrefslogtreecommitdiff
path: root/test/prism
AgeCommit message (Collapse)Author
2024-05-16[ruby/prism] Always go to string lex mode even if EOFKevin Newton
https://github.com/ruby/prism/commit/57d5c9be2c
2024-05-15[ruby/prism] Replace end of file with end-of-inputKevin Newton
https://github.com/ruby/prism/commit/dd532ded95
2024-05-10[ruby/prism] Enhance parameter forwarding error messagesKevin Newton
https://github.com/ruby/prism/commit/826657232e
2024-05-10[ruby/prism] operator renameKevin Newton
https://github.com/ruby/prism/commit/b5e47f5c42
2024-05-07[ruby/prism] Extend error message for unterminated HEREDOCKevin Newton
https://github.com/ruby/prism/commit/c1b07ec11b
2024-05-07[ruby/prism] shareable_constant_value line warningsKevin Newton
https://github.com/ruby/prism/commit/8c984b6922
2024-05-03[ruby/prism] Prism::Location#adjoinKevin Newton
https://github.com/ruby/prism/commit/a298db68e3
2024-05-03[ruby/prism] Prism::Node#tunnelKevin Newton
https://github.com/ruby/prism/commit/0bf5d651da
2024-05-03[ruby/prism] Disallow keywords and blocks in index expressionsKevin Newton
https://github.com/ruby/prism/commit/e950dc1e83
2024-05-03[ruby/prism] Change ConstantPathNode#child to ConstantPathNode#{name,name_loc}Kevin Newton
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. https://github.com/ruby/prism/commit/9cbe74464e
2024-05-02[PRISM] Enable newline testKevin Newton
2024-05-01[PRISM] Fix up error message expectationsKevin Newton
2024-05-01[ruby/prism] Support passing version 3.3.1Kevin Newton
https://github.com/ruby/prism/commit/445a0f0d22
2024-05-01[ruby/prism] CRuby error message for trailing underscore in numberKevin Newton
https://github.com/ruby/prism/commit/4e34f236d3
2024-05-01[ruby/prism] Mark errors for invalid symbolsKevin Newton
https://github.com/ruby/prism/commit/661884c4a3
2024-05-01[ruby/prism] Match CRuby interpolation semanticsKevin Newton
If a single string that is a static literal is interpolated, it does not impact whether or not the parent is a static literal. In this way, if you have something like a regular expression that interpolates a string literal, it's possible that you will end up pushing just a single regexp onto the stack as opposed to calling out to toregexp. https://github.com/ruby/prism/commit/4f096c2257
2024-04-26[ruby/prism] Location#slice_lines, Node#slice_linesKevin Newton
https://github.com/ruby/prism/commit/9b61f6fdb3
2024-04-26[ruby/prism] Add a flag on returns when they are redundantKevin Newton
https://github.com/ruby/prism/commit/450541d2c3
2024-04-24[ruby/prism] Warn for nested hashes as wellKevin Newton
https://github.com/ruby/prism/commit/76e802f59e
2024-04-23[ruby/prism] Implement case equality on nodesPhilip Mueller
https://github.com/ruby/prism/commit/dc121e4fdf
2024-04-17[ruby/prism] Add a reflection API for determining the fields of a nodeKevin Newton
https://github.com/ruby/prism/commit/f3f9950a74
2024-04-12[ruby/prism] Better error message on statement inside argument listKevin Newton
https://github.com/ruby/prism/commit/3b1a99526a
2024-04-12[ruby/prism] Better error message on invalid defKevin Newton
https://github.com/ruby/prism/commit/d398e7d22c
2024-04-12[ruby/prism] Syntax error for block argument on yieldKevin Newton
https://github.com/ruby/prism/commit/9feeafbc67
2024-04-12[ruby/prism] Fix up embdoc lexing on EOFKevin Newton
https://github.com/ruby/prism/commit/8ee43be26d
2024-04-12[ruby/prism] Create the warning for unreachable statementsKevin Newton
https://github.com/ruby/prism/commit/e17c86b886
2024-04-12[ruby/prism] Implement the void statement warningKevin Newton
https://github.com/ruby/prism/commit/802ff71cd4
2024-04-12[ruby/prism] Fix parser translation's heredoc whitespace calculationStan Lo
Given this example: ```rb <<~HEREDOC #{x} HEREDOC ``` Both the parser gem and Prism's translation layer would generate the following AST: ``` s(:dstr, s(:begin, s(:int, 1)), s(:str, " a\n")) ``` However, the parser gem inserts a empty string node into this node's location, like: ``` <Parser::Source::Map::Heredoc:0x0000000104ce73b8 @expression=#<Parser::Source::Range (string) 0...10>, @heredoc_body=#<Parser::Source::Range (string) 11...20>, @heredoc_end=#<Parser::Source::Range (string) 20...27>, @node=s(:dstr, s(:str, ""), s(:begin, s(:int, 1)), s(:str, " a\n"))> ``` This is required to calculate the correct whitespace for the heredoc body. We need to adjust the translation layer to account for this. With this fix, we also won't need to ignore the tilde heredoc fixture anymore. https://github.com/ruby/prism/commit/e7372e3ba5
2024-04-12Sync latest prismKevin Newton
2024-04-12[Bug #20423] Disallow anonymous block within argument forwardingNobuyoshi Nakada
2024-04-11[ruby/prism] Add Location#chopKevin Newton
https://github.com/ruby/prism/commit/5dd57f4b84
2024-04-09[ruby/prism] Fix up invalid global variable error messageKevin Newton
https://github.com/ruby/prism/commit/8ce9ae487f
2024-04-09[ruby/prism] Reduce locals variables per CRubyKevin Newton
https://github.com/ruby/prism/commit/3e6830c3a5
2024-04-08[ruby/prism] Simplify locals test now that all fixtures are validKevin Newton
https://github.com/ruby/prism/commit/0d32af5719
2024-04-05[ruby/prism] Replace old circular parameter definition detectionKevin Newton
https://github.com/ruby/prism/commit/c739f8e194
2024-04-04[ruby/prism] Change forwarding error messages to match CRubyKevin Newton
https://github.com/ruby/prism/commit/6a15e475c9
2024-04-04[ruby/prism] Eliminate character class duplicated range warningKevin Newton
https://github.com/ruby/prism/commit/da939bbd4e
2024-04-03[ruby/prism] Allow block exits in defined? and fix modifier while/untilKevin Newton
https://github.com/ruby/prism/commit/2752f0b8df
2024-04-03[ruby/prism] Check for syntax errors using RubyVMKevin Newton
https://github.com/ruby/prism/commit/9e200dd1c1
2024-04-03[ruby/prism] Fix up errors testKevin Newton
https://github.com/ruby/prism/commit/5f86742537
2024-04-03[ruby/prism] Fix up location testsKevin Newton
https://github.com/ruby/prism/commit/eeef9eb09e
2024-04-03[ruby/prism] Update fixtures to be all valid RubyKevin Newton
https://github.com/ruby/prism/commit/a0b978d25b
2024-04-03[ruby/prism] Update unparser testsKevin Newton
https://github.com/ruby/prism/commit/b70f760b28
2024-04-03[ruby/prism] Update seattlerb/ruby_parser testsKevin Newton
https://github.com/ruby/prism/commit/cd823d5026
2024-04-03[ruby/prism] Update whitequark/parser testsKevin Newton
https://github.com/ruby/prism/commit/b1492ec87c
2024-04-03[ruby/prism] Match circular parameter error messageKevin Newton
https://github.com/ruby/prism/commit/c0381b10e4
2024-04-03Do not rely on ripper for magic comment testKevin Newton
2024-04-01[ruby/prism] Match more error messagesKevin Newton
https://github.com/ruby/prism/commit/0cc3a9d63a
2024-04-01[ruby/prism] Do not track locals starting with _Kevin Newton
https://github.com/ruby/prism/commit/0d5a6d936a
2024-04-01[ruby/prism] Use RubyVM::InstructionSequence instead of Ripper for validity ↵Kevin Newton
check https://github.com/ruby/prism/commit/ddec1c163d