diff --git a/lexers/elm.go b/lexers/elm.go new file mode 100644 index 000000000..deb958a3d --- /dev/null +++ b/lexers/elm.go @@ -0,0 +1,18 @@ +package lexers + +import ( + . "github.com/alecthomas/chroma/v2" // nolint +) + +// Elm lexer. +var Elm = Register(MustNewXMLLexer( + embedded, + "embedded/elm.xml", +).SetConfig( + &Config{ + Name: "Elm", + Aliases: []string{"elm"}, + Filenames: []string{"*.elm"}, + MimeTypes: []string{"text/x-elm"}, + }, +))