From 8ae87e77591c5ffc22d48b22f92a06da66acefd2 Mon Sep 17 00:00:00 2001 From: John Leeds Date: Mon, 26 Feb 2024 18:02:02 -0800 Subject: [PATCH 1/2] Added support for OCaml --- internal/code/languages.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/code/languages.go b/internal/code/languages.go index 14cba14c..e7d584ff 100644 --- a/internal/code/languages.go +++ b/internal/code/languages.go @@ -23,6 +23,7 @@ const ( Go = "go" Javascript = "javascript" Lua = "lua" + OCaml = "ocaml" Perl = "perl" Python = "python" Ruby = "ruby" @@ -70,6 +71,10 @@ var Languages = map[string]Language{ Extension: "rb", Commands: cmds{{"ruby", ""}}, }, + OCaml: { + Extension: "ml", + Commands: cmds{{"ocaml", ""}}, + }, Python: { Extension: "py", Commands: cmds{{"python", ""}}, From 8ddd23614204a79521bcbf1b7b85206ce4087494 Mon Sep 17 00:00:00 2001 From: John Leeds Date: Mon, 26 Feb 2024 21:47:43 -0800 Subject: [PATCH 2/2] convert spaces to tabs --- internal/code/languages.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/code/languages.go b/internal/code/languages.go index e7d584ff..9e48dc82 100644 --- a/internal/code/languages.go +++ b/internal/code/languages.go @@ -23,7 +23,7 @@ const ( Go = "go" Javascript = "javascript" Lua = "lua" - OCaml = "ocaml" + OCaml = "ocaml" Perl = "perl" Python = "python" Ruby = "ruby" @@ -71,10 +71,10 @@ var Languages = map[string]Language{ Extension: "rb", Commands: cmds{{"ruby", ""}}, }, - OCaml: { - Extension: "ml", - Commands: cmds{{"ocaml", ""}}, - }, + OCaml: { + Extension: "ml", + Commands: cmds{{"ocaml", ""}}, + }, Python: { Extension: "py", Commands: cmds{{"python", ""}},