Current section

Files

Jump to
makeup_json lib makeup lexers application.ex
Raw

lib/makeup/lexers/application.ex

defmodule Makeup.Lexers.JsonLexer.Application do
@moduledoc false
use Application
alias Makeup.Registry
def start(_type, _args) do
Registry.register_lexer(Makeup.Lexers.JsonLexer, names: ["json"], extensions: ["json"])
Supervisor.start_link([], strategy: :one_for_one)
end
end