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()", + "||" + ] +}