Skip to content

Commit eb05d05

Browse files
committed
patch 8.2.3374: Pyret files are not recognized
Problem: Pyret files are not recognized. Solution: Recognize .arr files as Pyret. (Doug Kearns)
1 parent 49b9304 commit eb05d05

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,9 @@ au BufNewFile,BufRead *.pk setf poke
13831383
" Protocols
13841384
au BufNewFile,BufRead */etc/protocols setf protocols
13851385

1386+
" Pyret
1387+
au BufNewFile,BufRead *.arr setf pyret
1388+
13861389
" Pyrex
13871390
au BufNewFile,BufRead *.pyx,*.pxd setf pyrex
13881391

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ let s:filename_checks = {
397397
\ 'psf': ['file.psf'],
398398
\ 'psl': ['file.psl'],
399399
\ 'puppet': ['file.pp'],
400+
\ 'pyret': ['file.arr'],
400401
\ 'pyrex': ['file.pyx', 'file.pxd'],
401402
\ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
402403
\ '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'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3374,
758760
/**/
759761
3373,
760762
/**/

0 commit comments

Comments
 (0)