From 941977f28404dab22cd7b3b72a4f38e0e6d7edb0 Mon Sep 17 00:00:00 2001 From: AreYouScared Date: Fri, 9 Feb 2024 18:38:09 -0500 Subject: [PATCH] add json5/jsonc Since v2 hasn't moved in... two years... this could've been added by now... Closes #4997 Credit goes to: #3584 - From 2021... --- resources/scripts/modes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/scripts/modes.ts b/resources/scripts/modes.ts index 6606fe4dc9..e6f66423e2 100644 --- a/resources/scripts/modes.ts +++ b/resources/scripts/modes.ts @@ -43,9 +43,9 @@ const modes: Mode[] = [ { name: 'JSON', mime: 'application/json', - mimes: ['application/json', 'application/x-json'], + mimes: ['application/json', 'application/x-json', 'application/json5' ], mode: 'javascript', - ext: ['json', 'map'], + ext: ['json', 'map', 'json5', 'jsonc' ], alias: ['json5'], }, { name: 'Lua', mime: 'text/x-lua', mode: 'lua', ext: ['lua'] },