Skip to content

Commit

Permalink
Revert "Merge pull request #1634 from ruby/update-syntax"
Browse files Browse the repository at this point in the history
This reverts commit f1dcf37, reversing
changes made to 78fa36f.
  • Loading branch information
soutaro committed Dec 20, 2023
1 parent 7d539e8 commit 59b29e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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,6 +311,8 @@ 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 @@ -433,8 +435,8 @@ _visibility-member_ ::= _visibility_

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

### Ivar definition
Expand Down

0 comments on commit 59b29e6

Please sign in to comment.