We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb18c6a commit 080f8a8Copy full SHA for 080f8a8
lib/coderay/scanners/ruby.rb
@@ -191,7 +191,10 @@ def scan_tokens encoder, options
191
encoder.text_token match, :error
192
method_call_expected = false
193
else
194
- encoder.text_token match, self[1] ? :float : :integer # TODO: send :hex/:octal/:binary
+ kind = self[1] ? :float : :integer # TODO: send :hex/:octal/:binary
195
+ match << 'r' if match !~ /e/i && scan(/r/)
196
+ match << 'i' if scan(/i/)
197
+ encoder.text_token match, kind
198
end
199
value_expected = false
200
0 commit comments