Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document: don't allow characters with unicode property Bidi_Class in source files #10197

Merged
merged 1 commit into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions spec/01-lexical-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ chapter: 1

Scala source code consists of Unicode text.

The nine [Bidirectional explicit formatting](https://www.unicode.org/reports/tr9/#Bidirectional_Character_Types)
characters `\u202a - \u202e` and `\u2066 - \u2069` (inclusive) are forbidden
from appearing in source files. Note that they can be represented using
unicode escapes in string and character literals.

The program text is tokenized as described in this chapter.
See the last section for special support for XML literals,
which are parsed in _XML mode_.
Expand Down
5 changes: 5 additions & 0 deletions spec/13-syntax-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ chapter: 13

The following descriptions of Scala tokens uses literal characters `‘c’` when referring to the ASCII fragment `\u0000` – `\u007F`.

The nine [Bidirectional explicit formatting](https://www.unicode.org/reports/tr9/#Bidirectional_Character_Types)
characters `\u202a - \u202e` and `\u2066 - \u2069` (inclusive) are forbidden
from appearing in source files. Note that they can be represented using
unicode escapes in string and character literals.

## Lexical Syntax

The lexical syntax of Scala is given by the following grammar in EBNF form:
Expand Down