-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.json
More file actions
6 lines (6 loc) · 1.12 KB
/
Copy pathjavascript.json
File metadata and controls
6 lines (6 loc) · 1.12 KB
1
2
3
4
5
6
{
"section": "javascript",
"original": "function add(a, b) {\n return a - b\n}\n\nconsole.log(add(2, 3))",
"edit": "<<<<<<< SKIP\n<<<<<<< skip\nfunction add(a, b) {\n // inline hint \"<<<<<<< SKIP\" inert in js line comment\n /* block hint \"<<<<<<< SKIP with spaces\" inert */\n const hint = \"marker \\\"<<<<<<< SKIP\\\" inside string is inert\"\n const tpl = `template <<<<<<< SKIP inside backtick is inert ${a + b}`\n const curl = 'curly “hi” with <<<<<<< skip inert'\n\tconst tabbed = \"tab indent kept as-is\"\n void hint; void tpl; void curl; void tabbed\n return a + b\n}\n<<<<<<< Skip\nconsole.log(add(2, 3))\n<<<<<<< SKIP\n",
"expected": "function add(a, b) {\n // inline hint \"<<<<<<< SKIP\" inert in js line comment\n /* block hint \"<<<<<<< SKIP with spaces\" inert */\n const hint = \"marker \\\"<<<<<<< SKIP\\\" inside string is inert\"\n const tpl = `template <<<<<<< SKIP inside backtick is inert ${a + b}`\n const curl = 'curly “hi” with <<<<<<< skip inert'\n\tconst tabbed = \"tab indent kept as-is\"\n void hint; void tpl; void curl; void tabbed\n return a + b\n}\n\nconsole.log(add(2, 3))"
}