summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-21 18:55:31 +0900
committeraycabta <aycabta@gmail.com>2019-05-21 18:55:31 +0900
commit4613c4bd5c22acb675ec385f4e0fa27ec7ad59ab (patch)
treecef850744e73059160947a326679354f0c221357 /lib
parentbb5b4f9044b583e192d56c7feda4d1084542efd3 (diff)
Symbol beginning token may take a constant token
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/ruby-lex.rb2
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