diff options
author | Xavier Noria <fxn@hashref.com> | 2016-07-04 08:05:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 08:05:16 +0200 |
commit | 9bdf08c5a57d0411db866124eca4deba5097c30a (patch) | |
tree | dd5f554a6cba17d61ec0a2346f309e148cb5f470 /guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js | |
parent | 08a907461341486e371774dd69c43852657c0f4f (diff) | |
parent | 9a53b0f44a67905e6d0b45b264ebcccf88485dc5 (diff) | |
download | rails-9bdf08c5a57d0411db866124eca4deba5097c30a.tar.gz rails-9bdf08c5a57d0411db866124eca4deba5097c30a.tar.bz2 rails-9bdf08c5a57d0411db866124eca4deba5097c30a.zip |
Merge pull request #25663 from vipulnsward/updated-syntax-highlighter
Update Syntax Highlighter to version 4 [ci skip]
Diffstat (limited to 'guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js')
-rw-r--r-- | guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js b/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js deleted file mode 100644 index ff98daba16..0000000000 --- a/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'break case catch continue ' + - 'default delete do else false ' + - 'for function if in instanceof ' + - 'new null return super switch ' + - 'this throw true try typeof var while with' - ; - - var r = SyntaxHighlighter.regexLib; - - this.regexList = [ - { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings - { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings - { regex: r.singleLineCComments, css: 'comments' }, // one line comments - { regex: r.multiLineCComments, css: 'comments' }, // multiline comments - { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords - ]; - - this.forHtmlScript(r.scriptScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['js', 'jscript', 'javascript']; - - SyntaxHighlighter.brushes.JScript = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); |