Skip to content

Commit

Permalink
Remove unnecessary rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Sep 8, 2020
1 parent 45f6b06 commit 2c2663f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/rouge/lexers/json5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ class JSON5 < JSON
rule %r/[+-]?\d*\.\d*(?:e[+-]?\d+)?/i, Num::Float
rule %r/[+-]?\d+e[+-]?\d+/, Num::Integer
rule %r/[+-]?(?:0|[1-9]\d*)(?:e[+-]?\d+)?/i, Num::Integer

rule %r/[+-]?[.]\d+/, Num::Float
rule %r/[+-]?\d+[.]/, Num::Float
end
end
end
Expand Down

0 comments on commit 2c2663f

Please sign in to comment.