diff --git a/src/languages/ruby.js b/src/languages/ruby.js index 6dc887c4e9..154a5c3a2a 100644 --- a/src/languages/ruby.js +++ b/src/languages/ruby.js @@ -46,14 +46,15 @@ function(hljs) { variants: [ {begin: /'/, end: /'/}, {begin: /"/, end: /"/}, - {begin: '%[qw]?\\(', end: '\\)'}, - {begin: '%[qw]?\\[', end: '\\]'}, - {begin: '%[qw]?{', end: '}'}, - {begin: '%[qw]?<', end: '>'}, - {begin: '%[qw]?/', end: '/'}, - {begin: '%[qw]?%', end: '%'}, - {begin: '%[qw]?-', end: '-'}, - {begin: '%[qw]?\\|', end: '\\|'}, + {begin: /`/, end: /`/}, + {begin: '%[qQwWx]?\\(', end: '\\)'}, + {begin: '%[qQwWx]?\\[', end: '\\]'}, + {begin: '%[qQwWx]?{', end: '}'}, + {begin: '%[qQwWx]?<', end: '>'}, + {begin: '%[qQwWx]?/', end: '/'}, + {begin: '%[qQwWx]?%', end: '%'}, + {begin: '%[qQwWx]?-', end: '-'}, + {begin: '%[qQwWx]?\\|', end: '\\|'}, { // \B in the beginning suppresses recognition of ?-sequences where ? // is the last character of a preceding identifier, as in: `func?4`