Skip to content

Commit 0ce8827

Browse files
authored
Merge pull request #537 from LNSD/add-meson-options-support
Add support for `meson.options`
2 parents 29d1fcc + daf6023 commit 0ce8827

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
@@ -391,7 +391,8 @@
391391
'MAINTAINERS': EXTENSIONS['txt'],
392392
'Makefile': EXTENSIONS['mk'],
393393
'meson.build': EXTENSIONS['meson'],
394-
'meson_options.txt': EXTENSIONS['meson'],
394+
'meson.options': EXTENSIONS['meson'] | {'meson-options'},
395+
'meson_options.txt': EXTENSIONS['meson'] | {'meson-options'},
395396
'makefile': EXTENSIONS['mk'],
396397
'NEWS': EXTENSIONS['txt'],
397398
'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)