window.Rainbow = window.Rainbow || {};

Rainbow.extend('javascript', [

    /**
     * matches $.  or $(
     */
    {
        'name': 'selector',
        'pattern': /\s\$(?=\.|\()/g
    },
    {
        'name': 'support',
        'pattern': /\b(window|document)\b/g
    },
    {
        'matches': {
            1: 'support.property'
        },
        'pattern': /\.(length|node(Name|Value))\b/g
    },
    {
        'matches': {
            1: 'support.function'
        },
        'pattern': /\.(getAttribute|push|getElementById|getElementsByClassName|log)\(/g
    },

    /**
     * matches any escaped characters inside of a js regex pattern
     */
    {
        'matches': {
            1: {
                'name': 'constant.regex',
                'pattern': /\\(.){1}/g
            }
        },
        'pattern': /\/(.*?)\//g
    },

    /**
     * matches any function call in the style functionName: function()
     */
    {
        'name': 'meta.function-call',
        'pattern': /(\w+)(?=:\s{0,}function)/g
    },
    {
        'matches': {
            2: [
                {
                    'name': 'string',
                    'pattern': /('|")(.*?)(\1)/g
                },
                {
                    'name': 'meta.script-tag',
                    'pattern': /(\w+)/g
                }
            ]
        },
        'pattern': /(&lt;\/?)(script(.*?))(&gt;)/g
    }
    /*,
    {
        'name': 'comment',
        'matches': {
            1: {
                'name': 'keyword.jsdoc',
                'pattern': /\s+@\w+/g
            }
        },
        'pattern': /\/\*([\s\S]*?)\*\//gm
    } */
]);

@@ -553,18 +553,22 @@
 ame%7Clog)
+(?=
 %5C(
+)
 /g%0A    %7D

Use positive lookahead