]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0241: filetype: mysql history files are not recognized v9.1.0241
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Sun, 31 Mar 2024 17:15:49 +0000 (19:15 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 17:15:49 +0000 (19:15 +0200)
Problem:  filetype: mysql history files are not recognized
Solution: Detect .mysql_history as mysql
          (Wu, Zhenyu)

closes: #14362

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 5af8ff6e84110ac9ab30f1606b6538773798b1f5..6965fab5230e810dd56fc8583e2dfbdf54e1fa2b 100644 (file)
@@ -1398,7 +1398,7 @@ au BufNewFile,BufRead mrxvtrc,.mrxvtrc            setf mrxvtrc
 au BufNewFile,BufRead *.msql                   setf msql
 
 " Mysql
-au BufNewFile,BufRead *.mysql                  setf mysql
+au BufNewFile,BufRead *.mysql,.mysql_history   setf mysql
 
 " Tcl Shell RC file
 au BufNewFile,BufRead tclsh.rc                 setf tcl
index 2107776027d79a0c162d1805594710c6a03d038d..0a9a72d9002627ea0d65bce3a49da4c7f33b1d76 100644 (file)
@@ -481,7 +481,7 @@ def s:GetFilenameChecks(): dict<list<string>>
              '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'],
index c03de87d96d9779a6cfbb7c310a2f8a219d72cb3..968ad9fed2fe86ba80ee7acc7797b4d32b4006e6 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    241,
 /**/
     240,
 /**/