diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index e926889e..55fc6933 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -19,7 +19,7 @@ # language_id - Integer used as a language-name-independent indexed field so that we can rename # languages in Linguist without reindexing all the code on GitHub. Must not be # changed for existing languages without the explicit permission of GitHub staff. -# color - CSS hex color to represent the language. +# color - CSS hex color to represent the language. Only used if type is "programming" or "prose" # tm_scope - The TextMate scope that represents this programming # language. This should match one of the scopes listed in # the grammars.yml file. Use "none" if there is no grammar @@ -103,7 +103,6 @@ APL: language_id: 6 ASN.1: type: data - color: "#aeead0" extensions: - ".asn" - ".asn1" diff --git a/test/test_language.rb b/test/test_language.rb index 1f6d19d2..08f60112 100644 --- a/test/test_language.rb +++ b/test/test_language.rb @@ -494,4 +494,11 @@ class TestLanguage < Minitest::Test message << missing.sort.join("\n") assert missing.empty?, message end + + def test_no_unused_colours + Language.all.each do |language| + next unless language.type == :data || language.type == :prose + assert !language.color, "Unused colour assigned to #{language.name}" + end + end end diff --git a/vendor/grammars/language-asn1 b/vendor/grammars/language-asn1 index bc3811c7..208b6d9e 160000 --- a/vendor/grammars/language-asn1 +++ b/vendor/grammars/language-asn1 @@ -1 +1 @@ -Subproject commit bc3811c7706476e48f5085660b72b18ad028314f +Subproject commit 208b6d9ebe873180b109a286a481ca6639200d3e