diff --git a/identify/extensions.py b/identify/extensions.py index 7d17d166..74c6609f 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -390,7 +390,8 @@ 'MAINTAINERS': EXTENSIONS['txt'], 'Makefile': EXTENSIONS['mk'], 'meson.build': EXTENSIONS['meson'], - 'meson_options.txt': EXTENSIONS['meson'], + 'meson.options': EXTENSIONS['meson'] | {'meson-options'}, + 'meson_options.txt': EXTENSIONS['meson'] | {'meson-options'}, 'makefile': EXTENSIONS['mk'], 'NEWS': EXTENSIONS['txt'], 'NOTICE': EXTENSIONS['txt'], diff --git a/tests/identify_test.py b/tests/identify_test.py index 47b9b3ba..fb372bab 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -170,7 +170,11 @@ def test_tags_from_path_plist_text(tmpdir): ('build.jenkins', {'text', 'groovy', 'jenkins'}), ('build.jenkinsfile', {'text', 'groovy', 'jenkins'}), ('meson.build', {'text', 'meson'}), - ('meson_options.txt', {'text', 'plain-text', 'meson'}), + ('meson.options', {'text', 'meson', 'meson-options'}), + ( + 'meson_options.txt', + {'text', 'plain-text', 'meson', 'meson-options'}, + ), ('Vagrantfile', {'text', 'ruby'}), ('Tiltfile', {'text', 'tiltfile'}), ('Tiltfile.abc', {'text', 'tiltfile'}),