diff options
author | Nathan Youngman <git@nathany.com> | 2013-06-23 12:11:49 -0600 |
---|---|---|
committer | Nathan Youngman <git@nathany.com> | 2013-06-23 12:11:49 -0600 |
commit | 85275cf21e7d15459abc11fd76606bd7d38fb8b5 (patch) | |
tree | 01ece2735b8196944cace63f568c30eff8fba3d1 /lib/coderay | |
parent | 17946d7146390ee296264e66e6de31b6421e5231 (diff) | |
download | coderay-85275cf21e7d15459abc11fd76606bd7d38fb8b5.tar.gz |
Go doesn't have a "f" suffix for floats like C.
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/go.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/go.rb b/lib/coderay/scanners/go.rb index 49d24c2..afcfca5 100644 --- a/lib/coderay/scanners/go.rb +++ b/lib/coderay/scanners/go.rb @@ -141,7 +141,7 @@ module Scanners label_expected = false encoder.text_token match, :integer - elsif match = scan(/\d[fF]?|\d*\.\d+(?:[eE][+-]?\d+)?[fF]?|\d+[eE][+-]?\d+[fF]?/) + elsif match = scan(/\d|\d*\.\d+(?:[eE][+-]?\d+)?|\d+[eE][+-]?\d+/) label_expected = false encoder.text_token match, :float |