annotate runtime/indent/json.vim @ 15969:9cc42db77a54 v8.1.0990

patch 8.1.0990: floating point exception with "%= 0" and "/= 0" commit https://github.com/vim/vim/commit/e21c1580b7acb598a6e3c38565434fe5d0e2ad7a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 2 11:57:09 2019 +0100 patch 8.1.0990: floating point exception with "%= 0" and "/= 0" Problem: Floating point exception with "%= 0" and "/= 0". Solution: Avoid dividing by zero. (Dominique Pelle, closes https://github.com/vim/vim/issues/4058)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Mar 2019 12:00:06 +0100
parents 63b0b7b79b25
children d4c7b3e9cd17
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6070
32a77cc160d9 Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim indent file
32a77cc160d9 Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: JSON
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
3 " Mantainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6180
diff changeset
4 " Last Change: 2017 Jun 13
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
5 " https://github.com/jakar/vim-json/commit/20b650e22aa750c4ab6a66aa646bdd95d7cd548a#diff-e81fc111b2052e306d126bd9989f7b7c
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
6 " Original Author: Rogerz Zhang <rogerz.zhang at gmail.com> http://github.com/rogerz/vim-json
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
7 " Acknowledgement: Based off of vim-javascript maintained by Darrick Wiebe
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
8 " http://www.vim.org/scripts/script.php?script_id=2765
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
9
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
10 " 0. Initialization {{{1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
11 " =================
6070
32a77cc160d9 Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
13 " Only load this indent file when no other was loaded.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
14 if exists("b:did_indent")
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
15 finish
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
16 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
17 let b:did_indent = 1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
18
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
19 setlocal nosmartindent
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
20
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
21 " Now, set up our indentation expression and keys that trigger it.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
22 setlocal indentexpr=GetJSONIndent()
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
23 setlocal indentkeys=0{,0},0),0[,0],!^F,o,O,e
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
24
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
25 " Only define the function once.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
26 if exists("*GetJSONIndent")
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
27 finish
6070
32a77cc160d9 Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 endif
32a77cc160d9 Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
30 let s:cpo_save = &cpo
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
31 set cpo&vim
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
32
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
33 " 1. Variables {{{1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
34 " ============
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
35
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
36 let s:line_term = '\s*\%(\%(\/\/\).*\)\=$'
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
37 " Regex that defines blocks.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
38 let s:block_regex = '\%({\)\s*\%(|\%([*@]\=\h\w*,\=\s*\)\%(,\s*[*@]\=\h\w*\)*|\)\=' . s:line_term
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
39
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
40 " 2. Auxiliary Functions {{{1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
41 " ======================
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
42
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
43 " Check if the character at lnum:col is inside a string.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
44 function s:IsInString(lnum, col)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
45 return synIDattr(synID(a:lnum, a:col, 1), 'name') == 'jsonString'
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
46 endfunction
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
47
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
48 " Find line above 'lnum' that isn't empty, or in a string.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
49 function s:PrevNonBlankNonString(lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
50 let lnum = prevnonblank(a:lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
51 while lnum > 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
52 " If the line isn't empty or in a string, end search.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
53 let line = getline(lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
54 if !(s:IsInString(lnum, 1) && s:IsInString(lnum, strlen(line)))
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
55 break
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
56 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
57 let lnum = prevnonblank(lnum - 1)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
58 endwhile
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
59 return lnum
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
60 endfunction
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
61
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
62 " Check if line 'lnum' has more opening brackets than closing ones.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
63 function s:LineHasOpeningBrackets(lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
64 let open_0 = 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
65 let open_2 = 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
66 let open_4 = 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
67 let line = getline(a:lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
68 let pos = match(line, '[][(){}]', 0)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
69 while pos != -1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
70 let idx = stridx('(){}[]', line[pos])
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
71 if idx % 2 == 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
72 let open_{idx} = open_{idx} + 1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
73 else
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
74 let open_{idx - 1} = open_{idx - 1} - 1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
75 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
76 let pos = match(line, '[][(){}]', pos + 1)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
77 endwhile
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
78 return (open_0 > 0) . (open_2 > 0) . (open_4 > 0)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
79 endfunction
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
80
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
81 function s:Match(lnum, regex)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
82 let col = match(getline(a:lnum), a:regex) + 1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
83 return col > 0 && !s:IsInString(a:lnum, col) ? col : 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
84 endfunction
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
85
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
86 " 3. GetJSONIndent Function {{{1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
87 " =========================
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
88
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
89 function GetJSONIndent()
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
90 " 3.1. Setup {{{2
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
91 " ----------
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
92
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
93 " Set up variables for restoring position in file. Could use v:lnum here.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
94 let vcol = col('.')
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
95
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
96 " 3.2. Work on the current line {{{2
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
97 " -----------------------------
6070
32a77cc160d9 Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
99 " Get the current line.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
100 let line = getline(v:lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
101 let ind = -1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
102
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
103 " If we got a closing bracket on an empty line, find its match and indent
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
104 " according to it.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
105 let col = matchend(line, '^\s*[]}]')
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
106
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
107 if col > 0 && !s:IsInString(v:lnum, col)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
108 call cursor(v:lnum, col)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
109 let bs = strpart('{}[]', stridx('}]', line[col - 1]) * 2, 2)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
110
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
111 let pairstart = escape(bs[0], '[')
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
112 let pairend = escape(bs[1], ']')
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
113 let pairline = searchpair(pairstart, '', pairend, 'bW')
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
114
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
115 if pairline > 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
116 let ind = indent(pairline)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
117 else
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
118 let ind = virtcol('.') - 1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
119 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
120
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
121 return ind
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
122 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
123
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
124 " If we are in a multi-line string, don't do anything to it.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
125 if s:IsInString(v:lnum, matchend(line, '^\s*') + 1)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
126 return indent('.')
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
127 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
128
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
129 " 3.3. Work on the previous line. {{{2
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
130 " -------------------------------
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
131
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
132 let lnum = prevnonblank(v:lnum - 1)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
133
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
134 if lnum == 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
135 return 0
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
136 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
137
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
138 " Set up variables for current line.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
139 let line = getline(lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
140 let ind = indent(lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
141
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
142 " If the previous line ended with a block opening, add a level of indent.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
143 " if s:Match(lnum, s:block_regex)
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6180
diff changeset
144 " return indent(lnum) + shiftwidth()
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
145 " endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
146
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
147 " If the previous line contained an opening bracket, and we are still in it,
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
148 " add indent depending on the bracket type.
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
149 if line =~ '[[({]'
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
150 let counts = s:LineHasOpeningBrackets(lnum)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
151 if counts[0] == '1' || counts[1] == '1' || counts[2] == '1'
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 6180
diff changeset
152 return ind + shiftwidth()
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
153 else
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
154 call cursor(v:lnum, vcol)
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
155 end
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
156 endif
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
157
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
158 " }}}2
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
159
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
160 return ind
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
161 endfunction
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
162
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
163 " }}}1
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
164
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
165 let &cpo = s:cpo_save
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
166 unlet s:cpo_save
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
167
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
168 " vim:set sw=2 sts=2 ts=8 noet: