зеркало из https://github.com/github/ruby.git
* 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:
Родитель
abfbbcf8e3
Коммит
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>
|
||||
|
||||
* misc/ruby-mode.el (ruby-delimiter): include here document.
|
||||
|
|
12
parse.y
12
parse.y
|
@ -3850,12 +3850,12 @@ yylex()
|
|||
return c;
|
||||
|
||||
case '{':
|
||||
if (!IS_ARG()) {
|
||||
if (space_seen && lex_state == EXPR_ENDARG)
|
||||
c = tLBRACE_ARG;
|
||||
if (lex_state != EXPR_END && lex_state != EXPR_ENDARG)
|
||||
c = tLBRACE;
|
||||
}
|
||||
if (IS_ARG() || lex_state == EXPR_END)
|
||||
c = '{'; /* block (primary) */
|
||||
else if (lex_state == EXPR_ENDARG)
|
||||
c = tLBRACE_ARG; /* block (expr) */
|
||||
else
|
||||
c = tLBRACE; /* hash */
|
||||
COND_PUSH(0);
|
||||
CMDARG_PUSH(0);
|
||||
lex_state = EXPR_BEG;
|
||||
|
|
Загрузка…
Ссылка в новой задаче