From 5d5492fc1560e28a762abb487447dd1ec83cb28f Mon Sep 17 00:00:00 2001 From: iuuang <85116541+iuuang@users.noreply.github.com> Date: Thu, 24 Feb 2022 13:15:09 +0100 Subject: [PATCH] Added code_matlab (#2583) by iuuang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update spanish_10k.json changed "not words", bad words and historical figures. * Update spanish_1k.json removed not full words and fixed capitalization. * Update spanish_10k.json * removed "non-words" * Changes to Spanish 1k fine, I'll stop including ΓΌ * Update spanish_1k.json * fixed capitalization of some words, removed surnames from controversial people * updated spanish 200 removed some double words and some not common ones. * updated spanish lists second attempt. * Create code_matlab.json I dont know a whole lot but Im probably going to exand this as my knowledge expands too. * Actually make the language show up * remove caps Co-authored-by: Jack Co-authored-by: Ferotiq --- frontend/static/languages/_groups.json | 3 +- frontend/static/languages/_list.json | 1 + frontend/static/languages/code_matlab.json | 72 ++++++++++++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 frontend/static/languages/code_matlab.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index ea5085d40..a0870557d 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -290,7 +290,8 @@ "code_swift", "code_bash", "code_lua", - "code_luau" + "code_luau", + "code_matlab" ] }, { diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index bf533a50e..f18c1d55d 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -157,6 +157,7 @@ ,"code_bash" ,"code_lua" ,"code_luau" + ,"code_matlab" ,"hindi" ,"hindi_1k" ,"macedonian" diff --git a/frontend/static/languages/code_matlab.json b/frontend/static/languages/code_matlab.json new file mode 100644 index 000000000..aa9ce5b7e --- /dev/null +++ b/frontend/static/languages/code_matlab.json @@ -0,0 +1,72 @@ +{ + "name": "code_matlab", + "leftToRight": true, + "noLazyMode": true, + "words": [ + "x", + "X", + ".^", + "plot", + "plot3", + "contour", + "contour3", + "y", + "Y", + "function[]", + "for", + "end", + "meshgrid", + "a:0.1:b", + "cos()", + "sin()", + "cosh()", + "sinh()", + "cos()", + "tan()", + "log()", + "sqrt()", + "exp()", + "@(x)", + "i=0", + "i++", + "~=", + "&&", + "==", + "linspace", + "ans", + "pi", + "nan", + "eps", + "real()", + "angle()", + "ceil", + "longspace", + "abs", + "floor", + "hold", + "figure", + "factorial()", + "round()", + "table()", + "surf()", + "scatter()", + "quiver()", + "f(x)", + "sign()", + "%comment", + "else", + "curl()", + "integral()", + "break", + "continue", + "roots()", + "normalize()", + "sort()", + "table()", + "text()", + "label()", + "zeros()", + "ones()", + "||" + ] +}