aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchampignoom <66909116+champignoom@users.noreply.github.com>2020-11-07 21:03:14 +0100
committerGitHub <noreply@github.com>2020-11-07 15:03:14 -0500
commitdf750e7248a38b18a49546d38e3a4777ad90b520 (patch)
treea20d77e6bb85fd6debdd408bb09c5da3690c3af4
parent4c7ad9527db7c4476fd07c1fa95d89983dfba775 (diff)
downloadrneovim-df750e7248a38b18a49546d38e3a4777ad90b520.tar.gz
rneovim-df750e7248a38b18a49546d38e3a4777ad90b520.tar.bz2
rneovim-df750e7248a38b18a49546d38e3a4777ad90b520.zip
vim-patch:8.2.1964: not all ConTeXt files are recognized (#13245)
Problem: Not all ConTeXt files are recognized. Solution: Add two patterns. (closes vim/vim#7263) https://github.com/vim/vim/commit/faebda8cc1ecc4d6a197e06e968df46a2841ed79
-rw-r--r--runtime/filetype.vim2
-rw-r--r--src/nvim/testdir/test_filetype.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 7accc22b3d..8eb26046da 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1723,7 +1723,7 @@ au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex
au BufNewFile,BufRead *.tex call dist#ft#FTtex()
" ConTeXt
-au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi setf context
+au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx setf context
" Texinfo
au BufNewFile,BufRead *.texinfo,*.texi,*.txi setf texinfo
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim
index 9f79c1b545..9f7e153955 100644
--- a/src/nvim/testdir/test_filetype.vim
+++ b/src/nvim/testdir/test_filetype.vim
@@ -109,7 +109,7 @@ let s:filename_checks = {
\ 'conaryrecipe': ['file.recipe'],
\ 'conf': ['auto.master'],
\ 'config': ['configure.in', 'configure.ac', 'Pipfile'],
- \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi'],
+ \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
\ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
\ 'crm': ['file.crm'],
\ 'cs': ['file.cs'],