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

Update syntax.md #1634

Merged
merged 1 commit into from
Nov 22, 2023
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
8 changes: 3 additions & 5 deletions docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _literal_ ::= _string-literal_
| `true`
| `false`

_proc_ ::= _parameters?_ _self-type-binding?_ _block?_ `->` _type_
_proc_ ::= `^` _parameters?_ _self-type-binding?_ _block?_ `->` _type_
```

### Class instance type
Expand Down Expand Up @@ -311,8 +311,6 @@ end
```markdown
_method-type_ ::= _parameters?_ _block?_ `->` _type_ # Method type

_proc_ ::= `^` _parameters?_ _self-type-binding?_ _block?_ `->` _type_ # Proc type

_parameters?_ ::= (Empty)
| _parameters_ (Parameters)

Expand Down Expand Up @@ -435,8 +433,8 @@ _visibility-member_ ::= _visibility_

_ivar-name_ ::= /@\w+/
_cvar-name_ ::= /@@\w+/
_method-name_ ::= ...
| /`[^`]+`/
_method-name_ ::= _most of the possible ruby method names_
| /`[^`]+`/ # Quoted method names
```

### Ivar definition
Expand Down