Add vim-raku, closes #490

This commit is contained in:
Adam Stankiewicz
2020-05-20 17:06:38 +02:00
parent 42529540df
commit 74cb75bedd
6 changed files with 2276 additions and 1 deletions

View File

@@ -1201,6 +1201,27 @@ au BufRead,BufNewFile *.rkt,*.rktl call RacketDetectHashLang()
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'raku') == -1
augroup filetypedetect
" raku, from raku.vim in Raku/vim-raku
" whenever a named file is created, writen or read,
" set raku filetype if the extension is one of those:
" https://github.com/Raku/problem-solving/blob/master/solutions/language/Path-to-Raku.md#extensions
autocmd BufNewFile,BufWritePost,BufReadPost
\ *.pm6,*.p6,*.t6,*.pod6,*.raku,*.rakumod,*.rakudoc,*.rakutest
\ set filetype=raku
" whenever a named file is written or read,
" set raku filetype if there is a shebang with raku in it
autocmd BufWritePost,BufReadPost *
\ if getline(1) =~ '^#!.*raku' |
\ setf raku |
\ endif
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'raml') == -1
augroup filetypedetect
" raml, from raml.vim in IN3D/vim-raml