shBrushJScript.js
上传用户:gdxydsw
上传日期:2019-01-29
资源大小:16721k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. /*
  2.  * JsMin
  3.  * Javascript Compressor
  4.  * http://www.crockford.com/
  5.  * http://www.smallsharptools.com/
  6. */
  7. dp.sh.Brushes.JScript=function()
  8. {var keywords='abstract boolean break byte case catch char class const continue debugger '+'default delete do double else enum export extends false final finally float '+'for function goto if implements import in instanceof int interface long native '+'new null package private protected public return short static super switch '+'synchronized this throw throws transient true try typeof var void volatile while with';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('^\s*#.*','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';}
  9. dp.sh.Brushes.JScript.prototype=new dp.sh.Highlighter();dp.sh.Brushes.JScript.Aliases=['js','jscript','javascript'];