From 2c2663f84a9b52aba72c72259e7936f95a2b1ffc Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Tue, 8 Sep 2020 12:48:11 +0900 Subject: [PATCH] Remove unnecessary rules --- lib/rouge/lexers/json5.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/rouge/lexers/json5.rb b/lib/rouge/lexers/json5.rb index f383b1682c..0f78818938 100644 --- a/lib/rouge/lexers/json5.rb +++ b/lib/rouge/lexers/json5.rb @@ -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