From 9d8c10cea647bcc63f45b18dbfc723b2ea201930 Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Wed, 22 Nov 2023 11:20:56 +0900 Subject: [PATCH] Update syntax.md --- docs/syntax.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/syntax.md b/docs/syntax.md index 706e3839d..3bed14acd 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -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 @@ -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) @@ -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