Home
last modified time | relevance | path

Searched refs:regex (Results 276 – 300 of 380) sorted by path

1...<<111213141516

/plugin/syntaxhighlighter/Uncompressed/
H A DshBrushCss.js36 { regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
37 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // double quoted strings
38 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // single quoted strings
39 { regex: new RegExp('\\#[a-zA-Z0-9]{3,6}', 'g'), css: 'value' }, // html colors
40 { regex: new RegExp('(-?\\d+)(\.\\d+)?(px|em|pt|\:|\%|)', 'g'), css: 'value' }, // sizes
41 { regex: new RegExp('!important', 'g'), css: 'important' }, // !important
42 { regex: new RegExp(this.GetKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
43 { regex: new RegExp(this.GetValuesCSS(values), 'g'), css: 'value' }, // values
44 { regex: new RegExp(this.GetValuesCSS(fonts), 'g'), css: 'value' } // fonts
H A DshBrushDelphi.js17 …{ regex: new RegExp('\\(\\*[\\s\\S]*?\\*\\)', 'gm'), css: 'comment' }, // multiline comments …
18 …{ regex: new RegExp('{(?!\\$)[\\s\\S]*?}', 'gm'), css: 'comment' }, // multiline comments { }
19 { regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line
20 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // strings
21 …{ regex: new RegExp('\\{\\$[a-zA-Z]+ .+\\}', 'g'), css: 'directive' }, // Compiler Directives …
22 { regex: new RegExp('\\b[\\d\\.]+\\b', 'g'), css: 'number' }, // numbers 12345
23 { regex: new RegExp('\\$[a-zA-Z0-9]+\\b', 'g'), css: 'number' }, // numbers $F5D3
24 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
H A DshBrushJScript.js10 { regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line comments
11 { regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
12 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // double quoted strings
13 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // single quoted strings
14 …{ regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #reg…
15 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keywords
H A DshBrushJava.js12 { regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line comments
13 { regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
14 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // strings
15 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // strings
16 { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'number' }, // numbers
17 …{ regex: new RegExp('(?!\\@interface\\b)\\@[\\$\\w]+\\b', 'g'), css: 'annotation' }, // annotati…
18 { regex: new RegExp('\\@interface\\b', 'g'), css: 'keyword' }, // @interface keyword
19 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
H A DshBrushPhp.js47 { regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line comments
48 { regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
49 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // double quoted strings
50 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // single quoted strings
51 { regex: new RegExp('\\$\\w+', 'g'), css: 'vars' }, // variables
52 { regex: new RegExp(this.GetKeywords(funcs), 'gmi'), css: 'func' }, // functions
53 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
H A DshBrushPython.js11 { regex: dp.sh.RegexLib.SingleLinePerlComments, css: 'comment' },
12 { regex: new RegExp("^\\s*@\\w+", 'gm'), css: 'decorator' },
13 { regex: new RegExp("(['\"]{3})([^\\1])*?\\1", 'gm'), css: 'comment' },
14 { regex: new RegExp('"(?!")(?:\\.|\\\\\\"|[^\\""\\n\\r])*"', 'gm'), css: 'string' },
15 { regex: new RegExp("'(?!')*(?:\\.|(\\\\\\')|[^\\''\\n\\r])*'", 'gm'), css: 'string' },
16 { regex: new RegExp("\\b\\d+\\.?\\w*", 'g'), css: 'number' },
17 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' },
18 { regex: new RegExp(this.GetKeywords(special), 'gm'), css: 'special' }
H A DshBrushRuby.js13 { regex: dp.sh.RegexLib.SingleLinePerlComments, css: 'comment' }, // one line comments
14 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // double quoted strings
15 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // single quoted strings
16 { regex: new RegExp(':[a-z][A-Za-z0-9_]*', 'g'), css: 'symbol' }, // symbols
17 …{ regex: new RegExp('(\\$|@@|@)\\w+', 'g'), css: 'variable' }, // $global, @instance, and @@cla…
18 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
19 { regex: new RegExp(this.GetKeywords(builtins), 'gm'), css: 'builtin' } // builtins
H A DshBrushSql.js28 { regex: new RegExp('--(.*)$', 'gm'), css: 'comment' }, // one line and multiline comments
29 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // double quoted strings
30 { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // single quoted strings
31 { regex: new RegExp(this.GetKeywords(funcs), 'gmi'), css: 'func' }, // functions
32 { regex: new RegExp(this.GetKeywords(operators), 'gmi'), css: 'op' }, // operators and such
33 { regex: new RegExp(this.GetKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
H A DshBrushVb.js19 { regex: new RegExp('\'.*$', 'gm'), css: 'comment' }, // one line comments
20 { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // strings
21 …{ regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #reg…
22 { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
H A DshBrushXml.js30 var regex = null;
42regex = new RegExp('([:\\w-\.]+)\\s*=\\s*(".*?"|\'.*?\'|\\w+)*|(\\w+)', 'gm'); // Thanks to Tomi B…
43 while((match = regex.exec(this.code)) != null)
65 regex = new RegExp('(?:\&lt;|<)/*\\?*\\s*([:\\w-\.]+)', 'gm');
66 while((match = regex.exec(this.code)) != null)
H A DshCore.js253 dp.sh.Highlighter.prototype.GetMatches = function(regex, css) argument
258 while((match = regex.exec(this.code)) != null)
334 this.GetMatches(this.regexList[i].regex, this.regexList[i].css);
454 var regex = new RegExp('^\\s*', 'g');
463 var matches = regex.exec(lines[i]);
603 var regex = new RegExp('^' + name + '\\[(\\w+)\\]$', 'gi');
607 if((matches = regex.exec(list[i])) != null)
/plugin/syntaxhighlighter3/sxh3/pkg/scripts/
H A DshBrushAS3.js38 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
39 … { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
40 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
41 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
42 { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
43 { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
44 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
45 { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
46 { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
H A DshBrushAppleScript.js32 { regex: /(--|#).*$/gm,
38 { regex: /"[\s\S]*?"/gm,
41 { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g, // operators
44 { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers
47 { regex: /(?:&(amp;|gt;|lt;)?|=|� |>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g,
53 { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals
62 { regex: /\b(?:tracks|paragraph|text item(s)?)\b/g,
68 { regex: /\b(?:run|exists|count)\b/g,
71 { regex: /\b(?:POSIX (file|path))\b/g,
80 { regex: /\b(?:xxx)\b/g,
[all …]
H A DshBrushBash.js57 { regex: /^#!.*$/gm, css: 'preprocessor bold' },
58 { regex: /\/[\w-\/]+/gm, css: 'plain' },
59 …{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comme…
60 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strin…
61 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strin…
62 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
63 { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' }, // commands
64 …{ regex: new XRegExp("(?<full_tag>(&lt;|<){2}(?<tag>\\w+)) .*$(?<here_doc>[\\s\\S]*)(?<end_tag>^\\…
H A DshBrushCSharp.js44 …{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line commen…
45 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
46 { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
47 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49 …{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endr…
50 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
51 …{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keywor…
52 … { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
H A DshBrushColdFusion.js83 { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
84 { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
85 …{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted stri…
86 …{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted stri…
87 { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
88 … { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
89 { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
H A DshBrushCpp.js79 … { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
80 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
81 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
82 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
83 { regex: /^ *#.*/gm, css: 'preprocessor' },
84 { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
85 { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
86 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
H A DshBrushCss.js67 { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
68 … { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
69 … { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
70 { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
71 { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
72 { regex: /!important/g, css: 'color3' }, // !important
73 { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
74 { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
75 { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
H A DshBrushDelphi.js37 { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
38 { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
39 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
40 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
41 { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
42 { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
43 { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
44 { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
H A DshBrushDiff.js25 { regex: /^\+\+\+ .*$/gm, css: 'color2' }, // new file
26 { regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file
27 { regex: /^\s.*$/gm, css: 'color1' }, // unchanged
28 { regex: /^@@.*@@.*$/gm, css: 'variable' }, // location
29 { regex: /^\+.*$/gm, css: 'string' }, // additions
30 { regex: /^\-.*$/gm, css: 'color3' } // deletions
H A DshBrushErlang.js35 { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
36 { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
37 { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
38 { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
39 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
40 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
41 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
H A DshBrushGroovy.js45 …{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line commen…
46 …{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comme…
47 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49 { regex: /""".*"""/g, css: 'string' }, // GStrings
50 { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
51 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
52 { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
53 { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
54 { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
H A DshBrushHaxe.js30 { regex:SyntaxHighlighter.regexLib.singleLineCComments , css:'comments' },
32 { regex:SyntaxHighlighter.regexLib.multiLineCComments , css:'comments' },
34 { regex:SyntaxHighlighter.regexLib.doubleQuotedString , css:'string' },
36 { regex:SyntaxHighlighter.regexLib.singleQuotedString , css:'string' },
38 { regex:/\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi , css:'value' },
44 { regex:new RegExp ( 'var' , 'gm' ) , css:'variable' },
46 { regex:new RegExp ( 'trace' , 'gm' ) , css:'color1' },
48 { regex:new RegExp ( '#if' , 'gm' ) , css:'comments' },
49 { regex:new RegExp ( '#elseif' , 'gm' ) , css:'comments' },
50 { regex:new RegExp ( '#end' , 'gm' ) , css:'comments' },
[all …]
H A DshBrushJScript.js34 { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35 { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36 { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37 { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38 …{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endreg…
39 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
H A DshBrushJava.js33 { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34 { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multiline comments
35 { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38 { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39 { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40 { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword

1...<<111213141516