summaryrefslogtreecommitdiffstats
path: root/runtime/indent/rmd.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/rmd.vim')
-rw-r--r--runtime/indent/rmd.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/indent/rmd.vim b/runtime/indent/rmd.vim
index 872790e7b1..9a8a3cb719 100644
--- a/runtime/indent/rmd.vim
+++ b/runtime/indent/rmd.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: Rmd
" Author: Jakson Alves de Aquino <jalvesaq@gmail.com>
-" Last Change: Wed Jul 09, 2014 07:33PM
+" Last Change: Thu Jul 10, 2014 07:11PM
" Only load this indent file when no other was loaded.
@@ -33,10 +33,10 @@ function GetMdIndent()
endfunction
function GetRmdIndent()
- if getline(".") =~ '^```{r .*}$' || getline(".") =~ '^```$'
+ if getline(".") =~ '^[ \t]*```{r .*}$' || getline(".") =~ '^[ \t]*```$'
return 0
endif
- if search('^```{r', "bncW") > search('^```$', "bncW")
+ if search('^[ \t]*```{r', "bncW") > search('^[ \t]*```$', "bncW")
return s:RIndent()
else
return GetMdIndent()