1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Symbol beginning token may take a constant token

This commit is contained in:
aycabta 2019-05-21 18:55:31 +09:00
parent bb5b4f9044
commit 4613c4bd5c

View file

@ -255,7 +255,7 @@ class RubyLex
start_token << t start_token << t
end_type << :on_regexp_end end_type << :on_regexp_end
when :on_symbeg 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 start_token << t
end_type << :on_tstring_end end_type << :on_tstring_end
end end