summaryrefslogtreecommitdiff
path: root/prism
AgeCommit message (Collapse)Author
2024-06-11[ruby/prism] Match CRuby error message for unknown regexp optionsKevin Newton
https://github.com/ruby/prism/commit/73669b59f6
2024-06-11[ruby/prism] Fix binding power for class <<Kevin Newton
https://github.com/ruby/prism/commit/cd66c478de
2024-06-10[ruby/prism] Provide ability to lock encoding while parsingKevin Newton
https://github.com/ruby/prism/commit/f7faedfb3f
2024-06-10[ruby/prism] Disallow multi writes when not in statement levelKevin Newton
https://github.com/ruby/prism/commit/fe34a77df2
2024-06-10[ruby/prism] Allow block exits in loop predicatesKevin Newton
https://github.com/ruby/prism/commit/f09db18e46
2024-06-09Use `PRISM_EXPORTED_FUNCTION` consistently with the headerNobuyoshi Nakada
2024-06-07Sync prism version to latestKevin Newton
2024-06-06Remove circular parameter syntax errorKevin Newton
https://bugs.ruby-lang.org/issues/20478
2024-06-06[ruby/prism] Reject additional patterns under splat in targetKevin Newton
https://github.com/ruby/prism/commit/90d570aa50
2024-06-05[PRISM] Sync latest prismKevin Newton
2024-06-05[ruby/prism] Fix up documentation for regexp structsKevin Newton
https://github.com/ruby/prism/commit/78d9f20e9d
2024-06-05[ruby/prism] Parse all regular expressionsKevin Newton
https://github.com/ruby/prism/commit/11e0e204ce
2024-06-05[ruby/prism] Add Onigmo errors for invalid groupsKevin Newton
https://github.com/ruby/prism/commit/27e7685dd4
2024-06-05[ruby/prism] Add Onigmo error for invalid repeat and empty group nameKevin Newton
https://github.com/ruby/prism/commit/953601e3c0
2024-06-05[ruby/prism] Add Onigmo error for empty char-classKevin Newton
https://github.com/ruby/prism/commit/2e02fa3b80
2024-06-05[ruby/prism] Report onigmo errors for depthKevin Newton
https://github.com/ruby/prism/commit/e0e8bba8be
2024-06-05[ruby/prism] Change pm_regexp_parse to not return booleanKevin Newton
https://github.com/ruby/prism/commit/b03afbe857
2024-06-05[ruby/prism] Pass prism parser into regexp parserKevin Newton
https://github.com/ruby/prism/commit/c19b0fa185
2024-06-05[ruby/prism] Remove unused string list structKevin Newton
https://github.com/ruby/prism/commit/36c6851c85
2024-06-05[ruby/prism] Switch regexp parsing to use a callback from named capture groupsKevin Newton
https://github.com/ruby/prism/commit/29d80e486e
2024-05-31Make error messages clear blocks/keywords are disallowed in index assignmentJeremy Evans
Blocks and keywords are allowed in regular index. Also update NEWS to make this more clear. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-05-29[ruby/prism] Document `ForNode` fieldsnasa
(https://github.com/ruby/prism/pull/2845) * Add document * fix * fix fmt * fix fmt * Revert "fix fmt" This reverts commit https://github.com/ruby/prism/commit/b23a05a94148. * add potition * fix fmt * reposition * fix indent * fix comment * fix indent https://github.com/ruby/prism/commit/0dd4c1bba1
2024-05-28[ruby/prism] Fix line continuation heredoc dedent calculationKevin Newton
https://github.com/ruby/prism/commit/63b596df07
2024-05-28[ruby/prism] Typo fix: poitive => positiveHerwin
https://github.com/ruby/prism/commit/d13a05252d
2024-05-24[ruby/prism] Fix up self-write order for lexKevin Newton
https://github.com/ruby/prism/commit/8f6da451b4
2024-05-24[ruby/prism] Remove dynamic Debug module methodsKevin Newton
https://github.com/ruby/prism/commit/b850794db9
2024-05-24[ruby/prism] Remove error formatting, put directly in CRubyKevin Newton
https://github.com/ruby/prism/commit/53b2866487
2024-05-24[ruby/prism] Remove Debug#named_capturesKevin Newton
https://github.com/ruby/prism/commit/5050dfbe70
2024-05-24[ruby/prism] Move profiling to prism module directlyKevin Newton
https://github.com/ruby/prism/commit/75fabf7081
2024-05-24[ruby/prism] Remove various unused memsize infraKevin Newton
https://github.com/ruby/prism/commit/283938ed1f
2024-05-24[ruby/prism] Remove Debug::integer_parseKevin Newton
https://github.com/ruby/prism/commit/14e397598b
2024-05-24[ruby/prism] Remove Debug::static_inspectKevin Newton
https://github.com/ruby/prism/commit/486c71c426
2024-05-24[ruby/prism] Update duplicated when error messageKevin Newton
https://github.com/ruby/prism/commit/54316fd8a0
2024-05-23[ruby/prism] Raise `void value expression` in begin clauseseileencodes
In some cases Prism was either not raising an appropriate `void value expression` error, or raising that error when the syntax is considered valid. To fix this Prism needs to check whether we have other clauses on the `begin` rather than just returning `cast->statements`. * If the `cast->statements` are null and the `cast->ensure_clause` is not null, set the code to `cast->ensure_clause` * else * If there is a `cast->rescue_clause` * Check if `cast->statements` are null and `cast->rescue_clause->statements` are null, and return `NULL` * Check if there is an `else_clause`, and set the node to `cast->else_clause`. * Otherwise return `cast->statements` as the node * return `cast->statements` as the node See tests for test cases. Note I took these directly from CRuby so if desired I can delete them since the test will now pass. This only fixes one test in the `test_parse` file, taking failures from 14 to 13. This fixes `TestParse#test_void_value_in_rhs` and is related to issue #2791. https://github.com/ruby/prism/commit/398152b412
2024-05-23[ruby/prism] Only accept command call when specified for constant pathKevin Newton
https://github.com/ruby/prism/commit/0ae908b6ee
2024-05-23[ruby/prism] Disallow newlines in heredoc identifiersKevin Newton
https://github.com/ruby/prism/commit/737f2c2117
2024-05-22[PRISM] Properly support 'it'Kevin Newton
2024-05-22[ruby/prism] Fix support for 'it' implicit local variableKevin Newton
https://github.com/ruby/prism/commit/53bbcfe513
2024-05-21[ruby/prism] Reconfigure rationalsKevin Newton
This eliminates the subnode on RationalNode and replaces it with two integer fields, which represent the ratio for the rational. It also reduces those two integers if they both fit into 32 bits. Importantly, this PR does not implement bignum reduction. That's something I'd like to consider for the future, but it's simple enough for now to leave them unreduced, which makes it more useful than it used to be. https://github.com/ruby/prism/commit/86e06c7068
2024-05-21[ruby/prism] Add error for numbered parameter used in inner blockKevin Newton
https://github.com/ruby/prism/commit/c386ba6d48
2024-05-20[ruby/prism] Fix up regexp escapes with control/metaKevin Newton
https://github.com/ruby/prism/commit/8a7afa6988
2024-05-20[ruby/prism] Fix up regexp escapes with control/meta and xKevin Newton
https://github.com/ruby/prism/commit/1dbbbedf55
2024-05-20[PRISM] Match CRuby line semantics for evstrKevin Newton
2024-05-20[ruby/prism] Fix invalid read at EOFKevin Newton
https://github.com/ruby/prism/commit/dddaf67c34
2024-05-20[ruby/prism] Implement ambiguous binary operator warningKevin Newton
https://github.com/ruby/prism/commit/6258c3695f
2024-05-17[ruby/prism] Revert incorrect synthesized true node changeKevin Newton
https://github.com/ruby/prism/commit/31ef81fd06
2024-05-17[ruby/prism] Replace and Use PM_LOCATION_NULL_VALUE macroS-H-GAMELINKS
https://github.com/ruby/prism/commit/50e188b168
2024-05-16[ruby/prism] Truncate source lines in errors messages when too longKevin Newton
https://github.com/ruby/prism/commit/72518f5716
2024-05-16[ruby/prism] Update more escape error messages to match CRubyKevin Newton
https://github.com/ruby/prism/commit/ab43b3ab66
2024-05-16[ruby/prism] More mixed encoding errorsKevin Newton
https://github.com/ruby/prism/commit/2a43b4f55c