Skip to content

Commit 1ce45f3

Browse files
committed
remove negative lookbehind
Signed-off-by: jimtng <[email protected]>
1 parent 67644b9 commit 1ce45f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/languages/ruby.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export default function(hljs) {
375375
METHOD_DEFINITION,
376376
{
377377
// swallow namespace qualifiers before symbols
378-
begin: hljs.IDENT_RE + '::'
378+
begin: '::'
379379
},
380380
{
381381
className: 'symbol',
@@ -384,7 +384,7 @@ export default function(hljs) {
384384
},
385385
{
386386
className: 'symbol',
387-
begin: '(?<!:):(?!\\s|:)',
387+
begin: ':(?!\\s)',
388388
contains: [
389389
{ begin: /'/, end: /'/ },
390390
{

0 commit comments

Comments
 (0)