Home
last modified time | relevance | path

Searched refs:regex (Results 301 – 325 of 380) sorted by path

1...<<111213141516

/plugin/syntaxhighlighter3/sxh3/pkg/scripts/
H A DshBrushJavaFX.js40 { 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 DshBrushPerl.js62 { regex: /#.*$/gm, css: 'comments' },
63 { regex: /^#!.*\n/g, css: 'preprocessor' }, // shebang
64 { regex: /-?\w+(?=\s*=(>|&gt;))/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: /(?:&amp;|[$@%*]|\$#)\$?[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 DshBrushPhp.js68 … { 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 DshBrushPowerShell.js51 …{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // on…
52 …{ regex: /(&lt;|<)#[\s\S]*?#(&gt;|>)/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 DshBrushPython.js42 { 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 DshBrushRuby.js35 …{ 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 DshBrushSass.js77 { 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 DshBrushScala.js33 … { 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 DshBrushSql.js49 …{ 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 DshBrushTAP.js33 { 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 DshBrushTypeScript.js38 { 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 DshBrushVb.js40 { 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 DshBrushXml.js36 regex = XRegExp('(?<name> [\\w:.-]+)' +
41 while ((attributes = XRegExp.exec(code, regex, pos)) != null)
58 …{ regex: XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'), css: 'color2' …
59 { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
60 …{ regex: XRegExp('(&lt;|<)[\\s\\/\\?!]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func:…
H A DshCore.js124 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 DshCore.min.js17regex?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 DshLegacy.js33 var regex = XRegExp('^' + name + '\\[(?<value>\\w+)\\]$', 'gi'),
38 if ((match = XRegExp.exec(list[i], regex)) != null)
/plugin/syntaxhighlighter3/sxh3/src/js/
H A DshBrushAS3.js22 { 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 DshBrushAppleScript.js16 { 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 DshBrushBash.js41 { 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>(&lt;|<){2}(?<tag>\\w+)) .*$(?<here_doc>[\\s\\S]*)(?<end_tag>^\\…
H A DshBrushCSharp.js28 …{ 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 DshBrushColdFusion.js67 { 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 DshBrushCpp.js63 … { 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 DshBrushCss.js51 { 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 DshBrushDelphi.js21 { 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 DshBrushDiff.js9 { 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

1...<<111213141516