Mercurial > vim
comparison runtime/indent/haml.vim @ 28141:dce918af0c00
Update runtime files
Commit: https://github.com/vim/vim/commit/47c532e2bc55e8a48f7f47e1fae1ed30144f2fa1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 19 15:18:53 2022 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Mar 2022 16:30:05 +0100 |
parents | 5c40013d45ee |
children |
comparison
equal
deleted
inserted
replaced
28140:4511c6ef2893 | 28141:dce918af0c00 |
---|---|
1 " Vim indent file | 1 " Vim indent file |
2 " Language: Haml | 2 " Language: Haml |
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
4 " Last Change: 2019 Dec 05 | 4 " Last Change: 2022 Mar 15 |
5 | 5 |
6 if exists("b:did_indent") | 6 if exists("b:did_indent") |
7 finish | 7 finish |
8 endif | 8 endif |
9 runtime! indent/ruby.vim | 9 runtime! indent/ruby.vim |
11 let b:did_indent = 1 | 11 let b:did_indent = 1 |
12 | 12 |
13 setlocal autoindent | 13 setlocal autoindent |
14 setlocal indentexpr=GetHamlIndent() | 14 setlocal indentexpr=GetHamlIndent() |
15 setlocal indentkeys=o,O,*<Return>,},],0),!^F,=end,=else,=elsif,=rescue,=ensure,=when | 15 setlocal indentkeys=o,O,*<Return>,},],0),!^F,=end,=else,=elsif,=rescue,=ensure,=when |
16 | |
17 let b:undo_indent = "setl ai< inde< indk<" | |
16 | 18 |
17 " Only define the function once. | 19 " Only define the function once. |
18 if exists("*GetHamlIndent") | 20 if exists("*GetHamlIndent") |
19 finish | 21 finish |
20 endif | 22 endif |