Skip to content

Commit

Permalink
add Meson
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Aug 13, 2018
1 parent cd41a7d commit 4ecfc37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions language.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ var Exts = map[string]string{
"mm": "Objective-C++",
"maven": "Maven",
"makefile": "Makefile",
"meson": "Meson",
"mustache": "Mustache",
"m4": "M4",
"l": "lex",
Expand Down Expand Up @@ -315,6 +316,8 @@ func getFileType(path string, opts *ClocOptions) (ext string, ok bool) {
}

switch base {
case "meson.build", "meson_options.txt":
return "meson", true
case "CMakeLists.txt":
return "cmake", true
case "configure.ac":
Expand Down Expand Up @@ -478,6 +481,7 @@ func NewDefinedLanguages() *DefinedLanguages {
"MATLAB": NewLanguage("MATLAB", []string{"%"}, "%{", "}%"),
"Mercury": NewLanguage("Mercury", []string{"%"}, "/*", "*/"),
"Maven": NewLanguage("Maven", []string{"<!--"}, "<!--", "-->"),
"Meson": NewLanguage("Meson", []string{"#"}, "", ""),
"Mustache": NewLanguage("Mustache", []string{}, "{{!", "}}"),
"M4": NewLanguage("M4", []string{"#"}, "", ""),
"Nim": NewLanguage("Nim", []string{"#"}, "#[", "]#"),
Expand Down

0 comments on commit 4ecfc37

Please sign in to comment.