From: Sergiu Date: Wed, 20 Jan 2016 19:29:25 +0000 (+0200) Subject: Add Rust, Julia, Brainfuck, PHP, OCaml and D X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7baee29b2642aabb77a24745dc8be86440c30a4f;p=gruntmaster-page.git Add Rust, Julia, Brainfuck, PHP, OCaml and D --- diff --git a/js/90-divine-format.js b/js/90-divine-format.js index a842de1..f8bd6a9 100644 --- a/js/90-divine-format.js +++ b/js/90-divine-format.js @@ -1,6 +1,10 @@ const ext_table = { + 'bf' : 'BRAINFUCK', + 'c' : 'C', + 'd' : 'D', + 'cc' : 'CPP', 'cpp' : 'CPP', 'cxx' : 'CPP', @@ -20,13 +24,21 @@ const ext_table = { 'java': 'JAVA', + 'jl' : 'JULIA', + + 'ml' : 'OCAML', + 'pas' : 'PASCAL', 'pl' : 'PERL', + 'php' : 'PHP', + 'py' : 'PYTHON', - 'rb' : 'RUBY' + 'rb' : 'RUBY', + + 'rs' : 'RUST' } function divine_format() { diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index c941578..31ea346 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -23,18 +23,24 @@ no warnings 'illegalproto'; use constant USER_REGEX => qr/^\w{2,20}$/a; use constant FORMAT_EXTENSION => { + BRAINFUCK => 'bf', C => 'c', CPP => 'cpp', + D => 'd', GCCGO => 'go', GOLANG => 'go', GOLFSCRIPT => 'gs', HASKELL => 'hs', - MONO => 'cs', JAVA => 'java', + JULIA => 'jl', + MONO => 'cs', + OCAML => 'ml', PASCAL => 'pas', PERL => 'pl', + PHP => 'php', PYTHON => 'py', RUBY => 'rb', + RUST => 'rs', SBCL => 'l', }; diff --git a/tmpl/pb_entry.en b/tmpl/pb_entry.en index f2709e3..fe6697f 100644 --- a/tmpl/pb_entry.en +++ b/tmpl/pb_entry.en @@ -23,17 +23,23 @@