We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dba507 commit 35a7333Copy full SHA for 35a7333
src/languages/javascript.js
@@ -256,9 +256,7 @@ export default function(hljs) {
256
regex.lookahead(regex.concat(
257
// we also need to allow for multiple possible comments inbetween
258
// the first key:value pairing
259
- /(\/\/.*$)*/,
260
- /(\/\*(.|\n)*\*\/)*/,
261
- /\s*/,
+ /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,
262
IDENT_RE + '\\s*:'))),
263
relevance: 0,
264
contains: [
0 commit comments