2021-08-16 08:40:22 +00:00
|
|
|
defmodule Ketbin.Utils.Syntax do
|
|
|
|
use Rustler, otp_app: :ketbin, crate: "ketbin_utils_syntax"
|
|
|
|
|
|
|
|
# When your NIF is loaded, it will override this function.
|
2021-08-16 20:35:58 +00:00
|
|
|
def add(_a, _b), do: error()
|
|
|
|
|
|
|
|
def highlight_text(_text, _lang), do: error()
|
|
|
|
|
|
|
|
defp error(), do: :erlang.nif_error(:nif_not_loaded)
|
2021-08-16 08:40:22 +00:00
|
|
|
end
|