From 89624a3fafae2b7ff7f326a45b22bba00425c56a 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