diff src/testdir/test_filetype.vim @ 34739:7de0133f87f3 v9.1.0248

patch 9.1.0248: filetype: yarn lock files are not recognized Commit: https://github.com/vim/vim/commit/3b497aa2470ff613fed79569bc8589dae8dc3190 Author: Wu, Zhenyu <wuzhenyu@ustc.edu> Date: Sun Mar 31 19:51:19 2024 +0200 patch 9.1.0248: filetype: yarn lock files are not recognized Problem: filetype: yarn lock files are not recognized Solution: Detect 'yarn.lock' files as yaml (Wu, Zhenyu) closes: #14369 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Mar 2024 20:00:05 +0200
parents 74cbeec9496a
children d51cc27a7bdf
line wrap: on
line diff
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -820,7 +820,7 @@ def s:GetFilenameChecks(): dict<list<str
     xsd: ['file.xsd'],
     xslt: ['file.xsl', 'file.xslt'],
     yacc: ['file.yy', 'file.yxx', 'file.y++'],
-    yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle'],
+    yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'yarn.lock'],
     yang: ['file.yang'],
     yuck: ['file.yuck'],
     z8a: ['file.z8a'],