package m import ( . "github.com/alecthomas/chroma" // nolint "github.com/alecthomas/chroma/lexers/internal" ) // Meson lexer. var Meson = internal.Register(MustNewLazyLexer( &Config{ Name: "Meson", Aliases: []string{"meson", "meson.build"}, Filenames: []string{"meson.build", "meson_options.txt"}, MimeTypes: []string{"text/x-meson"}, }, func() Rules { return Rules{ "root": { {`#.*?$`, Comment, nil}, {`'''.*'''`, LiteralStringSingle, nil}, {`[1-9][0-9]*`, LiteralNumberInteger, nil}, {`0o[0-7]+`, LiteralNumberOct, nil}, {`0x[a-fA-F0-9]+`, LiteralNumberHex, nil}, Include("string"), Include("keywords"), Include("expr"), {`[a-zA-Z_][a-zA-Z_0-9]*`, Name, nil}, {`\s+`, TextWhitespace, nil}, }, "string": { {`[']{3}([']{0,2}([^\\']|\\(.|\n)))*[']{3}`, LiteralString, nil}, {`'.*?(?