...

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

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

     1[
     2  {"type":"Name","value":"var"},
     3  {"type":"Text","value":" "},
     4  {"type":"Operator","value":"="},
     5  {"type":"Text","value":" "},
     6  {"type":"LiteralNumberInteger","value":"1"},
     7  {"type":"Text","value":"\n\n"},
     8  {"type":"Keyword","value":"match"},
     9  {"type":"Text","value":" "},
    10  {"type":"Name","value":"var"},
    11  {"type":"Punctuation","value":":"},
    12  {"type":"Text","value":"\n    "},
    13  {"type":"Keyword","value":"case"},
    14  {"type":"Text","value":" "},
    15  {"type":"LiteralNumberInteger","value":"1"},
    16  {"type":"Punctuation","value":":"},
    17  {"type":"Text","value":"\n        "},
    18  {"type":"NameBuiltin","value":"print"},
    19  {"type":"Punctuation","value":"("},
    20  {"type":"LiteralStringDouble","value":"\"Test\""},
    21  {"type":"Punctuation","value":")"},
    22  {"type":"Text","value":"\n"}
    23]

View as plain text