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/groovy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/groovy.rb') diff --git a/lib/coderay/scanners/groovy.rb b/lib/coderay/scanners/groovy.rb index 3501aaf..cf55daf 100644 --- a/lib/coderay/scanners/groovy.rb +++ b/lib/coderay/scanners/groovy.rb @@ -130,7 +130,7 @@ module Scanners if match = scan(/0[xX][0-9A-Fa-f]+/) encoder.text_token match, :hex elsif match = scan(/(?>0[0-7]+)(?![89.eEfF])/) - encoder.text_token match, :oct + encoder.text_token match, :octal elsif match = scan(/\d+[fFdD]|\d*\.\d+(?:[eE][+-]?\d+)?[fFdD]?|\d+[eE][+-]?\d+[fFdD]?/) encoder.text_token match, :float elsif match = scan(/\d+[lLgG]?/) -- cgit v1.2.1