Update runtime files

This commit is contained in:
Bram Moolenaar
2021-10-16 15:23:36 +01:00
parent 28b6a3bef6
commit 2286304cdb
26 changed files with 412 additions and 239 deletions

View File

@ -1,7 +1,8 @@
" Vim indent file
" Language: C-shell (tcsh)
" Maintainer: Doug Kearns <a@b.com> where a=dougkearns, b=gmail
" Last Modified: Sun 26 Sep 2021 12:38:38 PM EDT
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Previous Maintainer: Gautam Iyer <gi1242+vim@NoSpam.com> where NoSpam=gmail (Original Author)
" Last Change: 2021 Oct 15
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
@ -11,7 +12,9 @@ endif
let b:did_indent = 1
setlocal indentexpr=TcshGetIndent()
setlocal indentkeys+=e,0=end,0=endsw indentkeys-=0{,0},0),:,0#
setlocal indentkeys+=e,0=end
setlocal indentkeys-=0{,0},0),:,0#
let b:undo_indent = "setl inde< indk<"
" Only define the function once.
@ -40,9 +43,9 @@ function TcshGetIndent()
let ind = ind - shiftwidth()
endif
" Subtract indent if current line has on end, endif, case commands
" Subtract indent if current line has on end, endif, endsw, case commands
let line = getline(v:lnum)
if line =~ '\v^\s*%(else|end|endif)\s*$'
if line =~ '\v^\s*%(else|end|endif|endsw)\s*$'
let ind = ind - shiftwidth()
endif