Skip to content

Commit

Permalink
syntax-highlighting: vim: set b:undo_indent
Browse files Browse the repository at this point in the history
The b:undo_indent variable gets executed to undo the effects of the
options set earlier in the file.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
  • Loading branch information
dkearns authored and jpakkane committed Sep 29, 2021
1 parent 65b144b commit 6512478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/syntax-highlighting/vim/indent/meson.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ setlocal autoindent " indentexpr isn't much help otherwise
setlocal indentexpr=GetMesonIndent(v:lnum)
setlocal indentkeys+==elif,=else,=endforeach,=endif,0)

let b:undo_indent = "setl ai< inde< indk< lisp<"

" Only define the function once.
if exists("*GetMesonIndent")
finish
Expand Down

0 comments on commit 6512478

Please sign in to comment.