add abap mode

This commit is contained in:
nightwing 2012-11-25 01:28:36 +04:00
commit 4a095c2b7e
4 changed files with 213 additions and 1 deletions

View file

@ -104,6 +104,7 @@ var docs = {
"docs/powershell.ps1": "Powershell",
"docs/python.py": "Python",
"docs/ruby.rb": "Ruby",
"docs/abap.abap": "SAP - ABAP",
"docs/scala.scala": "Scala",
"docs/scss.scss": "SCSS",
"docs/sh.sh": "SH",

View file

@ -27,7 +27,7 @@ var Mode = function(name, desc, extensions) {
var re = "^.*\\.(" + extensions + ")$";
}
this.extRe = new RegExp(re, "g");
this.extRe = new RegExp(re, "gi");
};
Mode.prototype.supportsFile = function(filename) {
@ -35,6 +35,7 @@ Mode.prototype.supportsFile = function(filename) {
};
var modesByName = {
abap: ["ABAP" , "abap"],
asciidoc: ["AsciiDoc" , "asciidoc"],
c9search: ["C9Search" , "c9search_results"],
coffee: ["CoffeeScript" , "^Cakefile|coffee|cf"],