Skip to content

Commit

Permalink
Move order of Num::Float rule
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Apr 26, 2020
1 parent a89a8ed commit 4b0cde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/kotlin.rb
Expand Up @@ -73,10 +73,10 @@ 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::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
rule %r"(([0-9]|_)+(\.([0-9]|_)*)?[eE][+-]?([0-9]|_)*)[fF]?", Num::Float
rule %r'(@#{class_name})', Name::Decorator
rule %r'(#{class_name})(<)' do
groups Name::Class, Punctuation
Expand Down

0 comments on commit 4b0cde4

Please sign in to comment.