Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assume an eval context for
Prism::Translation::Parser
This is similar to davidwessman/syntax_tree-erb#81 but for RuboCop The parser gem doesn't support these types of checks, see https://github.com/whitequark/parser?tab=readme-ov-file#syntax-check-of-block-exits While this is technically a bug in the parser gem, it does increase compatibility and allows prism to be used when linting erb or haml with a RuboCop extension.
- Loading branch information