From 05e21a9e252b283b2d71568ad3b671d7f28fe0bc Mon Sep 17 00:00:00 2001 From: Sinos Date: Tue, 27 Oct 2020 19:02:41 +0800 Subject: Add support for PEG syntax (#615) * feat: add pest syntax * feat: add pest into packages * feat: increase the package count --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 5902b34f..a5dbf5ef 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1998,6 +1998,10 @@ if !has_key(g:polyglot_is_disabled, 'requirements') au BufNewFile,BufRead *.pip,*require.{txt,in},*requirements.{txt,in},constraints.{txt,in} setf requirements endif +if !has_key(g:polyglot_is_disabled, 'pest') + au BufNewFile,BufRead *.pest setf pest +endif + if !has_key(g:polyglot_is_disabled, 'python') au BufNewFile,BufRead *.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.ptl,*.py,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,{.,}gclient,{.,}pythonrc,{.,}pythonstartup,DEPS,SConscript,SConstruct,Snakefile,wscript setf python endif -- cgit v1.2.3