diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-06-27 02:03:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 10:03:43 +0200 |
commit | 6f3508f8edbc48de1accd931a9d6e66bc99f174a (patch) | |
tree | 712b5871d3f8f1a13dc1f567abaf02131963d3bf /test/functional/vimscript/server_spec.lua | |
parent | eab8b998e9a964cbb72abb8dedb718326a8093e1 (diff) | |
download | rneovim-6f3508f8edbc48de1accd931a9d6e66bc99f174a.tar.gz rneovim-6f3508f8edbc48de1accd931a9d6e66bc99f174a.tar.bz2 rneovim-6f3508f8edbc48de1accd931a9d6e66bc99f174a.zip |
refactor(filetype): allow vim.filetype.match to accept buf and filename (#19114)
This is necessary in cases where filetype detection acts recursively.
For example, when matching files that end with .bak, the "root" of
the filename is matched again against the same buffer (e.g. a buffer
named "foo.c.bak" will be matched again with the filename "foo.c", using
the same underlying buffer).
Diffstat (limited to 'test/functional/vimscript/server_spec.lua')
0 files changed, 0 insertions, 0 deletions