Mercurial > vim
view runtime/indent/rnoweb.vim @ 6430:d2239abd3edb v7.4.545
updated for version 7.4.545
Problem: Highlighting for multi-line matches is not correct.
Solution: Stop highlight at the end of the match. (Hirohito Higashi)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 13 Dec 2014 03:36:39 +0100 |
parents | 0efec12f52ac |
children | 37828f7503c7 |
line wrap: on
line source
" Vim indent file " Language: Rnoweb " Author: Jakson Alves de Aquino <jalvesaq@gmail.com> " Last Change: Wed Jul 09, 2014 07:28PM " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif runtime indent/tex.vim let s:TeXIndent = function(substitute(&indentexpr, "()", "", "")) unlet b:did_indent runtime indent/r.vim let s:RIndent = function(substitute(&indentexpr, "()", "", "")) let b:did_indent = 1 setlocal indentkeys=0{,0},!^F,o,O,e,},=\bibitem,=\item setlocal indentexpr=GetRnowebIndent() if exists("*GetRnowebIndent") finish endif function GetRnowebIndent() if getline(".") =~ "^<<.*>>=$" return 0 endif if search("^<<", "bncW") > search("^@", "bncW") return s:RIndent() endif return s:TeXIndent() endfunction " vim: sw=2