patch 8.2.1458: .gawk files not recognized
Problem: .gawk files not recognized.
Solution: Recognize .gawk files. (Doug Kearns)
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index dfbfaab..ae6dc6f 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -184,7 +184,7 @@
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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index cd72008..8b9f556 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -73,7 +73,7 @@
\ '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 @@
\ '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']],
diff --git a/src/version.c b/src/version.c
index 4c191e2..b389ee5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1458,
+/**/
1457,
/**/
1456,