summaryrefslogtreecommitdiff
path: root/prism/config.yml
AgeCommit message (Collapse)Author
2025-12-08Bump Prism to v1.5.2Takashi Kokubun
[Backport #21187]
2025-09-12Bump Prism version to 1.5.0Takashi Kokubun
2024-12-16[ruby/prism] Add do keyword tracking for While/UntilKevin Newton
https://github.com/ruby/prism/commit/9686897290 Notes: Merged: https://github.com/ruby/ruby/pull/12358
2024-12-04[ruby/prism] Add document CapturePatternNode fieldsydah
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/1ffd693f9b
2024-12-04[ruby/prism] Add document CaseMatchNode fieldsydah
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/a78da01ef6
2024-12-04[ruby/prism] Add document CaseNode fieldsydah
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/2f473b0713
2024-12-04[ruby/prism] Add document ClassVariableAndWriteNode fieldsydah
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/7be164e0b7
2024-12-03[ruby/prism] Add document CallOperatorWriteNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/f1f8776973
2024-12-03[ruby/prism] Add document CallOrWriteNode fieldsydah
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/3c01cc7c77
2024-12-03[ruby/prism] Add document CallTargetNode fieldsydah
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/649ef29c29
2024-12-02Fix example of array pattern that results in a SyntaxErrorydah
``` ❯ ruby --parser=prism --dump=parsetree -e "foo in *1" ruby: -e:1: syntax error found (SyntaxError) > 1 | foo in *1 | ^ unexpected integer, expecting end-of-input 2 | ```
2024-12-02[ruby/prism] Add document BeginNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/b8f40988ab
2024-12-02[ruby/prism] Add document ArrayPatternNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/396c6d4340
2024-12-02[ruby/prism] Add document AliasMethodNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/27f13fabc6
2024-12-02[ruby/prism] Add document ArgumentsNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/1388ca389e
2024-12-02[ruby/prism] Add document BlockArgumentNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/b1c2f323f9
2024-12-02[ruby/prism] Add document BlockLocalVariableNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/8353be1dfe
2024-12-02[ruby/prism] Add document BlockNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/9c0ef71449
2024-12-02[ruby/prism] Add document BlockParameterNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/480897eccf
2024-12-02[ruby/prism] Add document BlockParametersNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/75d1bde6cc
2024-12-02[ruby/prism] Add document CallAndWriteNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/d1570f2e06
2024-12-02[ruby/prism] Add document CallNode fieldsydah
Partially fixes: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/145ae8f993
2024-10-10[ruby/prism] Update rescue node docStan Lo
Its `exception` field was renamed to `reference` in #1204 but the documentation was not updated. https://github.com/ruby/prism/commit/a477607ba2
2024-10-07[ruby/prism] Handle invalid commas in arguments, parameters, and arraysKevin Newton
https://github.com/ruby/prism/commit/023e894b74
2024-10-01Resync to latest PrismKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11753
2024-09-30Sync Prism with latest main branchKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11741
2024-09-30[ruby/prism] Require a delimiter for singleton classesKevin Newton
https://github.com/ruby/prism/commit/fd58d6a9ea
2024-09-26[ruby/prism] Fix incorrect reference to AlternationPatternNode as non-void ↵Daniel Insley
expressions https://github.com/ruby/prism/commit/68de31919e
2024-09-26[ruby/prism] Add fields documentation for AliasMethodNode and ↵Daniel Insley
AlternationPatternNode https://github.com/ruby/prism/commit/6953daebde
2024-09-26[ruby/prism] Reject non-assoc ranges with subsequent operatorsKevin Newton
https://github.com/ruby/prism/commit/976a3cd0a5
2024-09-25[ruby/prism] Disallow label in parenthesesKevin Newton
https://github.com/ruby/prism/commit/b624e09cc6
2024-09-25[ruby/prism] Support a max depth to protect against malicious payloadsKevin Newton
https://github.com/ruby/prism/commit/a474017bbe
2024-09-25[ruby/prism] Type every node field and mark on-error-only types explicitlyBenoit Daloze
* For Loader.java, do not deserialize the AST if there are errors, so then Java nodes only have non-error types for fields. https://github.com/ruby/prism/commit/ae78e3c605
2024-09-11[ruby/prism] Add a flag for arguments that contain forwardingKevin Newton
https://github.com/ruby/prism/commit/ebd2889bee
2024-09-04[ruby/prism] Update config.ymlKevin Newton
https://github.com/ruby/prism/commit/8a3fa9f46e
2024-09-04[ruby/prism] Update config.ymlKevin Newton
https://github.com/ruby/prism/commit/369b2c1304
2024-09-04[ruby/prism] containt ==> containsydah
https://github.com/ruby/prism/commit/fa65b66237
2024-08-28[ruby/prism] Multi-splat flag for argumentsKevin Newton
https://github.com/ruby/prism/commit/21cb9b78ae
2024-08-28[PRISM] Field renamingKevin Newton
Rename some fields that do not quite make sense. * CaseMatchNode#consequent -> CaseMatchNode#else_clause * CaseNode#consequent -> CaseNode#else_clause * IfNode#consequent -> IfNode#subsequent * RescueNode#consequent -> RescueNode#subsequent * UnlessNode#consequent -> UnlessNode#else_clause Notes: Merged: https://github.com/ruby/ruby/pull/11480
2024-08-28[ruby/prism] Review config.yml: documentation, types and field namesBenoit Daloze
https://github.com/ruby/prism/commit/d43333539e
2024-08-27[ruby/prism] Add `contains_splat` flageileencodes
If we have a splat, add a flag for it named `contains_splat`. https://github.com/ruby/prism/commit/5be97a75c8
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-08-15[ruby/prism] Special error for too short unicode errorsKevin Newton
https://github.com/ruby/prism/commit/9f1f7d08bd
2024-07-22[ruby/prism] Implement mismatched indentation warningKevin Newton
https://github.com/ruby/prism/commit/5d5bf92be8
2024-07-17[Bug #20457] [Prism] Remove redundant return flagNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11163
2024-07-11[ruby/prism] Prevent optional block parameter from accepting certain ↵Stan Lo
prefixed values This commit prevents the following unary operators from being accepted as the value prefix of a block's optional parameter: - `+` - `-` - `~` - `!` For example, `f { |a = +b| }` will now raise a syntax error. https://github.com/ruby/prism/commit/3024bee60c Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-07-11[ruby/prism] Expose flags on every node typeKevin Newton
https://github.com/ruby/prism/commit/9f12a56fd6
2024-07-01[ruby/prism] Fix up find and array patterns with multiple restsKevin Newton
https://github.com/ruby/prism/commit/035890a839
2024-06-15[ruby/prism] Document MultiWriteNode fieldsHerwin
https://github.com/ruby/prism/commit/b6a97a43c2
2024-06-15[ruby/prism] Document MultiTargetNodeHerwin
https://github.com/ruby/prism/commit/b817cd25c5