vim-patch:8.2.3374: Pyret files are not recognized (#15642)

Problem:    Pyret files are not recognized.
Solution:   Recognize .arr files as Pyret. (Doug Kearns)
eb05d05f8a
This commit is contained in:
Christian Clason
2021-09-12 12:55:34 +02:00
committed by GitHub
parent 1c5833cb00
commit ae73aa8339
2 changed files with 4 additions and 0 deletions

View File

@@ -1382,6 +1382,9 @@ au BufNewFile,BufRead *.pk setf poke
" Protocols " Protocols
au BufNewFile,BufRead */etc/protocols setf protocols au BufNewFile,BufRead */etc/protocols setf protocols
" Pyret
au BufNewFile,BufRead *.arr setf pyret
" Pyrex " Pyrex
au BufNewFile,BufRead *.pyx,*.pxd setf pyrex au BufNewFile,BufRead *.pyx,*.pxd setf pyrex

View File

@@ -398,6 +398,7 @@ let s:filename_checks = {
\ 'psf': ['file.psf'], \ 'psf': ['file.psf'],
\ 'psl': ['file.psl'], \ 'psl': ['file.psl'],
\ 'puppet': ['file.pp'], \ 'puppet': ['file.pp'],
\ 'pyret': ['file.arr'],
\ 'pyrex': ['file.pyx', 'file.pxd'], \ 'pyrex': ['file.pyx', 'file.pxd'],
\ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'], \ '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'], \ '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'],