Skip to content

Commit daf6023

Browse files
committed
Add support for meson.options
Signed-off-by: Lorenzo Delgado <[email protected]>
1 parent 53fdb98 commit daf6023

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

identify/extensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@
390390
'MAINTAINERS': EXTENSIONS['txt'],
391391
'Makefile': EXTENSIONS['mk'],
392392
'meson.build': EXTENSIONS['meson'],
393-
'meson_options.txt': EXTENSIONS['meson'],
393+
'meson.options': EXTENSIONS['meson'] | {'meson-options'},
394+
'meson_options.txt': EXTENSIONS['meson'] | {'meson-options'},
394395
'makefile': EXTENSIONS['mk'],
395396
'NEWS': EXTENSIONS['txt'],
396397
'NOTICE': EXTENSIONS['txt'],

tests/identify_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ def test_tags_from_path_plist_text(tmpdir):
170170
('build.jenkins', {'text', 'groovy', 'jenkins'}),
171171
('build.jenkinsfile', {'text', 'groovy', 'jenkins'}),
172172
('meson.build', {'text', 'meson'}),
173-
('meson_options.txt', {'text', 'plain-text', 'meson'}),
173+
('meson.options', {'text', 'meson', 'meson-options'}),
174+
(
175+
'meson_options.txt',
176+
{'text', 'plain-text', 'meson', 'meson-options'},
177+
),
174178
('Vagrantfile', {'text', 'ruby'}),
175179
('Tiltfile', {'text', 'tiltfile'}),
176180
('Tiltfile.abc', {'text', 'tiltfile'}),

0 commit comments

Comments
 (0)