summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2022-12-04 12:19:54 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2022-12-26 17:34:57 +0900
commitadc29351f77cd152374a9156a7f1ce6a1a565bbd (patch)
tree5046ed2520a3cec589ac0ed6f9c8b18a2e0ba128 /parse.y
parentb466f1a5fbcb7bc5dcd0b624e09261e5c737d9a6 (diff)
downloadruby-adc29351f77cd152374a9156a7f1ce6a1a565bbd.tar.gz
EXPR_DOT is set when next token is tANDDOT ("&.") [ci skip]
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index bd3251e4e1..a6ed829b84 100644
--- a/parse.y
+++ b/parse.y
@@ -150,7 +150,7 @@ enum lex_state_bits {
EXPR_CMDARG_bit, /* newline significant, +/- is an operator. */
EXPR_MID_bit, /* newline significant, +/- is an operator. */
EXPR_FNAME_bit, /* ignore newline, no reserved words. */
- EXPR_DOT_bit, /* right after `.' or `::', no reserved words. */
+ EXPR_DOT_bit, /* right after `.', `&.' or `::', no reserved words. */
EXPR_CLASS_bit, /* immediate after `class', no here document. */
EXPR_LABEL_bit, /* flag bit, label is allowed. */
EXPR_LABELED_bit, /* flag bit, just after a label. */