diff options
author | aycabta <aycabta@gmail.com> | 2019-05-21 18:55:31 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-05-21 18:55:31 +0900 |
commit | 4613c4bd5c22acb675ec385f4e0fa27ec7ad59ab (patch) | |
tree | cef850744e73059160947a326679354f0c221357 /lib | |
parent | bb5b4f9044b583e192d56c7feda4d1084542efd3 (diff) |
Symbol beginning token may take a constant token
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 7b376b0a40..7b933662f9 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -255,7 +255,7 @@ class RubyLex start_token << t end_type << :on_regexp_end when :on_symbeg - if (i + 1) < @tokens.size and @tokens[i + 1][1] != :on_ident + if (i + 1) < @tokens.size and @tokens[i + 1][1] != :on_ident and @tokens[i + 1][1] != :on_const start_token << t end_type << :on_tstring_end end |