Skip to content

Commit

Permalink
Remove unnecessary rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont authored and tancnle committed Nov 11, 2024
1 parent 94ca37b commit 89624a3
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 89624a3

Please sign in to comment.