-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsx.json
More file actions
6 lines (6 loc) · 1.41 KB
/
Copy pathtsx.json
File metadata and controls
6 lines (6 loc) · 1.41 KB
1
2
3
4
5
6
{
"section": "tsx",
"original": "function App(): JSX.Element {\n return <div>hi</div>\n}\n\nexport default App\n",
"edit": "<<<<<<< SKIP\n<<<<<<< skip\nfunction App(): JSX.Element {\n // inline hint \"<<<<<<< SKIP\" inert in tsx line comment\n /* block hint \"<<<<<<< SKIP with spaces\" inert */\n const hint: string = \"marker <<<<<<< SKIP inside string is inert\"\n const curl: string = 'curly “hi” with <<<<<<< skip inert'\n\tconst tabbed: string = \"tab indent kept as-is\"\n const arr: string[] = [\"a\", \"b\", \"c\"]\n return (\n <div title=\"marker <<<<<<< SKIP inside attribute is inert\">\n {/* JSX comment: '<<<<<<< SKIP' inert */}\n <span>{hint} | {curl} | {tabbed} | {arr.length}</span>\n </div>\n )\n}\n<<<<<<< Skip\nexport default App\n<<<<<<< SKIP\n",
"expected": "function App(): JSX.Element {\n // inline hint \"<<<<<<< SKIP\" inert in tsx line comment\n /* block hint \"<<<<<<< SKIP with spaces\" inert */\n const hint: string = \"marker <<<<<<< SKIP inside string is inert\"\n const curl: string = 'curly “hi” with <<<<<<< skip inert'\n\tconst tabbed: string = \"tab indent kept as-is\"\n const arr: string[] = [\"a\", \"b\", \"c\"]\n return (\n <div title=\"marker <<<<<<< SKIP inside attribute is inert\">\n {/* JSX comment: '<<<<<<< SKIP' inert */}\n <span>{hint} | {curl} | {tabbed} | {arr.length}</span>\n </div>\n )\n}\n\nexport default App\n"
}