configs/dot.vim/headers/syntaxhighlighterbrush.js
2012-10-26 02:30:01 +02:00

18 lines
961 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:insert
SyntaxHighlighter.brushes.Custom = function()
{
    var funcs       = '';
    var keywords    = '';
    var operators   = '';
 
    this.regexList = [
        { regex: /--(.*)$/gm,                                               css: 'comments' },
        { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString,    css: 'string' },
        { regex: new RegExp(this.getKeywords(funcs), 'gmi'),                css: 'color2' },
        { regex: new RegExp(this.getKeywords(operators), 'gmi'),            css: 'color1' },
        { regex: new RegExp(this.getKeywords(keywords), 'gmi'),             css: 'keyword' }
        ];
};
SyntaxHighlighter.brushes.Custom.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Custom.aliases    = ['custom', 'ctm', 'ct'];
.