handle both go and sh comments

This commit is contained in:
Mark McGranaghan 2012-10-01 13:45:45 -07:00
parent 742ba50ad2
commit 7211578d9f

View File

@ -30,9 +30,9 @@ func pipe(bin string, arg []string, src string) string {
return string(bytes)
}
var docsPat = regexp.MustCompile("^\\s*\\/\\/\\s")
var docsPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s")
var headerPat = regexp.MustCompile("^\\s*\\/\\/\\s#+\\s")
var headerPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s#+\\s")
type seg struct {
docs, code, docsRendered, codeRendered, codeClasses string