diff options
author | Sinos <github@47.rs> | 2020-10-27 19:02:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 12:02:41 +0100 |
commit | 05e21a9e252b283b2d71568ad3b671d7f28fe0bc (patch) | |
tree | 479dad4293619cfaa0eaa1c47ffa76bf491865f3 /ftdetect | |
parent | 683286b3d7e0db80e67458b4a0b4d71a88377b62 (diff) | |
download | vim-polyglot-05e21a9e252b283b2d71568ad3b671d7f28fe0bc.tar.gz vim-polyglot-05e21a9e252b283b2d71568ad3b671d7f28fe0bc.zip |
Add support for PEG syntax (#615)
* feat: add pest syntax
* feat: add pest into packages
* feat: increase the package count
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 4 insertions, 0 deletions
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 |