From 06565885c7c8d2717b0f8d655c3157f02551686c Mon Sep 17 00:00:00 2001 From: Edwin Hoogerbeets Date: Tue, 16 Jun 2020 09:05:16 -0700 Subject: [PATCH] (chore) removed dangling comma (#2612) - This causes a syntax error on node 6 and earlier. --- src/languages/java.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/java.js b/src/languages/java.js index a73e9bf5c6..395a80d86a 100644 --- a/src/languages/java.js +++ b/src/languages/java.js @@ -42,7 +42,7 @@ export default function(hljs) { regex.either( regex.concat(SEQUENCE_ALLOWING_UNDERSCORES('a-fA-F0-9'), /\./, SEQUENCE_ALLOWING_UNDERSCORES('a-fA-F0-9')), regex.concat(SEQUENCE_ALLOWING_UNDERSCORES('a-fA-F0-9'), /\.?/), - regex.concat(/\./, SEQUENCE_ALLOWING_UNDERSCORES('a-fA-F0-9')), + regex.concat(/\./, SEQUENCE_ALLOWING_UNDERSCORES('a-fA-F0-9')) ), /([pP][+-]?(\d+))?/, /[fFdDlL]?/ // decimal & fp mixed for simplicity