forked from aniani/vim
patch 9.1.0317: filetype: matplotlibrc files are not recognized
Problem: filetype: matplotlibrc files are not recognized
Solution: Detect 'matplotlibrc' file as yaml filetype
(Wu, Zhenyu)
See: https://matplotlib.org/stable/users/explain/customizing.html#the-matplotlibrc-file
closes: #14501
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
ce06493aeb
commit
55d4f3c006
@@ -425,8 +425,8 @@ au BufNewFile,BufRead .clang-format setf yaml
|
|||||||
" Clang-tidy
|
" Clang-tidy
|
||||||
au BufNewFile,BufRead .clang-tidy setf yaml
|
au BufNewFile,BufRead .clang-tidy setf yaml
|
||||||
|
|
||||||
" Matplotlib style
|
" Matplotlib
|
||||||
au BufNewFile,BufRead *.mplstyle setf yaml
|
au BufNewFile,BufRead *.mplstyle,matplotlibrc setf yaml
|
||||||
|
|
||||||
" Clean
|
" Clean
|
||||||
au BufNewFile,BufRead *.dcl,*.icl setf clean
|
au BufNewFile,BufRead *.dcl,*.icl setf clean
|
||||||
|
|||||||
@@ -836,7 +836,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', 'yarn.lock'],
|
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', '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 */
|
||||||
|
/**/
|
||||||
|
317,
|
||||||
/**/
|
/**/
|
||||||
316,
|
316,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user