File tree 1 file changed +4
-4
lines changed
scaladoc/resources/dotty_res/scripts
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ function highlightDotty(hljs) {
5
5
const capitalizedId = / \b [ A - Z ] [ $ \w ] * \b /
6
6
const alphaId = / [ a - z A - Z $ _ ] [ $ \w ] * /
7
7
const op = / [ ^ \s \w \d , " ' ( ) [ \] { } ] + /
8
- const id = new RegExp ( `(${ alphaId . source } ((?<=_) ${ op . source } )?|${ op . source } |\`.*?\`)` )
8
+ const id = new RegExp ( `(${ alphaId . source } ((?:_)( ${ op . source } ) )?|${ op . source } |\`.*?\`)` )
9
9
10
10
// numbers
11
11
const hexDigit = '[a-fA-F0-9]'
@@ -36,7 +36,7 @@ function highlightDotty(hljs) {
36
36
function titleFor ( name ) {
37
37
return {
38
38
className : 'title' ,
39
- begin : `(?<= ${ name } )${ id . source } `
39
+ begin : `((?: ${ name } )( ) )${ id . source } `
40
40
}
41
41
}
42
42
@@ -207,7 +207,7 @@ function highlightDotty(hljs) {
207
207
} ,
208
208
{
209
209
className : 'link' ,
210
- begin : / (?< = \[ .* ?\] ) \( / , end : / \) / ,
210
+ begin : / (?: \[ .* ?\] ) ( \( ) / , end : / \) / ,
211
211
}
212
212
]
213
213
} )
@@ -343,7 +343,7 @@ function highlightDotty(hljs) {
343
343
{
344
344
// case A, B, C
345
345
className : 'title' ,
346
- begin : `(?<= (case|,) * )${ id . source } `
346
+ begin : `(?: (case|,)( *) )${ id . source } `
347
347
} ,
348
348
PARAMS ,
349
349
EXTENDS_PARENT ,
You can’t perform that action at this time.
0 commit comments