summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-27 07:11:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-27 07:11:46 +0000
commit839b0e3f3872b4cb7faec9b43e7f2690cade1693 (patch)
tree78d9ad320ac791ef3770f15c6cde34a1204c1ac3
parentd9de5af80491e5d75a23f28b2003c22f98d739fb (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.c5
-rw-r--r--parse.y5
2 files changed, 4 insertions, 6 deletions
diff --git a/parse.c b/parse.c
index 3c1b816..c939ae7 100644
--- a/parse.c
+++ b/parse.c
@@ -6235,8 +6235,7 @@ yylex()
result = tFID;
} else {
result = tIDENTIFIER;
- if (lex_state == EXPR_FNAME) {
- /* lex_state = EXPR_END; */
+ if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) {
if ((c = nextc()) == '=') {
tokadd(c);
}
@@ -6246,7 +6245,7 @@ yylex()
}
}
if (lex_state == EXPR_BEG ||
- lex_state == EXPR_FNAME ||
+ lex_state == EXPR_DOT ||
lex_state == EXPR_ARG){
lex_state = EXPR_ARG;
}
diff --git a/parse.y b/parse.y
index 680faa3..75bc6b5 100644
--- a/parse.y
+++ b/parse.y
@@ -3172,8 +3172,7 @@ yylex()
result = tFID;
} else {
result = tIDENTIFIER;
- if (lex_state == EXPR_FNAME) {
- /* lex_state = EXPR_END; */
+ if (lex_state == EXPR_FNAME || lex_state == EXPR_DOT) {
if ((c = nextc()) == '=') {
tokadd(c);
}
@@ -3183,7 +3182,7 @@ yylex()
}
}
if (lex_state == EXPR_BEG ||
- lex_state == EXPR_FNAME ||
+ lex_state == EXPR_DOT ||
lex_state == EXPR_ARG){
lex_state = EXPR_ARG;
}