Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Commit 9aae468

Browse files
committed
Fix non-highlighted keywords.
1 parent f91d178 commit 9aae468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_assets/js/swift-site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ $(function() {
134134
// operator functions
135135
$(link).html( $(link).html().replace(/^((final |class |static |mutating |prefix )*(func)) ((&amp;|&lt;|&gt;|[+-\/*%|^!=.~])+)/i, '$1 <span class="identifier">$4</span>') );
136136
// other symbols
137-
$(link).html( $(link).html().replace(/^((final |class |static |mutating |prefix )*(func|var|case)) ([a-z0-9]+)/i, '$1 <span class="identifier">$4</span>') );
137+
$(link).html( $(link).html().replace(/^((final |class |static |mutating |prefix )*(func|var|case))(?:<wbr>| )+([a-z0-9]+)/i, '$1 <span class="identifier">$4</span>') );
138138
// init / subscript
139139
$(link).html( $(link).html().replace(/^(init|subscript)/, '<span class="identifier">$1</span>') );
140140

0 commit comments

Comments
 (0)