Skip to content

Commit

Permalink
support Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Apr 10, 2016
1 parent a003127 commit c5f9019
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions language.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ var Exts map[string]string = map[string]string{
"ml": "ml",
"mli": "ml",
"mm": "mm",
"maven": "maven",
"makefile": "makefile",
"mustache": "mustache",
"m4": "m4",
Expand Down Expand Up @@ -224,6 +225,8 @@ func getFileType(path string) (ext string, ok bool) {
return "m4", true
case "Makefile.am":
return "makefile", true
case "pom.xml":
return "maven", true
}

switch strings.ToLower(base) {
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func main() {
lua := NewLanguage("Lua", "--", "--[[", "]]")
makefile := NewLanguage("Makefile", "#", "", "")
markdown := NewLanguage("Markdown", "", "", "")
maven := NewLanguage("Maven", "<!--", "<!--", "-->")
mustache := NewLanguage("Mustache", "", "{{!", "))")
m4 := NewLanguage("M4", "#", "", "")
lex := NewLanguage("lex", "", "/*", "*/")
Expand Down Expand Up @@ -181,6 +182,7 @@ func main() {
"ml": ocaml,
"mm": objective_cpp,
"makefile": makefile,
"maven": maven,
"mustache": mustache,
"m4": m4,
"lex": lex,
Expand Down

0 comments on commit c5f9019

Please sign in to comment.