/plugin/syntaxhighlighter3/sxh3/pkg/scripts/ |
H A D | shBrushJavaFX.js | 40 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, 41 { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, 42 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 43 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 44 …{ regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // num… 45 { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes 46 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
H A D | shBrushPerl.js | 62 { regex: /#.*$/gm, css: 'comments' }, 63 { regex: /^#!.*\n/g, css: 'preprocessor' }, // shebang 64 { regex: /-?\w+(?=\s*=(>|>))/g, css: 'string' }, // fat comma 67 { regex: /\bq[qwxr]?\([\s\S]*?\)/g, css: 'string' }, // quote-like operators () 73 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 74 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 76 { regex: /(?:&|[$@%*]|\$#)\$?[a-zA-Z_](\w+|::)*/g, css: 'variable' }, 77 { regex: /\b__(?:END|DATA)__\b[\s\S]*$/g, css: 'comments' }, 80 { regex: /(^|\n)=\w[\s\S]*?(\n=cut\s*(?=\n)|$)/g, css: 'comments' }, // pod 82 { regex: new RegExp(this.getKeywords(funcs), 'gm'), css: 'functions' }, [all …]
|
H A D | shBrushPhp.js | 68 … { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 69 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 70 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strin… 71 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strin… 72 { regex: /\$\w+/g, css: 'variable' }, // variables 73 { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions 74 { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants 75 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
H A D | shBrushPowerShell.js | 51 …{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // on… 52 …{ regex: /(<|<)#[\s\S]*?#(>|>)/gm, css: 'comments here' }, // multi-line co… 54 …{ regex: new RegExp('@"\\n[\\s\\S]*?\\n"@', 'gm'), css: 'script string here' }, // do… 55 …{ regex: new RegExp("@'\\n[\\s\\S]*?\\n'@", 'gm'), css: 'script string single here' }, … 56 …{ regex: new RegExp('"(?:\\$\\([^\\)]*\\)|[^"]|`"|"")*[^`]"','g'), css: 'string' }, //… 57 …{ regex: new RegExp("'(?:[^']|'')*'", 'g'), css: 'string single' }, // single quo… 59 …{ regex: new RegExp('[\\$|@|@@](?:(?:global|script|private|env):)?[A-Z0-9_]+', 'gi'), css: 'vari… 61 …{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, // keywor… 62 …{ regex: new RegExp('-'+this.getKeywords(operators), 'gmi'), css: 'operator value' }, /… 63 …{ regex: new RegExp('\\[[A-Z_\\[][A-Z0-9_. `,\\[\\]]*\\]', 'gi'), css: 'constants' }, … [all …]
|
H A D | shBrushPython.js | 42 { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, 43 { regex: /^\s*@\w+/gm, css: 'decorator' }, 44 { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, 45 { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, 46 { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, 47 { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, 48 { regex: /\b\d+\.?\w*/g, css: 'value' }, 49 { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 50 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 51 { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
H A D | shBrushRuby.js | 35 …{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line commen… 36 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 37 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 38 { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants 39 { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols 40 …{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class varia… 41 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 42 { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
|
H A D | shBrushSass.js | 77 { regex: r.multiLineCComments, css: 'comments' }, // multiline comments 78 { regex: r.singleLineCComments, css: 'comments' }, // singleline comments 79 { regex: r.doubleQuotedString, css: 'string' }, // double quoted strings 80 { regex: r.singleQuotedString, css: 'string' }, // single quoted strings 81 { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors 82 { regex: /\b(-?\d+)(\.\d+)?(px|em|rem|pt|\:|\%|)\b/g, css: 'value' }, // sizes 83 { regex: /\$[\w-]+/g, css: 'variable' }, // variables 84 …{ regex: new RegExp(getKeywordsPrependedBy(statements, '!'), 'g'), css: 'color3' }, // statements 86 { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords 87 { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values [all …]
|
H A D | shBrushScala.js | 33 … { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 34 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 35 …{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line st… 36 …{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quo… 37 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 38 { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers 39 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 40 { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
|
H A D | shBrushSql.js | 49 …{ regex: /--(.*)$/gm, css: 'comments' }, // one li… 50 …{ regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multi … 51 …{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double… 52 …{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single… 53 …{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functi… 54 …{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operat… 55 …{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
H A D | shBrushTAP.js | 33 { regex: new RegExp('^1..\\d+', 'gm'), css: 'plain bold italic' }, 36 { regex: new RegExp('^ok( \\d+)?', 'gm'), css: 'keyword' }, 37 { regex: new RegExp('^not ok( \\d+)?', 'gm'), css: 'color3 bold' }, 40 { regex: new RegExp('(?!^\\s*)#.*$', 'gm'), css: 'variable bold' }, 43 { regex: new RegExp('^#.*$', 'gm'), css: 'comments bold' }, 46 { regex: new RegExp('^(?!(not )?ok)[^1].*$', 'gm'), css: 'comments' }, 49 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 50 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
H A D | shBrushTypeScript.js | 38 { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 39 { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 40 { regex: r.singleLineCComments, css: 'comments' }, // one line comments 41 { regex: r.multiLineCComments, css: 'comments' }, // multiline comments 42 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
H A D | shBrushVb.js | 40 { regex: /'.*$/gm, css: 'comments' }, // one line comments 41 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 42 …{ regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endr… 43 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
|
H A D | shBrushXml.js | 36 regex = XRegExp('(?<name> [\\w:.-]+)' + 41 while ((attributes = XRegExp.exec(code, regex, pos)) != null) 58 …{ regex: XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' … 59 { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... --> 60 …{ regex: XRegExp('(<|<)[\\s\\/\\?!]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func:…
|
H A D | shCore.js | 124 return regex; 161 if (regex.xregexp && !regex.xregexp.isNative) { 163 regex = augment(self(regex.source, flags), 167 regex = augment(new RegExp(regex.source, flags), null, true); 169 return regex; 404 if (regex) { 670 var item = chain[level].regex ? chain[level] : {regex: chain[level]}, 977 regex = new RegExp(regex); // Use native `RegExp` 2013 regex = XRegExp( 2218 regex = /^\s*/, [all …]
|
H A D | shCore.min.js | 17 …regex?t[r]:{regex:t[r]},l=[],s=function(e){l.push(a.backref?e[a.backref]||"":e[0])};for(i=0;e.leng… property in htmlScript.left
|
H A D | shLegacy.js | 33 var regex = XRegExp('^' + name + '\\[(?<value>\\w+)\\]$', 'gi'), 38 if ((match = XRegExp.exec(list[i], regex)) != null)
|
/plugin/syntaxhighlighter3/sxh3/src/js/ |
H A D | shBrushAS3.js | 22 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 23 … { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 24 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 25 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 26 { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers 27 { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations 28 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 29 { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable 30 { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
H A D | shBrushAppleScript.js | 16 { regex: /(--|#).*$/gm, 22 { regex: /"[\s\S]*?"/gm, 25 { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g, // operators 28 { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers 31 { regex: /(?:&(amp;|gt;|lt;)?|=|� |>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g, 37 { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals 46 { regex: /\b(?:tracks|paragraph|text item(s)?)\b/g, 52 { regex: /\b(?:run|exists|count)\b/g, 55 { regex: /\b(?:POSIX (file|path))\b/g, 64 { regex: /\b(?:xxx)\b/g, [all …]
|
H A D | shBrushBash.js | 41 { regex: /^#!.*$/gm, css: 'preprocessor bold' }, 42 { regex: /\/[\w-\/]+/gm, css: 'plain' }, 43 …{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comme… 44 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strin… 45 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strin… 46 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 47 { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' }, // commands 48 …{ regex: new XRegExp("(?<full_tag>(<|<){2}(?<tag>\\w+)) .*$(?<here_doc>[\\s\\S]*)(?<end_tag>^\\…
|
H A D | shBrushCSharp.js | 28 …{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line commen… 29 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 30 { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings 31 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 32 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 33 …{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endr… 34 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword 35 …{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keywor… 36 … { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
H A D | shBrushColdFusion.js | 67 { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments 68 { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings 69 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted stri… 70 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted stri… 71 { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions 72 … { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such 73 { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
H A D | shBrushCpp.js | 63 … { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 64 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 65 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 66 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 67 { regex: /^ *#.*/gm, css: 'preprocessor' }, 68 { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' }, 69 { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' }, 70 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
|
H A D | shBrushCss.js | 51 { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 52 … { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 53 … { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 54 { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors 55 { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes 56 { regex: /!important/g, css: 'color3' }, // !important 57 { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords 58 { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values 59 { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
H A D | shBrushDelphi.js | 21 { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *) 22 { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { } 23 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line 24 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 25 { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags 26 { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345 27 { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3 28 { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
H A D | shBrushDiff.js | 9 { regex: /^\+\+\+ .*$/gm, css: 'color2' }, // new file 10 { regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file 11 { regex: /^\s.*$/gm, css: 'color1' }, // unchanged 12 { regex: /^@@.*@@.*$/gm, css: 'variable' }, // location 13 { regex: /^\+.*$/gm, css: 'string' }, // additions 14 { regex: /^\-.*$/gm, css: 'color3' } // deletions
|