mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0583: filetype: *.pdf_tex files are not recognized
Problem: filetype: *.pdf_tex files are not recognized
Solution: Detect '*.pdf_tex' files as tex filetype
(Jonas Dujava)
Those files are generated by inkscape, when exporting, see e.g.
https://inkscape.org/doc/inkscape-man.html
closes: vim/vim#15250
28145e005d
Co-authored-by: Jonas Dujava <jonas.dujava@gmail.com>
This commit is contained in:
parent
8b7c8a0994
commit
60734dc761
@ -1076,6 +1076,7 @@ local extension = {
|
|||||||
nls = 'tex',
|
nls = 'tex',
|
||||||
thm = 'tex',
|
thm = 'tex',
|
||||||
eps_tex = 'tex',
|
eps_tex = 'tex',
|
||||||
|
pdf_tex = 'tex',
|
||||||
pygtex = 'tex',
|
pygtex = 'tex',
|
||||||
pygstyle = 'tex',
|
pygstyle = 'tex',
|
||||||
clo = 'tex',
|
clo = 'tex',
|
||||||
|
@ -764,7 +764,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'teraterm': ['file.ttl'],
|
\ 'teraterm': ['file.ttl'],
|
||||||
\ 'terminfo': ['file.ti'],
|
\ 'terminfo': ['file.ti'],
|
||||||
\ 'terraform-vars': ['file.tfvars'],
|
\ 'terraform-vars': ['file.tfvars'],
|
||||||
\ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl', 'any/.texlive/texmf-config/tex/latex/file/file.cfg', 'file.pgf', 'file.nlo', 'file.nls', 'file.thm', 'file.eps_tex', 'file.pygtex', 'file.pygstyle', 'file.clo', 'file.aux', 'file.brf', 'file.ind', 'file.lof', 'file.loe', 'file.nav', 'file.vrb', 'file.ins', 'file.tikz', 'file.bbx', 'file.cbx', 'file.beamer'],
|
\ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl', 'any/.texlive/texmf-config/tex/latex/file/file.cfg', 'file.pgf', 'file.nlo', 'file.nls', 'file.thm', 'file.eps_tex', 'file.pygtex', 'file.pygstyle', 'file.clo', 'file.aux', 'file.brf', 'file.ind', 'file.lof', 'file.loe', 'file.nav', 'file.vrb', 'file.ins', 'file.tikz', 'file.bbx', 'file.cbx', 'file.beamer', 'file.pdf_tex'],
|
||||||
\ 'texinfo': ['file.texinfo', 'file.texi', 'file.txi'],
|
\ 'texinfo': ['file.texinfo', 'file.texi', 'file.txi'],
|
||||||
\ 'texmf': ['texmf.cnf'],
|
\ 'texmf': ['texmf.cnf'],
|
||||||
\ 'text': ['file.text', 'file.txt', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README', '/etc/Muttrc.d/README'],
|
\ 'text': ['file.text', 'file.txt', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README', '/etc/Muttrc.d/README'],
|
||||||
|
Loading…
Reference in New Issue
Block a user