From 36531238fa4ef33f1792c6ea6de5e00dcadf018a Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Fri, 19 Aug 2011 05:39:45 +0200 Subject: pretty (longer) token class names; closes #347 --- lib/coderay/scanners/python.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay/scanners/python.rb') diff --git a/lib/coderay/scanners/python.rb b/lib/coderay/scanners/python.rb index 8556ba9..5e38a2c 100644 --- a/lib/coderay/scanners/python.rb +++ b/lib/coderay/scanners/python.rb @@ -194,7 +194,7 @@ module Scanners encoder.text_token match, :hex elsif match = scan(/0[bB][01]+[lL]?/) - encoder.text_token match, :bin + encoder.text_token match, :binary elsif match = scan(/(?:\d*\.\d+|\d+\.\d*)(?:[eE][+-]?\d+)?|\d+[eE][+-]?\d+/) if scan(/[jJ]/) @@ -205,7 +205,7 @@ module Scanners end elsif match = scan(/0[oO][0-7]+|0[0-7]+(?![89.eE])[lL]?/) - encoder.text_token match, :oct + encoder.text_token match, :octal elsif match = scan(/\d+([lL])?/) if self[1] == nil && scan(/[jJ]/) -- cgit v1.2.1