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

Align the spec to allow the marker #22323

Merged
merged 1 commit into from
Jan 8, 2025
Merged
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
2 changes: 1 addition & 1 deletion docs/_spec/01-lexical-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Otherwise, soft keywords are treated as actual keywords in the following situati
- `as`, if it appears in a renaming import clause.
- `derives`, if it appears after an extension clause or after the name and possibly parameters of a class, trait, object, or enum definition.
- `end`, if it appears at the start of a line following a statement (i.e. definition or toplevel expression) and is followed on the same line by a single non-comment token that is:
- one of the keywords `for`, `given`, `if`, `match`, `new`, `this`, `throw`, `try`, `val`, `while`, or
- one of the keywords `for`, `given`, `if`, `match`, `new`, `this`, `throw`, `try`, `val`, `while`, `extension` or
- an identifier.
- `extension`, if it appears at the start of a statement and is followed by `(` or `[`.
- `inline`, if it is followed by any token that can start an expression.
Expand Down
Loading