annotate runtime/ftplugin/haml.vim @ 28599:21b38da3ec22

Added tag v8.2.4823 for changeset d550054e132829e8a4f746ad358c2cf0d04bcb2c
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Apr 2022 13:45:05 +0200
parents 5c40013d45ee
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
1 " Vim filetype plugin
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
2 " Language: Haml
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
4 " Last Change: 2019 Dec 05
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
5
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
8 finish
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
9 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
10
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
11 let s:save_cpo = &cpo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
12 set cpo-=C
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
13
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
14 " Define some defaults in case the included ftplugins don't set them.
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
15 let s:undo_ftplugin = ""
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
16 let s:browsefilter = "All Files (*.*)\t*.*\n"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
17 let s:match_words = ""
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
18
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
19 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
20 unlet! b:did_ftplugin
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
21 set matchpairs-=<:>
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
22
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
23 " Override our defaults if these were set by an included ftplugin.
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
24 if exists("b:undo_ftplugin")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
25 let s:undo_ftplugin = b:undo_ftplugin
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
26 unlet b:undo_ftplugin
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
27 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
28 if exists("b:browsefilter")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
29 let s:browsefilter = b:browsefilter
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
30 unlet b:browsefilter
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
31 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
32 if exists("b:match_words")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
33 let s:match_words = b:match_words
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
34 unlet b:match_words
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
35 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
36
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
37 runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
38 let b:did_ftplugin = 1
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
39
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
40 let &l:define .= empty(&l:define ? '' : '\|') . '^\s*\%(%\w*\)\=\%(\.[[:alnum:]_-]\+\)*#'
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
41
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
42 " Combine the new set of values with those previously included.
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
43 if exists("b:undo_ftplugin")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
44 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
45 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
46 if exists ("b:browsefilter")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
47 let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
48 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
49 if exists("b:match_words")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
50 let s:match_words = b:match_words . ',' . s:match_words
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
51 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
52
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
53 " Change the browse dialog on Win32 to show mainly Haml-related files
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
54 if has("gui_win32")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
55 let b:browsefilter="Haml Files (*.haml)\t*.haml\nSass Files (*.sass)\t*.sass\n" . s:browsefilter
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
56 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
57
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
58 " Load the combined list of match_words for matchit.vim
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
59 if exists("loaded_matchit")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
60 let b:match_words = s:match_words
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
61 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
62
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
63 setlocal comments= commentstring=-#\ %s
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
64
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
65 let b:undo_ftplugin = "setl def< cms< com< "
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
66 \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
67
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
68 let &cpo = s:save_cpo
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2202
diff changeset
69 unlet s:save_cpo
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
70
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
71 " vim:set sw=2: