Skip to content

Commit

Permalink
document running no "syntax checks for block exits" (added first in M…
Browse files Browse the repository at this point in the history
…RI 3.3.0) (#975)

This commit tracks upstream commit ruby/ruby@e1250a5.
  • Loading branch information
iliabylich authored Dec 28, 2023
1 parent efa543b commit 4c85755
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,15 @@ issue](https://github.com/whitequark/parser/issues/72).

It is unknown whether any gems are affected by this issue.

### Syntax check of block exits

Similar to "void value expression" checks Ruby MRI also checks for correct
usage of `break`, `next` and `redo`, if it's used outside of a {break,next,redo}-able
context Ruby returns a syntax error starting from 3.3.0. `parser` gem simply doesn't
run this type of checks.

It is unknown whether any gems are affected by this issue.

### Invalid characters inside comments and literals

Ruby MRI permits arbitrary non-7-bit byte sequences to appear in comments, as well as in string or symbol literals in form of escape sequences, regardless of source encoding. Parser requires all source code, including the expanded escape sequences, to consist of valid byte sequences in the source encoding that are convertible to UTF-8.
Expand Down

0 comments on commit 4c85755

Please sign in to comment.