MCPcopy Create free account
hub / github.com/unconed/TermKit / Brush

Function Brush

HTML/external/syntaxhighlighter_3.0.83/scripts/shBrushJavaFX.js:22–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
22 function Brush()
23 {
24 // Contributed by Patrick Webster
25 // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
26 var datatypes = 'Boolean Byte Character Double Duration '
27 + 'Float Integer Long Number Short String Void'
28 ;
29
30 var keywords = 'abstract after and as assert at before bind bound break catch class '
31 + 'continue def delete else exclusive extends false finally first for from '
32 + 'function if import in indexof init insert instanceof into inverse last '
33 + 'lazy mixin mod nativearray new not null on or override package postinit '
34 + 'protected public public-init public-read replace return reverse sizeof '
35 + 'step super then this throw true try tween typeof var where while with '
36 + 'attribute let private readonly static trigger'
37 ;
38
39 this.regexList = [
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' }, // numbers
45 { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
46 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
47 ];
48 this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
49 };
50
51 Brush.prototype = new SyntaxHighlighter.Highlighter();
52 Brush.aliases = ['jfx', 'javafx'];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected