mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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
6b285c8cfd
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
a978e83158
commit
afc7a5611e
@ -1411,6 +1411,7 @@ local filename = {
|
||||
['mplayer.conf'] = 'mplayerconf',
|
||||
mrxvtrc = 'mrxvtrc',
|
||||
['.mrxvtrc'] = 'mrxvtrc',
|
||||
['.mysql_history'] = 'mysql',
|
||||
['/etc/nanorc'] = 'nanorc',
|
||||
Neomuttrc = 'neomuttrc',
|
||||
['.netrc'] = 'netrc',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user