]> granicus.if.org Git - vim/commitdiff
patch 8.2.1458: .gawk files not recognized v8.2.1458
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Aug 2020 12:07:23 +0000 (14:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Aug 2020 12:07:23 +0000 (14:07 +0200)
Problem:    .gawk files not recognized.
Solution:   Recognize .gawk files. (Doug Kearns)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index dfbfaabaec3e69b020b5b315b921d185a773fc82..ae6dc6f1d3d6c16dda13d84423819245c85c43d8 100644 (file)
@@ -184,7 +184,7 @@ au BufNewFile,BufRead *.at                  setf m4
 au BufNewFile,BufRead *.ave                    setf ave
 
 " Awk
-au BufNewFile,BufRead *.awk                    setf awk
+au BufNewFile,BufRead *.awk,*.gawk             setf awk
 
 " B
 au BufNewFile,BufRead *.mch,*.ref,*.imp                setf b
index cd72008173d029d5e52dae394acf5b9a79fd37b9..8b9f5565daef151153e383fb21aa1c4b1f500303 100644 (file)
@@ -73,7 +73,7 @@ let s:filename_checks = {
     \ 'autoit': ['file.au3'],
     \ 'automake': ['GNUmakefile.am'],
     \ 'ave': ['file.ave'],
-    \ 'awk': ['file.awk'],
+    \ 'awk': ['file.awk', 'file.gawk'],
     \ 'b': ['file.mch', 'file.ref', 'file.imp'],
     \ 'bc': ['file.bc'],
     \ 'bdf': ['file.bdf'],
@@ -597,7 +597,8 @@ let s:script_checks = {
       \ 'bc': [['#!/path/bc']],
       \ 'sed': [['#!/path/sed']],
       \ 'ocaml': [['#!/path/ocaml']],
-      \ 'awk': [['#!/path/awk']],
+      \ 'awk': [['#!/path/awk'],
+      \         ['#!/path/gawk']],
       \ 'wml': [['#!/path/wml']],
       \ 'scheme': [['#!/path/scheme']],
       \ 'cfengine': [['#!/path/cfengine']],
index 4c191e2209b4c1fdf3a22cf9141865148e3bc07e..b389ee560a7abe40d1bd77dabbbbe9c232c1c64f 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1458,
 /**/
     1457,
 /**/