mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
3f6fa93b3b
commit
3b497aa247
@@ -2959,6 +2959,9 @@ au filetypedetect BufNewFile,BufRead,StdinReadPost *
|
|||||||
\ setf FALLBACK conf |
|
\ setf FALLBACK conf |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
|
" Yarn lock
|
||||||
|
au BufNewFile,BufRead yarn.lock setf yaml
|
||||||
|
|
||||||
|
|
||||||
" If the GUI is already running, may still need to install the Syntax menu.
|
" If the GUI is already running, may still need to install the Syntax menu.
|
||||||
" Don't do it when the 'M' flag is included in 'guioptions'.
|
" Don't do it when the 'M' flag is included in 'guioptions'.
|
||||||
|
@@ -820,7 +820,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
xsd: ['file.xsd'],
|
xsd: ['file.xsd'],
|
||||||
xslt: ['file.xsl', 'file.xslt'],
|
xslt: ['file.xsl', 'file.xslt'],
|
||||||
yacc: ['file.yy', 'file.yxx', 'file.y++'],
|
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'],
|
yang: ['file.yang'],
|
||||||
yuck: ['file.yuck'],
|
yuck: ['file.yuck'],
|
||||||
z8a: ['file.z8a'],
|
z8a: ['file.z8a'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
248,
|
||||||
/**/
|
/**/
|
||||||
247,
|
247,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user