Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/languages/ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default function(hljs) {
METHOD_DEFINITION,
{
// swallow namespace qualifiers before symbols
begin: hljs.IDENT_RE + '::'
begin: '::'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think this works.

},
{
className: 'symbol',
Expand All @@ -384,7 +384,7 @@ export default function(hljs) {
},
{
className: 'symbol',
begin: '(?<!:):(?!\\s|:)',
begin: ':(?!\\s)',
contains: [
{ begin: /'/, end: /'/ },
{
Expand Down