Skip to content

Commit

Permalink
support Rebol
Browse files Browse the repository at this point in the history
  • Loading branch information
Hideo Hattori committed Sep 20, 2016
1 parent 9404892 commit a28cfbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion language.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ var Exts map[string]string = map[string]string{
"pyx": "Cython",
"r": "R",
"R": "R",
"Rebol": "Rebol",
"red": "Red",
"Rmd": "RMarkdown",
"rake": "Ruby",
Expand Down Expand Up @@ -271,7 +272,7 @@ func getFileType(path string) (ext string, ok bool) {
base := filepath.Base(path)

switch ext {
case ".m", ".v", ".fs":
case ".m", ".v", ".fs", ".r":
// TODO: this is slow. parallelize...
hints := linguist.LanguageHints(path)
cont, err := getContents(path)
Expand Down Expand Up @@ -448,6 +449,7 @@ func GetDefinitionLanguages() map[string]*Language {
"Protocol Buffers": NewLanguage("Protocol Buffers", "//", "", ""),
"Python": NewLanguage("Python", "#", "\"\"\"", "\"\"\""),
"R": NewLanguage("R", "#", "", ""),
"Rebol": NewLanguage("Rebol", ";", "", ""),
"Red": NewLanguage("Red", ";", "", ""),
"RMarkdown": NewLanguage("RMarkdown", "", "", ""),
"Racket": NewLanguage("Racket", ";", "#|", "|#"),
Expand Down

0 comments on commit a28cfbd

Please sign in to comment.