diff --git a/indexbuilder.go b/indexbuilder.go
index <HASH>..<HASH> 100644
--- a/indexbuilder.go
+++ b/indexbuilder.go
@@ -341,6 +341,9 @@ func (b *IndexBuilder) Add(doc Document) error {
 	if doc.SkipReason != "" {
 		doc.Content = []byte(notIndexedMarker + doc.SkipReason)
 		doc.Symbols = nil
+		if doc.Language == "" {
+			doc.Language = "skipped"
+		}
 	}
 
 	sort.Sort(docSectionSlice(doc.Symbols))
Set Language to "skipped" for skipped files.

Change-Id: I1f<I>be<I>c<I>f2ecaed<I>