Permalink
Browse files

Merge branch 'sx-lang-master' into fd-structured-change-descriptions

  • Loading branch information...
fd committed Feb 22, 2013
2 parents 64c32e7 + 507847f commit ccd5531b97be40e7e5acad87fe7a5455268647bc
Showing with 8 additions and 1 deletion.
  1. +8 −1 lang/cmd/sxdoc/dirtrees.go
@@ -38,8 +38,15 @@ func isGoFile(fi os.FileInfo) bool {
pathpkg.Ext(name) == ".go"
}
+func isSxFile(fi os.FileInfo) bool {
+ name := fi.Name()
+ return !fi.IsDir() &&
+ len(name) > 0 && name[0] != '.' && // ignore .files
+ pathpkg.Ext(name) == ".sx"
+}
+
func isPkgFile(fi os.FileInfo) bool {
- return isGoFile(fi) &&
+ return (isGoFile(fi) || isSxFile(fi)) &&
!strings.HasSuffix(fi.Name(), "_test.go") // ignore test files
}

0 comments on commit ccd5531

Please sign in to comment.