summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-26 12:44:31 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-26 12:44:31 +0200
commit90d87abd3051c5acf15bc352c9f51f18e23b7095 (patch)
treebf13d90559fdbfeeb7cf79cb0c2e04edfeed7443 /ftdetect
parentd6710f1b578ee233e92d1810fdb3e5c9fba651f7 (diff)
downloadvim-polyglot-90d87abd3051c5acf15bc352c9f51f18e23b7095.tar.gz
vim-polyglot-90d87abd3051c5acf15bc352c9f51f18e23b7095.zip
Add Rust lang support
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 2ed87038..3c2604c0 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -104,6 +104,7 @@ au BufNewFile,BufRead *.jbuilder set filetype=ruby
au BufNewFile,BufRead Puppetfile set filetype=ruby
au BufNewFile,BufRead [Bb]uildfile set filetype=ruby
au BufNewFile,BufRead Appraisals set filetype=ruby
+au BufRead,BufNewFile *.rs,*.rc set filetype=rust
au BufRead,BufNewFile *.sbt set filetype=sbt
fun! s:DetectScala()
if getline(1) == '#!/usr/bin/env scala'