Skip to content

Commit

Permalink
support Nu
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Sep 11, 2016
1 parent eec67cb commit 99e75c2
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 @@ -134,6 +134,7 @@ var Exts map[string]string = map[string]string{
"markdown": "Markdown",
"nsi": "NSIS",
"nsh": "NSIS",
"nu": "Nu",
"ML": "OCaml",
"ml": "OCaml",
"mli": "OCaml",
Expand Down Expand Up @@ -295,6 +296,8 @@ func getFileType(path string) (ext string, ok bool) {
switch strings.ToLower(base) {
case "makefile":
return "makefile", true
case "nukefile":
return "nu", true
case "rebar": // skip
return "", false
}
Expand Down Expand Up @@ -415,6 +418,7 @@ func GetDefinitionLanguages() map[string]*Language {
"Objective-C": NewLanguage("Objective-C", "//", "/*", "*/"),
"Markdown": NewLanguage("Markdown", "", "", ""),
"NSIS": NewLanguage("NSIS", "#,;", "/*", "*/"),
"Nu": NewLanguage("Nu", ";,#", "", ""),
"OCaml": NewLanguage("OCaml", "", "(*", "*)"),
"Objective-C++": NewLanguage("Objective-C++", "//", "/*", "*/"),
"Makefile": NewLanguage("Makefile", "#", "", ""),
Expand Down

0 comments on commit 99e75c2

Please sign in to comment.