package lexers import ( . "github.com/alecthomas/chroma" // nolint ) // Javascript lexer. var Javascript = Register(MustNewLexer( &Config{ Name: "JavaScript", Aliases: []string{"js", "javascript"}, Filenames: []string{"*.js", "*.jsm"}, MimeTypes: []string{"application/javascript", "application/x-javascript", "text/x-javascript", "text/javascript"}, DotAll: true, }, Rules{ "commentsandwhitespace": { {`\s+`, Text, nil}, {`