1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-09 13:23:51 +02:00
chroma/lexers/testdata/jsx.expected
Tristan Menzel 0da4bd1471 Adds support for jsx blocks in typescript lexer
Adds support for jsx tags with a period in their name
Adds support for jsx fragments (<></>)
2020-04-20 12:39:21 +10:00

71 lines
2.7 KiB
Plaintext

[
{"type":"KeywordReserved","value":"import"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"React"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"from"},
{"type":"Text","value":" "},
{"type":"LiteralStringSingle","value":"'react'"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"KeywordReserved","value":"import"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"ReactDOM"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"from"},
{"type":"Text","value":" "},
{"type":"LiteralStringSingle","value":"'react-dom'"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"KeywordReserved","value":"import"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"App"},
{"type":"Text","value":" "},
{"type":"NameOther","value":"from"},
{"type":"Text","value":" "},
{"type":"LiteralStringSingle","value":"'./component/App'"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"KeywordReserved","value":"import"},
{"type":"Text","value":" "},
{"type":"LiteralStringSingle","value":"'./index.css'"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"KeywordReserved","value":"import"},
{"type":"Text","value":" "},
{"type":"LiteralStringSingle","value":"'github-fork-ribbon-css/gh-fork-ribbon.css'"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n\n"},
{"type":"NameOther","value":"ReactDOM"},
{"type":"Punctuation","value":"."},
{"type":"NameOther","value":"render"},
{"type":"Punctuation","value":"("},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"\u003c\u003e"},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameTag","value":"React.StrictMode"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameTag","value":"App"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"/\u003e"},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"\u003c/"},
{"type":"NameTag","value":"React.StrictMode"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"\u003c/\u003e,"},
{"type":"Text","value":"\n "},
{"type":"NameBuiltin","value":"document"},
{"type":"Punctuation","value":"."},
{"type":"NameOther","value":"getElementById"},
{"type":"Punctuation","value":"("},
{"type":"LiteralStringSingle","value":"'root'"},
{"type":"Punctuation","value":")"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":");"},
{"type":"Text","value":"\n"}
]