Skip to content

Commit

Permalink
support m4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hideo Hattori committed Apr 7, 2016
1 parent e1d7d61 commit e517f24
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 @@ -104,6 +104,7 @@ var Exts map[string]string = map[string]string{
"mm": "mm",
"makefile": "makefile",
"mustache": "mustache",
"m4": "m4",
"l": "lex",
"php": "php",
"pas": "pas",
Expand Down Expand Up @@ -201,6 +202,8 @@ func getFileType(path string) (ext string, ok bool) {
switch base {
case "CMakeLists.txt":
return "cmake", true
case "configure.ac":
return "m4", 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 @@ -90,6 +90,7 @@ func main() {
makefile := NewLanguage("Makefile", "#", "", "")
markdown := NewLanguage("Markdown", "", "", "")
mustache := NewLanguage("Mustache", "", "{{!", "))")
m4 := NewLanguage("M4", "#", "", "")
lex := NewLanguage("lex", "", "/*", "*/")
objective_c := NewLanguage("Objective C", "//", "/*", "*/")
objective_cpp := NewLanguage("Objective C++", "//", "/*", "*/")
Expand Down Expand Up @@ -164,6 +165,7 @@ func main() {
"mm": objective_cpp,
"makefile": makefile,
"mustache": mustache,
"m4": m4,
"lex": lex,
"php": php,
"pas": pascal,
Expand Down

0 comments on commit e517f24

Please sign in to comment.