]> granicus.if.org Git - vim/commitdiff
patch 8.2.3374: Pyret files are not recognized v8.2.3374
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Aug 2021 15:10:39 +0000 (17:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Aug 2021 15:10:39 +0000 (17:10 +0200)
Problem:    Pyret files are not recognized.
Solution:   Recognize .arr files as Pyret. (Doug Kearns)

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

index 70b647bd873dcb3c5c06958dcc000e6d23188511..6144b5ff5bc5f403d03e61d2c6a854bdea6e84e1 100644 (file)
@@ -1383,6 +1383,9 @@ au BufNewFile,BufRead *.pk                        setf poke
 " Protocols
 au BufNewFile,BufRead */etc/protocols          setf protocols
 
+" Pyret
+au BufNewFile,BufRead *.arr                    setf pyret
+
 " Pyrex
 au BufNewFile,BufRead *.pyx,*.pxd              setf pyrex
 
index 5463c1c87c242574abcf2eb0e952767ad877b94e..a30ac2cfa4d7682067d23eeab28900e067c8722d 100644 (file)
@@ -397,6 +397,7 @@ let s:filename_checks = {
     \ 'psf': ['file.psf'],
     \ 'psl': ['file.psl'],
     \ 'puppet': ['file.pp'],
+    \ 'pyret': ['file.arr'],
     \ 'pyrex': ['file.pyx', 'file.pxd'],
     \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
     \ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'],
index 9a1281f6f340152cbf41262d1efa30405d8aa575..0630ae6f9bbbd412062fd334fbfb59d4b640f406 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3374,
 /**/
     3373,
 /**/