...

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

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

     1[
     2  {"type":"KeywordDeclaration","value":"var"},
     3  {"type":"Text","value":" "},
     4  {"type":"NameOther","value":"x"},
     5  {"type":"Text","value":" "},
     6  {"type":"Punctuation","value":":"},
     7  {"type":"Text","value":" "},
     8  {"type":"KeywordType","value":"int"},
     9  {"type":"Text","value":" "},
    10  {"type":"Operator","value":":="},
    11  {"type":"Text","value":" "},
    12  {"type":"LiteralNumberInteger","value":"10"},
    13  {"type":"Text","value":"\n\n"},
    14  {"type":"KeywordDeclaration","value":"fcn"},
    15  {"type":"Text","value":" "},
    16  {"type":"NameOther","value":"testFunction"},
    17  {"type":"Punctuation","value":"("},
    18  {"type":"NameOther","value":"a"},
    19  {"type":"Punctuation","value":","},
    20  {"type":"Text","value":" "},
    21  {"type":"NameOther","value":"b"},
    22  {"type":"Punctuation","value":","},
    23  {"type":"Text","value":" "},
    24  {"type":"NameOther","value":"c"},
    25  {"type":"Punctuation","value":")"},
    26  {"type":"Text","value":"\n    "},
    27  {"type":"Keyword","value":"result"},
    28  {"type":"Text","value":" "},
    29  {"type":"Punctuation","value":"("},
    30  {"type":"NameOther","value":"a"},
    31  {"type":"Text","value":" "},
    32  {"type":"Operator","value":"+"},
    33  {"type":"Text","value":" "},
    34  {"type":"NameOther","value":"b"},
    35  {"type":"Punctuation","value":")"},
    36  {"type":"Text","value":" "},
    37  {"type":"Operator","value":"*"},
    38  {"type":"Text","value":" "},
    39  {"type":"NameOther","value":"c"},
    40  {"type":"Text","value":"\n"},
    41  {"type":"KeywordDeclaration","value":"end"},
    42  {"type":"Text","value":" "},
    43  {"type":"NameOther","value":"testFunction"},
    44  {"type":"Text","value":"\n\n"},
    45  {"type":"Keyword","value":"put"},
    46  {"type":"Text","value":" "},
    47  {"type":"NameOther","value":"testFunction"},
    48  {"type":"Punctuation","value":"("},
    49  {"type":"NameOther","value":"x"},
    50  {"type":"Punctuation","value":","},
    51  {"type":"Text","value":" "},
    52  {"type":"LiteralNumberInteger","value":"2"},
    53  {"type":"Text","value":" "},
    54  {"type":"Operator","value":"*"},
    55  {"type":"Text","value":" "},
    56  {"type":"NameOther","value":"x"},
    57  {"type":"Punctuation","value":","},
    58  {"type":"Text","value":" "},
    59  {"type":"LiteralNumberInteger","value":"3"},
    60  {"type":"Punctuation","value":")"}
    61]

View as plain text