diff --git a/identify/extensions.py b/identify/extensions.py index e0b5633..00e58a5 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -106,6 +106,8 @@ 'h': {'text', 'header', 'c', 'c++'}, 'hbs': {'text', 'handlebars'}, 'hcl': {'text', 'hcl'}, + 'heic': {'binary', 'image', 'heic'}, + 'heif': {'binary', 'image', 'heif'}, 'hlsl': {'text', 'hlsl'}, 'hlsli': {'text', 'hlsl'}, 'hh': {'text', 'header', 'c++'}, diff --git a/tests/identify_test.py b/tests/identify_test.py index a82f353..66b7e18 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -187,6 +187,8 @@ def test_tags_from_path_plist_text(tmpdir): # case of extension should be ignored ('f.JPG', {'binary', 'image', 'jpeg'}), + ('f.heic', {'binary', 'image', 'heic'}), + ('f.HEIF', {'binary', 'image', 'heif'}), # but case of name checks should still be honored ('dockerfile.py', {'text', 'python'}),