Sha256: 0054638603650d2263999b12847b8edd85f7241343a5de93b51815b360bc1f71
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
(function() { typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; function Brush() { var constants = 'FALSE NULL TRUE'; var keywords = 'break continue else export for foreach function global_var if ' + 'import include local_var repeat return until while'; this.regexList = [ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comment' }, { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, { regex: new RegExp('\\b[0-9]+\\b', 'gm'), css: 'number' }, { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constant' }, { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, { regex: new RegExp('\\b[A-Za-z_][A-Za-z0-9_]*\\b(?=\\s*\\()', 'gm'), css: 'function' }, { regex: new RegExp('\\b[A-Za-z_][A-Za-z0-9_]*\\b(?!\\s*\\()', 'gm'), css: 'variable' } ]; }; Brush.prototype = new SyntaxHighlighter.Highlighter(); Brush.aliases = ['nasl']; SyntaxHighlighter.brushes.Nasl = Brush; typeof(exports) != 'undefined' ? exports.Brush = Brush : null; })();
Version data entries
6 entries across 6 versions & 1 rubygems