Add back some accidentally pruned grammars

A bug in the prune-grammars script caused these to be removed.
This commit is contained in:
Adam Roben
2014-11-13 13:42:36 -05:00
parent 2870f6d038
commit 613b71719f
2 changed files with 18 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ language_scopes = Linguist::Language.all.map(&:tm_scope).to_set
# The set of used scopes is the scopes for each language, plus all the scopes
# they include, transitively.
used_scopes = language_scopes + language_scopes.flat_map { |s| transitive_includes(s, includes) }.to_set
used_scopes = language_scopes + language_scopes.flat_map { |s| transitive_includes(s, includes).to_a }.to_set
unused = yaml.reject { |repo, scopes| scopes.any? { |scope| used_scopes.include?(scope) } }