...

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

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

     1[
     2  {"type":"KeywordReserved","value":"import"},
     3  {"type":"Text","value":" "},
     4  {"type":"NameOther","value":"React"},
     5  {"type":"Text","value":" "},
     6  {"type":"KeywordReserved","value":"from"},
     7  {"type":"Text","value":" "},
     8  {"type":"LiteralStringSingle","value":"'react'"},
     9  {"type":"Text","value":"\n"},
    10  {"type":"KeywordReserved","value":"import"},
    11  {"type":"Text","value":" "},
    12  {"type":"NameOther","value":"ReactDOM"},
    13  {"type":"Text","value":" "},
    14  {"type":"KeywordReserved","value":"from"},
    15  {"type":"Text","value":" "},
    16  {"type":"LiteralStringSingle","value":"'react-dom'"},
    17  {"type":"Text","value":"\n"},
    18  {"type":"KeywordReserved","value":"import"},
    19  {"type":"Text","value":" "},
    20  {"type":"LiteralStringSingle","value":"'./index.css'"},
    21  {"type":"Text","value":"\n"},
    22  {"type":"KeywordReserved","value":"import"},
    23  {"type":"Text","value":" "},
    24  {"type":"Punctuation","value":"{"},
    25  {"type":"Text","value":" "},
    26  {"type":"NameOther","value":"App"},
    27  {"type":"Text","value":" "},
    28  {"type":"Punctuation","value":"}"},
    29  {"type":"Text","value":" "},
    30  {"type":"KeywordReserved","value":"from"},
    31  {"type":"Text","value":" "},
    32  {"type":"LiteralStringSingle","value":"'./App'"},
    33  {"type":"Text","value":"\n\n"},
    34  {"type":"NameOther","value":"ReactDOM"},
    35  {"type":"Punctuation","value":"."},
    36  {"type":"NameOther","value":"render"},
    37  {"type":"Punctuation","value":"("},
    38  {"type":"Text","value":"\n  "},
    39  {"type":"Punctuation","value":"\u003c\u003e"},
    40  {"type":"Text","value":"\n    "},
    41  {"type":"Punctuation","value":"\u003c"},
    42  {"type":"NameTag","value":"React.StrictMode"},
    43  {"type":"Punctuation","value":"\u003e"},
    44  {"type":"Text","value":"\n      "},
    45  {"type":"Punctuation","value":"\u003c"},
    46  {"type":"NameTag","value":"App"},
    47  {"type":"Text","value":" "},
    48  {"type":"Punctuation","value":"/\u003e"},
    49  {"type":"Text","value":"\n    "},
    50  {"type":"Punctuation","value":"\u003c/"},
    51  {"type":"NameTag","value":"React.StrictMode"},
    52  {"type":"Punctuation","value":"\u003e"},
    53  {"type":"Text","value":"\n  "},
    54  {"type":"Punctuation","value":"\u003c/\u003e,"},
    55  {"type":"Text","value":"\n  "},
    56  {"type":"NameBuiltin","value":"document"},
    57  {"type":"Punctuation","value":"."},
    58  {"type":"NameOther","value":"getElementById"},
    59  {"type":"Punctuation","value":"("},
    60  {"type":"LiteralStringSingle","value":"'root'"},
    61  {"type":"Punctuation","value":"),"},
    62  {"type":"Text","value":"\n"},
    63  {"type":"Punctuation","value":")"}
    64]

View as plain text