wop commited on
Commit
92493c8
·
verified ·
1 Parent(s): 10b68ce

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +1 -1
templates/index.html CHANGED
@@ -1468,7 +1468,7 @@
1468
  if (!lang || lang === 'text' || lang === 'plain') return e;
1469
  return e
1470
  // comments
1471
- .replace(/(\/\/[^\n]*|#[^\n]*|\/\*[\s\S]*?\*\//g, '<span class="tok-cmt">$1</span>')
1472
  // strings
1473
  .replace(/(["'`])((?:\\.|(?!\1)[^\\])*)\1/g, '<span class="tok-str">$1$2$1</span>')
1474
  // numbers
 
1468
  if (!lang || lang === 'text' || lang === 'plain') return e;
1469
  return e
1470
  // comments
1471
+ .replace(/(\/\/[^\n]*|#[^\n]*|\/\*[\s\S]*?\*\/)/g, '<span class="tok-cmt">$1</span>')
1472
  // strings
1473
  .replace(/(["'`])((?:\\.|(?!\1)[^\\])*)\1/g, '<span class="tok-str">$1$2$1</span>')
1474
  // numbers