Skip to content

Commit a059dbc

Browse files
Merge pull request #12887 from pikinier20/scaladoc/hljs-fix
Scaladoc: Fix emphasis rule in hljs config
2 parents 37c9584 + e611418 commit a059dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaladoc/resources/dotty_res/scripts/hljs-scala3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function highlightDotty(hljs) {
229229
{
230230
className: 'emphasis',
231231
variants: [
232-
{begin: /\*(?![\*\s/])/, end: /\*/},
232+
{begin: /\*(?!([\*\s/])|([^\*]*\*[\*/]))/, end: /\*/},
233233
{begin: /_/, end: /_/}
234234
],
235235
},

0 commit comments

Comments
 (0)