]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1406: ILE RPG files are not recognized v9.0.1406
authorAndreas Louv <andreas@louv.dk>
Thu, 16 Mar 2023 12:26:51 +0000 (12:26 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2023 12:26:51 +0000 (12:26 +0000)
Problem:    ILE RPG files are not recognized.
Solution:   Add patterns for ILE RPG files. (Andreas Louv, issue #12152)

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

index da2215917da66e80f9f386641a6fec81cc534d2c..ada48bde95b3a4c4766eb5ec19ca62b8954ad67c 100644 (file)
@@ -1732,6 +1732,9 @@ au BufNewFile,BufRead *.rnc                       setf rnc
 " Relax NG XML
 au BufNewFile,BufRead *.rng                    setf rng
 
+" ILE RPG
+au BufNewFile,BufRead *.rpgle,*.rpgleinc       setf rpgle
+
 " RPL/2
 au BufNewFile,BufRead *.rpl                    setf rpl
 
index 94b08482978dc673f99ab79f2728cd7b8ddff04e..c57f4da6aaa02a34790ecaffe89b132c6a86f76c 100644 (file)
@@ -494,6 +494,7 @@ let s:filename_checks = {
     \ 'rnc': ['file.rnc'],
     \ 'rng': ['file.rng'],
     \ 'rnoweb': ['file.rnw', 'file.snw'],
+    \ 'rpgle': ['file.rpgle', 'file.rpgleinc'],
     \ 'robot': ['file.robot', 'file.resource'],
     \ 'robots': ['robots.txt'],
     \ 'ron': ['file.ron'],
index 733eb46e175503093261a9963d03390702098702..1a0a0362d20cfd01dd44400447239a9a413895a4 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1406,
 /**/
     1405,
 /**/