@@ -945,7 +945,7 @@ def parse_constant_body container, constant, is_array_or_hash # :nodoc:
945
945
elsif ( :on_kw == tk [ :kind ] && 'def' == tk [ :text ] ) then
946
946
nest += 1
947
947
elsif ( :on_kw == tk [ :kind ] && %w{ do if unless case begin } . include? ( tk [ :text ] ) ) then
948
- if ( RDoc ::RipperStateLex ::EXPR_LABEL & tk [ :state ] ) == 0
948
+ if ( tk [ :state ] & RDoc ::RipperStateLex ::EXPR_LABEL ) == 0
949
949
nest += 1
950
950
end
951
951
elsif [ :on_rparen , :on_rbrace , :on_rbracket ] . include? ( tk [ :kind ] ) ||
@@ -1538,7 +1538,7 @@ def parse_method_or_yield_parameters(method = nil,
1538
1538
when :on_comment , :on_embdoc then
1539
1539
@read . pop
1540
1540
if :on_nl == end_token [ :kind ] and "\n " == tk [ :text ] [ -1 ] and
1541
- ( !continue or ( RDoc ::RipperStateLex ::EXPR_LABEL & tk [ :state ] ) != 0 ) then
1541
+ ( !continue or ( tk [ :state ] & RDoc ::RipperStateLex ::EXPR_LABEL ) != 0 ) then
1542
1542
if method && method . block_params . nil? then
1543
1543
unget_tk tk
1544
1544
read_documentation_modifiers method , modifiers
@@ -1743,7 +1743,7 @@ def parse_statements(container, single = NORMAL, current_method = nil,
1743
1743
end
1744
1744
1745
1745
when 'until' , 'while' then
1746
- if ( RDoc ::RipperStateLex ::EXPR_LABEL & tk [ :state ] ) == 0
1746
+ if ( tk [ :state ] & RDoc ::RipperStateLex ::EXPR_LABEL ) == 0
1747
1747
nest += 1
1748
1748
skip_optional_do_after_expression
1749
1749
end
@@ -1759,7 +1759,7 @@ def parse_statements(container, single = NORMAL, current_method = nil,
1759
1759
skip_optional_do_after_expression
1760
1760
1761
1761
when 'case' , 'do' , 'if' , 'unless' , 'begin' then
1762
- if ( RDoc ::RipperStateLex ::EXPR_LABEL & tk [ :state ] ) == 0
1762
+ if ( tk [ :state ] & RDoc ::RipperStateLex ::EXPR_LABEL ) == 0
1763
1763
nest += 1
1764
1764
end
1765
1765
0 commit comments