...

Text file src/github.com/alecthomas/chroma/lexers/testdata/elixir.expected

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1[
     2  {"type":"KeywordDeclaration","value":"defmodule"},
     3  {"type":"Text","value":" "},
     4  {"type":"NameClass","value":"Test"},
     5  {"type":"Text","value":" "},
     6  {"type":"Keyword","value":"do"},
     7  {"type":"Text","value":"\n  "},
     8  {"type":"KeywordDeclaration","value":"defmodule"},
     9  {"type":"Text","value":" "},
    10  {"type":"NameClass","value":"Formatter"},
    11  {"type":"Text","value":" "},
    12  {"type":"Keyword","value":"do"},
    13  {"type":"Text","value":"\n    "},
    14  {"type":"KeywordDeclaration","value":"defstruct"},
    15  {"type":"Text","value":" "},
    16  {"type":"Punctuation","value":"["},
    17  {"type":"LiteralStringSymbol","value":":name"},
    18  {"type":"Punctuation","value":"]"},
    19  {"type":"Text","value":"\n  "},
    20  {"type":"Keyword","value":"end"},
    21  {"type":"Text","value":"\n\n  "},
    22  {"type":"KeywordDeclaration","value":"def"},
    23  {"type":"Text","value":" "},
    24  {"type":"Name","value":"hello"},
    25  {"type":"Punctuation","value":"("},
    26  {"type":"Name","value":"name"},
    27  {"type":"Text","value":" "},
    28  {"type":"Punctuation","value":"\\\\"},
    29  {"type":"Text","value":" "},
    30  {"type":"LiteralStringDouble","value":"\"chroma\""},
    31  {"type":"Punctuation","value":")"},
    32  {"type":"Text","value":" "},
    33  {"type":"Keyword","value":"do"},
    34  {"type":"Text","value":"\n    "},
    35  {"type":"Keyword","value":"case"},
    36  {"type":"Text","value":" "},
    37  {"type":"Name","value":"name"},
    38  {"type":"Text","value":" "},
    39  {"type":"Keyword","value":"do"},
    40  {"type":"Text","value":"\n      "},
    41  {"type":"LiteralStringDouble","value":"\"chroma\""},
    42  {"type":"Text","value":" "},
    43  {"type":"Operator","value":"-\u003e"},
    44  {"type":"Text","value":" "},
    45  {"type":"NameClass","value":"IO"},
    46  {"type":"Operator","value":"."},
    47  {"type":"Name","value":"puts"},
    48  {"type":"Punctuation","value":"("},
    49  {"type":"LiteralStringDouble","value":"\"Hello, CHROMA!!\""},
    50  {"type":"Punctuation","value":")"},
    51  {"type":"Text","value":"\n      "},
    52  {"type":"Name","value":"other"},
    53  {"type":"Text","value":" "},
    54  {"type":"Operator","value":"-\u003e"},
    55  {"type":"Text","value":" "},
    56  {"type":"Keyword","value":"raise"},
    57  {"type":"Text","value":" "},
    58  {"type":"LiteralStringDouble","value":"\"no others please\""},
    59  {"type":"Text","value":"\n    "},
    60  {"type":"Keyword","value":"end"},
    61  {"type":"Text","value":"\n  "},
    62  {"type":"Keyword","value":"end"},
    63  {"type":"Text","value":"\n"},
    64  {"type":"Keyword","value":"end"},
    65  {"type":"Text","value":"\n"}
    66]

View as plain text