Skip to content

Commit

Permalink
Reify Float type
Browse files Browse the repository at this point in the history
  • Loading branch information
goodhoko committed Apr 26, 2020
1 parent b01aa87 commit a89a8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/kotlin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Kotlin < RegexLexer
rule %r'""".*?"""'m, Str
rule %r'"(\\\\|\\"|[^"\n])*["\n]'m, Str
rule %r"'\\.'|'[^\\]'", Str::Char
rule %r"(([0-9]|_)+(\.([0-9]|_)*)?[eE][+-]?([0-9]|_)*)[fF]?", Num
rule %r"(([0-9]|_)+(\.([0-9]|_)*)?[eE][+-]?([0-9]|_)*)[fF]?", Num::Float
rule %r"(0[xX][0-9a-fA-F_]*[0-9a-fA-F])[uU]?L?", Num::Hex
rule %r"(0[bB][01_]*[01])[uU]?L?", Num::Bin
rule %r"([0-9]([0-9]|_)*)[uU]?L?", Num::Integer
Expand Down

0 comments on commit a89a8ed

Please sign in to comment.