Skip to content

Commit 0a6e01a

Browse files
author
Renatho De Carli Rosa
committed
Fix line ending style
1 parent fb86972 commit 0a6e01a

30 files changed

+1718
-1718
lines changed

syntaxhighlighter2/scripts/shBrushAS3.js

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
/**
2-
* SyntaxHighlighter
3-
* http://alexgorbatchev.com/
4-
*
5-
* SyntaxHighlighter is donationware. If you are using it, please donate.
6-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7-
*
8-
* @version
9-
* 2.1.364 (October 15 2009)
10-
*
11-
* @copyright
12-
* Copyright (C) 2004-2009 Alex Gorbatchev.
13-
*
14-
* @license
15-
* This file is part of SyntaxHighlighter.
16-
*
17-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
18-
* it under the terms of the GNU Lesser General Public License as published by
19-
* the Free Software Foundation, either version 3 of the License, or
20-
* (at your option) any later version.
21-
*
22-
* SyntaxHighlighter is distributed in the hope that it will be useful,
23-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25-
* GNU General Public License for more details.
26-
*
27-
* You should have received a copy of the GNU General Public License
28-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29-
*/
1+
/**
2+
* SyntaxHighlighter
3+
* http://alexgorbatchev.com/
4+
*
5+
* SyntaxHighlighter is donationware. If you are using it, please donate.
6+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7+
*
8+
* @version
9+
* 2.1.364 (October 15 2009)
10+
*
11+
* @copyright
12+
* Copyright (C) 2004-2009 Alex Gorbatchev.
13+
*
14+
* @license
15+
* This file is part of SyntaxHighlighter.
16+
*
17+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
18+
* it under the terms of the GNU Lesser General Public License as published by
19+
* the Free Software Foundation, either version 3 of the License, or
20+
* (at your option) any later version.
21+
*
22+
* SyntaxHighlighter is distributed in the hope that it will be useful,
23+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+
* GNU General Public License for more details.
26+
*
27+
* You should have received a copy of the GNU General Public License
28+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29+
*/
3030
SyntaxHighlighter.brushes.AS3 = function()
3131
{
3232
// Created by Peter Atoria @ http://iAtoria.com
33-
33+
3434
var inits = 'class interface function package';
35-
36-
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
37-
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
38-
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
39-
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
40-
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
41-
'return set static String super switch this throw true try typeof uint undefined unescape ' +
35+
36+
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
37+
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
38+
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
39+
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
40+
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
41+
'return set static String super switch this throw true try typeof uint undefined unescape ' +
4242
'use void while with'
4343
;
44-
44+
4545
this.regexList = [
4646
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
4747
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
@@ -53,7 +53,7 @@ SyntaxHighlighter.brushes.AS3 = function()
5353
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
5454
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
5555
];
56-
56+
5757
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
5858
};
5959

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
/**
2-
* SyntaxHighlighter
3-
* http://alexgorbatchev.com/
4-
*
5-
* SyntaxHighlighter is donationware. If you are using it, please donate.
6-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7-
*
8-
* @version
9-
* 2.1.364 (October 15 2009)
10-
*
11-
* @copyright
12-
* Copyright (C) 2004-2009 Alex Gorbatchev.
13-
*
14-
* @license
15-
* This file is part of SyntaxHighlighter.
16-
*
17-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
18-
* it under the terms of the GNU Lesser General Public License as published by
19-
* the Free Software Foundation, either version 3 of the License, or
20-
* (at your option) any later version.
21-
*
22-
* SyntaxHighlighter is distributed in the hope that it will be useful,
23-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25-
* GNU General Public License for more details.
26-
*
27-
* You should have received a copy of the GNU General Public License
28-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29-
*/
30-
SyntaxHighlighter.brushes.Bash = function()
31-
{
32-
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
33-
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
34-
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
35-
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
36-
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
37-
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
38-
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
39-
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
40-
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
41-
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
42-
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
43-
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
44-
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
45-
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
46-
'vi watch wc whereis which who whoami Wget xargs yes'
47-
;
48-
49-
this.findMatches = function(regexList, code)
50-
{
51-
code = code.replace(/&gt;/g, '>').replace(/&lt;/g, '<');
52-
this.code = code;
53-
return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
54-
};
55-
56-
this.regexList = [
57-
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
58-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
59-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
60-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
61-
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
62-
];
63-
}
64-
65-
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
66-
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
1+
/**
2+
* SyntaxHighlighter
3+
* http://alexgorbatchev.com/
4+
*
5+
* SyntaxHighlighter is donationware. If you are using it, please donate.
6+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7+
*
8+
* @version
9+
* 2.1.364 (October 15 2009)
10+
*
11+
* @copyright
12+
* Copyright (C) 2004-2009 Alex Gorbatchev.
13+
*
14+
* @license
15+
* This file is part of SyntaxHighlighter.
16+
*
17+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
18+
* it under the terms of the GNU Lesser General Public License as published by
19+
* the Free Software Foundation, either version 3 of the License, or
20+
* (at your option) any later version.
21+
*
22+
* SyntaxHighlighter is distributed in the hope that it will be useful,
23+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+
* GNU General Public License for more details.
26+
*
27+
* You should have received a copy of the GNU General Public License
28+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29+
*/
30+
SyntaxHighlighter.brushes.Bash = function()
31+
{
32+
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
33+
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
34+
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
35+
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
36+
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
37+
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
38+
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
39+
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
40+
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
41+
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
42+
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
43+
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
44+
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
45+
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
46+
'vi watch wc whereis which who whoami Wget xargs yes'
47+
;
48+
49+
this.findMatches = function(regexList, code)
50+
{
51+
code = code.replace(/&gt;/g, '>').replace(/&lt;/g, '<');
52+
this.code = code;
53+
return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
54+
};
55+
56+
this.regexList = [
57+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
58+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
59+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
60+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
61+
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
62+
];
63+
}
64+
65+
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
66+
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
/**
2-
* SyntaxHighlighter
3-
* http://alexgorbatchev.com/
4-
*
5-
* SyntaxHighlighter is donationware. If you are using it, please donate.
6-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7-
*
8-
* @version
9-
* 2.1.364 (October 15 2009)
10-
*
11-
* @copyright
12-
* Copyright (C) 2004-2009 Alex Gorbatchev.
13-
*
14-
* @license
15-
* This file is part of SyntaxHighlighter.
16-
*
17-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
18-
* it under the terms of the GNU Lesser General Public License as published by
19-
* the Free Software Foundation, either version 3 of the License, or
20-
* (at your option) any later version.
21-
*
22-
* SyntaxHighlighter is distributed in the hope that it will be useful,
23-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25-
* GNU General Public License for more details.
26-
*
27-
* You should have received a copy of the GNU General Public License
28-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29-
*/
30-
SyntaxHighlighter.brushes.CSharp = function()
31-
{
32-
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
33-
'continue decimal default delegate do double else enum event explicit ' +
34-
'extern false finally fixed float for foreach get goto if implicit in int ' +
35-
'interface internal is lock long namespace new null object operator out ' +
36-
'override params private protected public readonly ref return sbyte sealed set ' +
37-
'short sizeof stackalloc static string struct switch this throw true try ' +
38-
'typeof uint ulong unchecked unsafe ushort using virtual void while';
39-
40-
function fixComments(match, regexInfo)
41-
{
42-
var css = (match[0].indexOf("///") == 0)
43-
? 'color1'
44-
: 'comments'
45-
;
46-
47-
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
48-
}
49-
50-
this.regexList = [
51-
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
52-
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
53-
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
54-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
55-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
56-
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
57-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
58-
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
59-
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
60-
];
61-
62-
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
63-
};
64-
65-
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
66-
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
67-
1+
/**
2+
* SyntaxHighlighter
3+
* http://alexgorbatchev.com/
4+
*
5+
* SyntaxHighlighter is donationware. If you are using it, please donate.
6+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7+
*
8+
* @version
9+
* 2.1.364 (October 15 2009)
10+
*
11+
* @copyright
12+
* Copyright (C) 2004-2009 Alex Gorbatchev.
13+
*
14+
* @license
15+
* This file is part of SyntaxHighlighter.
16+
*
17+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
18+
* it under the terms of the GNU Lesser General Public License as published by
19+
* the Free Software Foundation, either version 3 of the License, or
20+
* (at your option) any later version.
21+
*
22+
* SyntaxHighlighter is distributed in the hope that it will be useful,
23+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+
* GNU General Public License for more details.
26+
*
27+
* You should have received a copy of the GNU General Public License
28+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29+
*/
30+
SyntaxHighlighter.brushes.CSharp = function()
31+
{
32+
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
33+
'continue decimal default delegate do double else enum event explicit ' +
34+
'extern false finally fixed float for foreach get goto if implicit in int ' +
35+
'interface internal is lock long namespace new null object operator out ' +
36+
'override params private protected public readonly ref return sbyte sealed set ' +
37+
'short sizeof stackalloc static string struct switch this throw true try ' +
38+
'typeof uint ulong unchecked unsafe ushort using virtual void while';
39+
40+
function fixComments(match, regexInfo)
41+
{
42+
var css = (match[0].indexOf("///") == 0)
43+
? 'color1'
44+
: 'comments'
45+
;
46+
47+
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
48+
}
49+
50+
this.regexList = [
51+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
52+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
53+
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
54+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
55+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
56+
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
57+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
58+
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
59+
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
60+
];
61+
62+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
63+
};
64+
65+
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
66+
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
67+

0 commit comments

Comments
 (0)