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 67644b9 commit 1ce45f3Copy full SHA for 1ce45f3
src/languages/ruby.js
@@ -375,7 +375,7 @@ export default function(hljs) {
375
METHOD_DEFINITION,
376
{
377
// swallow namespace qualifiers before symbols
378
- begin: hljs.IDENT_RE + '::'
+ begin: '::'
379
},
380
381
className: 'symbol',
@@ -384,7 +384,7 @@ export default function(hljs) {
384
385
386
387
- begin: '(?<!:):(?!\\s|:)',
+ begin: ':(?!\\s)',
388
contains: [
389
{ begin: /'/, end: /'/ },
390
0 commit comments