diff options
author | Jinwei Zhao <[email protected]> | 2015-12-19 22:24:42 +0900 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-01-13 15:07:45 +0800 |
commit | dbcebe1def5c355120c61b575390d1d9ac355f67 (patch) | |
tree | 70e61cc34a690c63ff80962e9ef883fe69dba6d3 /Code/Blocks/syntax/scripts/shBrushErlang.js | |
parent | 7e473afdca63f0ceed5d895c3be3b43f213ca136 (diff) | |
download | jinwei.me-dbcebe1def5c355120c61b575390d1d9ac355f67.tar.gz |
clear up
Diffstat (limited to 'Code/Blocks/syntax/scripts/shBrushErlang.js')
-rw-r--r-- | Code/Blocks/syntax/scripts/shBrushErlang.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Code/Blocks/syntax/scripts/shBrushErlang.js b/Code/Blocks/syntax/scripts/shBrushErlang.js deleted file mode 100644 index 6ba7d9d..0000000 --- a/Code/Blocks/syntax/scripts/shBrushErlang.js +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /** | ||
2 | * SyntaxHighlighter | ||
3 | * http://alexgorbatchev.com/SyntaxHighlighter | ||
4 | * | ||
5 | * SyntaxHighlighter is donationware. If you are using it, please donate. | ||
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html | ||
7 | * | ||
8 | * @version | ||
9 | * 3.0.83 (July 02 2010) | ||
10 | * | ||
11 | * @copyright | ||
12 | * Copyright (C) 2004-2010 Alex Gorbatchev. | ||
13 | * | ||
14 | * @license | ||
15 | * Dual licensed under the MIT and GPL licenses. | ||
16 | */ | ||
17 | ;(function() | ||
18 | { | ||
19 | // CommonJS | ||
20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; | ||
21 | |||
22 | function Brush() | ||
23 | { | ||
24 | // Contributed by Jean-Lou Dupont | ||
25 | // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html | ||
26 | |||
27 | // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5 | ||
28 | var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+ | ||
29 | 'case catch cond div end fun if let not of or orelse '+ | ||
30 | 'query receive rem try when xor'+ | ||
31 | // additional | ||
32 | ' module export import define'; | ||
33 | |||
34 | this.regexList = [ | ||
35 | { 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' } | ||
42 | ]; | ||
43 | }; | ||
44 | |||
45 | Brush.prototype = new SyntaxHighlighter.Highlighter(); | ||
46 | Brush.aliases = ['erl', 'erlang']; | ||
47 | |||
48 | SyntaxHighlighter.brushes.Erland = Brush; | ||
49 | |||
50 | // CommonJS | ||
51 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; | ||
52 | })(); | ||