//WTFPL licensed  
SyntaxHighlighter.brushes.Erlang = function()  
{  
 var keywords = 'after begin case catch cond end fun if let of query receive when '+  
  'define record export import include include_lib ifdef ifndef else endif undef '+  
  'apply attribute call do in letrec module primop try';  
  
 this.regexList = [  
  { regex: /%.*$/gm,   			css: 'comment' },   // one line comments  
  { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm,                                      css: 'string' },
  { regex: new RegExp(this.getKeywords(keywords), 'g'),  css: 'keyword' },  // Erlang keyword  
  { regex: /[A-Z][A-Za-z0-9_@]*/gm,	css: 'variable' },
  { regex: /\\w+\/\\d+/g,	css: 'funs'}
  ];  

  this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);  
};
  
SyntaxHighlighter.brushes.Erlang.prototype = new SyntaxHighlighter.Highlighter();  
SyntaxHighlighter.brushes.Erlang.Aliases = ['erlang', 'erl'];  
