* parse.y (yylex): modify to accept a code like "m (a){...}".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
abfbbcf8e3
commit
d5dc032e33
@ -1,3 +1,7 @@
|
|||||||
|
Fri Jul 26 12:14:48 2002 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* parse.y (yylex): modify to accept a code like "m (a){...}".
|
||||||
|
|
||||||
Thu Jul 25 09:05:02 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Thu Jul 25 09:05:02 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* misc/ruby-mode.el (ruby-delimiter): include here document.
|
* misc/ruby-mode.el (ruby-delimiter): include here document.
|
||||||
|
12
parse.y
12
parse.y
@ -3850,12 +3850,12 @@ yylex()
|
|||||||
return c;
|
return c;
|
||||||
|
|
||||||
case '{':
|
case '{':
|
||||||
if (!IS_ARG()) {
|
if (IS_ARG() || lex_state == EXPR_END)
|
||||||
if (space_seen && lex_state == EXPR_ENDARG)
|
c = '{'; /* block (primary) */
|
||||||
c = tLBRACE_ARG;
|
else if (lex_state == EXPR_ENDARG)
|
||||||
if (lex_state != EXPR_END && lex_state != EXPR_ENDARG)
|
c = tLBRACE_ARG; /* block (expr) */
|
||||||
c = tLBRACE;
|
else
|
||||||
}
|
c = tLBRACE; /* hash */
|
||||||
COND_PUSH(0);
|
COND_PUSH(0);
|
||||||
CMDARG_PUSH(0);
|
CMDARG_PUSH(0);
|
||||||
lex_state = EXPR_BEG;
|
lex_state = EXPR_BEG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user