...

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

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

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

View as plain text