summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorJosh Cheek <josh.cheek@gmail.com>2019-02-06 00:43:16 -0600
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-15 11:25:38 +0900
commitcc180e937100c72b7ce849602c9d93d8e8a3d2aa (patch)
tree4839faad3ef41377cf7ab180f3f387d7ddcfbf9f /parse.y
parent5af5dd463929837f7684d1e0865ac2d9394e19a5 (diff)
Rename LINEND to EMPTYLN
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 2b7ff111ac..7e80ceae23 100644
--- a/parse.y
+++ b/parse.y
@@ -91,7 +91,7 @@ enum lex_state_bits {
EXPR_LABEL_bit, /* flag bit, label is allowed. */
EXPR_LABELED_bit, /* flag bit, just after a label. */
EXPR_FITEM_bit, /* symbol literal as FNAME. */
- EXPR_LINEND_bit,
+ EXPR_EMPTYLN_bit, /* line contains only whitespace and comments */
EXPR_MAX_STATE
};
/* examine combinations */
@@ -110,7 +110,7 @@ enum lex_state_e {
DEF_EXPR(LABEL),
DEF_EXPR(LABELED),
DEF_EXPR(FITEM),
- DEF_EXPR(LINEND),
+ DEF_EXPR(EMPTYLN),
EXPR_VALUE = EXPR_BEG,
EXPR_BEG_ANY = (EXPR_BEG | EXPR_MID | EXPR_CLASS),
EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG),
@@ -8682,7 +8682,7 @@ parser_yylex(struct parser_params *p)
space_seen = 1;
break;
case '#':
- SET_LEX_STATE(EXPR_LINEND);
+ SET_LEX_STATE(EXPR_EMPTYLN);
pushback(p, c);
goto retry;
case '|':
@@ -10023,7 +10023,7 @@ new_regexp(struct parser_params *p, VALUE re, VALUE opt, const YYLTYPE *loc)
static const char rb_parser_lex_state_names[][13] = {
"EXPR_BEG", "EXPR_END", "EXPR_ENDARG", "EXPR_ENDFN", "EXPR_ARG",
"EXPR_CMDARG", "EXPR_MID", "EXPR_FNAME", "EXPR_DOT", "EXPR_CLASS",
- "EXPR_LABEL", "EXPR_LABELED","EXPR_FITEM", "EXPR_LINEND",
+ "EXPR_LABEL", "EXPR_LABELED","EXPR_FITEM", "EXPR_EMPTYLN",
};
static VALUE