handle both go and sh comments
This commit is contained in:
parent
742ba50ad2
commit
7211578d9f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user