summaryrefslogtreecommitdiffstats
path: root/runtime/indent/rnoweb.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-26 19:52:37 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-26 19:52:37 +0200
commite4a3bcf28d92d0bde9ca227ccb40d401038185e5 (patch)
tree276387ac4364fdee74b72c2503fc4505e8728043 /runtime/indent/rnoweb.vim
parentdd74ab9b464f3d1a5f6f6395469b76f8e0e6dccd (diff)
Updated runtime files. Add Scala files.
Diffstat (limited to 'runtime/indent/rnoweb.vim')
-rw-r--r--runtime/indent/rnoweb.vim14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/indent/rnoweb.vim b/runtime/indent/rnoweb.vim
index 29fa5bc78f..8c11e85cb3 100644
--- a/runtime/indent/rnoweb.vim
+++ b/runtime/indent/rnoweb.vim
@@ -2,7 +2,7 @@
" Language: Rnoweb
" Author: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
-" Last Change: Tue Apr 07, 2015 04:38PM
+" Last Change: Fri Apr 15, 2016 10:58PM
" Only load this indent file when no other was loaded.
@@ -10,7 +10,17 @@ if exists("b:did_indent")
finish
endif
runtime indent/tex.vim
-let s:TeXIndent = function(substitute(&indentexpr, "()", "", ""))
+
+function! s:NoTeXIndent()
+ return indent(line("."))
+endfunction
+
+if &indentexpr == "" || &indentexpr == "GetRnowebIndent()"
+ let s:TeXIndent = function("s:NoTeXIndent")
+else
+ let s:TeXIndent = function(substitute(&indentexpr, "()", "", ""))
+endif
+
unlet b:did_indent
runtime indent/r.vim
let s:RIndent = function(substitute(&indentexpr, "()", "", ""))