MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / esc

Function esc

api/mode.ts:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 ? "//"
56 : "/\u002a",
57 esc = function mode_pdcomment_esc():boolean {
58 if (source.charAt(a - 1) !== "\\") {
59 return false;
60 }
61 let x:number = a;
62 do {
63 x = x - 1;
64 } while (x > 0 && source.charAt(x) === "\\");
65 if ((a - x) % 2 === 0) {
66 return true;
67 }
68 return false;
69 };
70 do {
71 if (source.slice(a - 3, a) === "com") {
72 break;

Callers 1

pdcommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected