We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c757e commit 6bab5adCopy full SHA for 6bab5ad
lib/ruby_lexer.rb
@@ -708,7 +708,6 @@ def yylex # 826 lines
708
end
709
elsif src.scan(/\(/) then
710
result = :tLPAREN2
711
- self.command_start = true
712
713
if lex_state == :expr_beg || lex_state == :expr_mid then
714
result = :tLPAREN
@@ -1265,7 +1264,7 @@ def process_token(command_state)
1265
1264
1266
1267
1268
- if lex_state == :expr_beg || lex_state == :expr_arg || lex_state == :expr_cmdarg
+ if (lex_state == :expr_beg && !command_state) || lex_state == :expr_arg || lex_state == :expr_cmdarg
1269
colon = src.scan(/:/)
1270
1271
if colon && src.peek(1) != ":"
0 commit comments