diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-31 19:18:10 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-01 12:01:47 +0200 |
commit | afc7a5611eef3c07154c34a60d3c2513e8afcdb7 (patch) | |
tree | d369eaacb2f0b0cf9708c1b5760722ae244169e8 | |
parent | a978e831582aeb1de18d42a522a84b2c38b69b9f (diff) | |
download | rneovim-afc7a5611eef3c07154c34a60d3c2513e8afcdb7.tar.gz rneovim-afc7a5611eef3c07154c34a60d3c2513e8afcdb7.tar.bz2 rneovim-afc7a5611eef3c07154c34a60d3c2513e8afcdb7.zip |
vim-patch:9.1.0241: filetype: mysql history files are not recognized
Problem: filetype: mysql history files are not recognized
Solution: Detect .mysql_history as mysql
(Wu, Zhenyu)
closes: vim/vim#14362
https://github.com/vim/vim/commit/6b285c8cfd74e1da49fe17dca2ea9989bd9dae49
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 07ce1d8b83..9e60877381 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1411,6 +1411,7 @@ local filename = { ['mplayer.conf'] = 'mplayerconf', mrxvtrc = 'mrxvtrc', ['.mrxvtrc'] = 'mrxvtrc', + ['.mysql_history'] = 'mysql', ['/etc/nanorc'] = 'nanorc', Neomuttrc = 'neomuttrc', ['.netrc'] = 'netrc', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 16f88f4388..65a750c840 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -441,7 +441,7 @@ func s:GetFilenameChecks() abort \ 'mush': ['file.mush'], \ 'mustache': ['file.mustache'], \ 'muttrc': ['Muttngrc', 'Muttrc', '.muttngrc', '.muttngrc-file', '.muttrc', '.muttrc-file', '/.mutt/muttngrc', '/.mutt/muttngrc-file', '/.mutt/muttrc', '/.mutt/muttrc-file', '/.muttng/muttngrc', '/.muttng/muttngrc-file', '/.muttng/muttrc', '/.muttng/muttrc-file', '/etc/Muttrc.d/file', '/etc/Muttrc.d/file.rc', 'Muttngrc-file', 'Muttrc-file', 'any/.mutt/muttngrc', 'any/.mutt/muttngrc-file', 'any/.mutt/muttrc', 'any/.mutt/muttrc-file', 'any/.muttng/muttngrc', 'any/.muttng/muttngrc-file', 'any/.muttng/muttrc', 'any/.muttng/muttrc-file', 'any/etc/Muttrc.d/file', 'muttngrc', 'muttngrc-file', 'muttrc', 'muttrc-file'], - \ 'mysql': ['file.mysql'], + \ 'mysql': ['file.mysql', '.mysql_history'], \ 'n1ql': ['file.n1ql', 'file.nql'], \ 'named': ['namedfile.conf', 'rndcfile.conf', 'named-file.conf', 'named.conf', 'rndc-file.conf', 'rndc-file.key', 'rndc.conf', 'rndc.key'], \ 'nanorc': ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'], |