Skip to content

Commit

Permalink
Ignore files in src directories of grammars (github-linguist#5088)
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude authored Nov 9, 2020
1 parent 7840f93 commit a8f5455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/grammars/compiler/loader_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ func (l *fsLoader) load() {
return
}

// Ignore all files under src directories
if ok, _ := filepath.Match("*/src/*", rel); ok {
continue
}

if IgnoredFiles[rel] {
continue
}
Expand Down

0 comments on commit a8f5455

Please sign in to comment.