blob: e67bf58b0dc6d24a06d69b2b744168787f90c4c5 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: Python
Bram Moolenaar541f92d2015-06-19 13:27:23 +02003" Maintainer: Zvezdan Petkovic <zpetkovic@acm.org>
Bram Moolenaar2ecbe532022-07-29 21:36:21 +01004" Last Change: 2022 Jun 28
Bram Moolenaar541f92d2015-06-19 13:27:23 +02005" Credits: Neil Schemenauer <nas@python.ca>
Bram Moolenaar5c736222010-01-06 20:54:52 +01006" Dmitry Vasiliev
Bram Moolenaar071d4272004-06-13 20:20:40 +00007"
Bram Moolenaar5c736222010-01-06 20:54:52 +01008" This version is a major rewrite by Zvezdan Petkovic.
Bram Moolenaar071d4272004-06-13 20:20:40 +00009"
Bram Moolenaar5c736222010-01-06 20:54:52 +010010" - introduced highlighting of doctests
11" - updated keywords, built-ins, and exceptions
12" - corrected regular expressions for
Bram Moolenaar071d4272004-06-13 20:20:40 +000013"
Bram Moolenaar5c736222010-01-06 20:54:52 +010014" * functions
15" * decorators
16" * strings
17" * escapes
18" * numbers
19" * space error
Bram Moolenaar071d4272004-06-13 20:20:40 +000020"
Bram Moolenaar5c736222010-01-06 20:54:52 +010021" - corrected synchronization
22" - more highlighting is ON by default, except
23" - space error highlighting is OFF by default
Bram Moolenaar071d4272004-06-13 20:20:40 +000024"
Bram Moolenaar5c736222010-01-06 20:54:52 +010025" Optional highlighting can be controlled using these variables.
Bram Moolenaar071d4272004-06-13 20:20:40 +000026"
Bram Moolenaar5c736222010-01-06 20:54:52 +010027" let python_no_builtin_highlight = 1
28" let python_no_doctest_code_highlight = 1
29" let python_no_doctest_highlight = 1
30" let python_no_exception_highlight = 1
31" let python_no_number_highlight = 1
32" let python_space_error_highlight = 1
Bram Moolenaar071d4272004-06-13 20:20:40 +000033"
Bram Moolenaar5c736222010-01-06 20:54:52 +010034" All the options above can be switched on together.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035"
Bram Moolenaar5c736222010-01-06 20:54:52 +010036" let python_highlight_all = 1
Bram Moolenaar071d4272004-06-13 20:20:40 +000037"
38
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020039" quit when a syntax file was already loaded.
40if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000041 finish
42endif
43
Bram Moolenaar00659062010-09-21 22:34:02 +020044" We need nocompatible mode in order to continue lines with backslashes.
45" Original setting will be restored.
46let s:cpo_save = &cpo
47set cpo&vim
48
Bram Moolenaarb4ada792016-10-30 21:55:26 +010049if exists("python_no_doctest_highlight")
50 let python_no_doctest_code_highlight = 1
51endif
52
53if exists("python_highlight_all")
54 if exists("python_no_builtin_highlight")
55 unlet python_no_builtin_highlight
56 endif
57 if exists("python_no_doctest_code_highlight")
58 unlet python_no_doctest_code_highlight
59 endif
60 if exists("python_no_doctest_highlight")
61 unlet python_no_doctest_highlight
62 endif
63 if exists("python_no_exception_highlight")
64 unlet python_no_exception_highlight
65 endif
66 if exists("python_no_number_highlight")
67 unlet python_no_number_highlight
68 endif
69 let python_space_error_highlight = 1
70endif
71
Bram Moolenaar5c736222010-01-06 20:54:52 +010072" Keep Python keywords in alphabetical order inside groups for easy
73" comparison with the table in the 'Python Language Reference'
Bram Moolenaar9faec4e2021-02-27 16:38:07 +010074" https://docs.python.org/reference/lexical_analysis.html#keywords.
Bram Moolenaar5c736222010-01-06 20:54:52 +010075" Groups are in the order presented in NAMING CONVENTIONS in syntax.txt.
76" Exceptions come last at the end of each group (class and def below).
77"
Bram Moolenaar9faec4e2021-02-27 16:38:07 +010078" The list can be checked using:
Bram Moolenaar5c736222010-01-06 20:54:52 +010079"
Bram Moolenaar0e6adf82021-12-16 14:41:10 +000080" python3 -c 'import keyword, pprint; pprint.pprint(keyword.kwlist + keyword.softkwlist, compact=True)'
Bram Moolenaar5c736222010-01-06 20:54:52 +010081"
Bram Moolenaar6f1d9a02016-07-24 14:12:38 +020082syn keyword pythonStatement False None True
Bram Moolenaar9faec4e2021-02-27 16:38:07 +010083syn keyword pythonStatement as assert break continue del global
84syn keyword pythonStatement lambda nonlocal pass return with yield
Bram Moolenaar5c736222010-01-06 20:54:52 +010085syn keyword pythonStatement class def nextgroup=pythonFunction skipwhite
86syn keyword pythonConditional elif else if
Bram Moolenaar071d4272004-06-13 20:20:40 +000087syn keyword pythonRepeat for while
Bram Moolenaar071d4272004-06-13 20:20:40 +000088syn keyword pythonOperator and in is not or
Bram Moolenaar5c736222010-01-06 20:54:52 +010089syn keyword pythonException except finally raise try
90syn keyword pythonInclude from import
Bram Moolenaarca635012015-09-25 20:34:21 +020091syn keyword pythonAsync async await
Bram Moolenaar071d4272004-06-13 20:20:40 +000092
Bram Moolenaar2ecbe532022-07-29 21:36:21 +010093" Soft keywords
94" These keywords do not mean anything unless used in the right context
95" See https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords
96" for more on this.
97syn match pythonConditional "^\s*\zscase\%(\s\+.*:.*$\)\@="
98syn match pythonConditional "^\s*\zsmatch\%(\s\+.*:\s*\%(#.*\)\=$\)\@="
99
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100100" Decorators
Bram Moolenaar5c736222010-01-06 20:54:52 +0100101" A dot must be allowed because of @MyClass.myfunc decorators.
Bram Moolenaarb4ada792016-10-30 21:55:26 +0100102syn match pythonDecorator "@" display contained
103syn match pythonDecoratorName "@\s*\h\%(\w\|\.\)*" display contains=pythonDecorator
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +0200104
Bram Moolenaarb4ada792016-10-30 21:55:26 +0100105" Python 3.5 introduced the use of the same symbol for matrix multiplication:
106" https://www.python.org/dev/peps/pep-0465/. We now have to exclude the
107" symbol from highlighting when used in that context.
108" Single line multiplication.
109syn match pythonMatrixMultiply
110 \ "\%(\w\|[])]\)\s*@"
111 \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonFunction,pythonDoctestValue
112 \ transparent
113" Multiplication continued on the next line after backslash.
114syn match pythonMatrixMultiply
115 \ "[^\\]\\\s*\n\%(\s*\.\.\.\s\)\=\s\+@"
116 \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonFunction,pythonDoctestValue
117 \ transparent
118" Multiplication in a parenthesized expression over multiple lines with @ at
119" the start of each continued line; very similar to decorators and complex.
120syn match pythonMatrixMultiply
121 \ "^\s*\%(\%(>>>\|\.\.\.\)\s\+\)\=\zs\%(\h\|\%(\h\|[[(]\).\{-}\%(\w\|[])]\)\)\s*\n\%(\s*\.\.\.\s\)\=\s\+@\%(.\{-}\n\%(\s*\.\.\.\s\)\=\s\+@\)*"
122 \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonFunction,pythonDoctestValue
123 \ transparent
124
125syn match pythonFunction "\h\w*" display contained
Bram Moolenaar9c102382006-05-03 21:26:49 +0000126
Bram Moolenaar5c736222010-01-06 20:54:52 +0100127syn match pythonComment "#.*$" contains=pythonTodo,@Spell
128syn keyword pythonTodo FIXME NOTE NOTES TODO XXX contained
129
130" Triple-quoted strings can contain doctests.
Bram Moolenaar541f92d2015-06-19 13:27:23 +0200131syn region pythonString matchgroup=pythonQuotes
Bram Moolenaar5c736222010-01-06 20:54:52 +0100132 \ start=+[uU]\=\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
133 \ contains=pythonEscape,@Spell
Bram Moolenaar541f92d2015-06-19 13:27:23 +0200134syn region pythonString matchgroup=pythonTripleQuotes
Bram Moolenaar5c736222010-01-06 20:54:52 +0100135 \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend
136 \ contains=pythonEscape,pythonSpaceError,pythonDoctest,@Spell
Bram Moolenaar541f92d2015-06-19 13:27:23 +0200137syn region pythonRawString matchgroup=pythonQuotes
Bram Moolenaar5c736222010-01-06 20:54:52 +0100138 \ start=+[uU]\=[rR]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
139 \ contains=@Spell
Bram Moolenaar541f92d2015-06-19 13:27:23 +0200140syn region pythonRawString matchgroup=pythonTripleQuotes
Bram Moolenaar5c736222010-01-06 20:54:52 +0100141 \ start=+[uU]\=[rR]\z('''\|"""\)+ end="\z1" keepend
142 \ contains=pythonSpaceError,pythonDoctest,@Spell
143
144syn match pythonEscape +\\[abfnrtv'"\\]+ contained
145syn match pythonEscape "\\\o\{1,3}" contained
146syn match pythonEscape "\\x\x\{2}" contained
147syn match pythonEscape "\%(\\u\x\{4}\|\\U\x\{8}\)" contained
148" Python allows case-insensitive Unicode IDs: http://www.unicode.org/charts/
Bram Moolenaar541f92d2015-06-19 13:27:23 +0200149syn match pythonEscape "\\N{\a\+\%(\s\a\+\)*}" contained
Bram Moolenaar5c736222010-01-06 20:54:52 +0100150syn match pythonEscape "\\$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000151
Bram Moolenaar5c736222010-01-06 20:54:52 +0100152" It is very important to understand all details before changing the
153" regular expressions below or their order.
154" The word boundaries are *not* the floating-point number boundaries
155" because of a possible leading or trailing decimal point.
156" The expressions below ensure that all valid number literals are
157" highlighted, and invalid number literals are not. For example,
158"
159" - a decimal point in '4.' at the end of a line is highlighted,
160" - a second dot in 1.0.0 is not highlighted,
161" - 08 is not highlighted,
162" - 08e0 or 08j are highlighted,
163"
164" and so on, as specified in the 'Python Language Reference'.
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100165" https://docs.python.org/reference/lexical_analysis.html#numeric-literals
Bram Moolenaar5c736222010-01-06 20:54:52 +0100166if !exists("python_no_number_highlight")
Bram Moolenaar071d4272004-06-13 20:20:40 +0000167 " numbers (including longs and complex)
Bram Moolenaar5c736222010-01-06 20:54:52 +0100168 syn match pythonNumber "\<0[oO]\=\o\+[Ll]\=\>"
169 syn match pythonNumber "\<0[xX]\x\+[Ll]\=\>"
170 syn match pythonNumber "\<0[bB][01]\+[Ll]\=\>"
171 syn match pythonNumber "\<\%([1-9]\d*\|0\)[Ll]\=\>"
172 syn match pythonNumber "\<\d\+[jJ]\>"
173 syn match pythonNumber "\<\d\+[eE][+-]\=\d\+[jJ]\=\>"
174 syn match pythonNumber
175 \ "\<\d\+\.\%([eE][+-]\=\d\+\)\=[jJ]\=\%(\W\|$\)\@="
176 syn match pythonNumber
Bram Moolenaarf9132812015-07-21 19:19:13 +0200177 \ "\%(^\|\W\)\zs\d*\.\d\+\%([eE][+-]\=\d\+\)\=[jJ]\=\>"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178endif
179
Bram Moolenaar5c736222010-01-06 20:54:52 +0100180" Group the built-ins in the order in the 'Python Library Reference' for
181" easier comparison.
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100182" https://docs.python.org/library/constants.html
183" http://docs.python.org/library/functions.html
Bram Moolenaar5c736222010-01-06 20:54:52 +0100184" Python built-in functions are in alphabetical order.
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100185"
186" The list can be checked using:
187"
188" python3 -c 'import builtins, pprint; pprint.pprint(dir(builtins), compact=True)'
189"
190" The constants added by the `site` module are not listed below because they
191" should not be used in programs, only in interactive interpreter.
192" Similarly for some other attributes and functions `__`-enclosed from the
193" output of the above command.
194"
Bram Moolenaar5c736222010-01-06 20:54:52 +0100195if !exists("python_no_builtin_highlight")
196 " built-in constants
Bram Moolenaarf9132812015-07-21 19:19:13 +0200197 " 'False', 'True', and 'None' are also reserved words in Python 3
Bram Moolenaar5c736222010-01-06 20:54:52 +0100198 syn keyword pythonBuiltin False True None
199 syn keyword pythonBuiltin NotImplemented Ellipsis __debug__
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100200 " constants added by the `site` module
201 syn keyword pythonBuiltin quit exit copyright credits license
Bram Moolenaar5c736222010-01-06 20:54:52 +0100202 " built-in functions
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100203 syn keyword pythonBuiltin abs all any ascii bin bool breakpoint bytearray
204 syn keyword pythonBuiltin bytes callable chr classmethod compile complex
205 syn keyword pythonBuiltin delattr dict dir divmod enumerate eval exec
206 syn keyword pythonBuiltin filter float format frozenset getattr globals
207 syn keyword pythonBuiltin hasattr hash help hex id input int isinstance
Bram Moolenaar5c736222010-01-06 20:54:52 +0100208 syn keyword pythonBuiltin issubclass iter len list locals map max
Bram Moolenaarf9132812015-07-21 19:19:13 +0200209 syn keyword pythonBuiltin memoryview min next object oct open ord pow
210 syn keyword pythonBuiltin print property range repr reversed round set
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100211 syn keyword pythonBuiltin setattr slice sorted staticmethod str sum super
212 syn keyword pythonBuiltin tuple type vars zip __import__
Bram Moolenaar77cdfd12016-03-12 12:57:59 +0100213 " avoid highlighting attributes as builtins
Bram Moolenaarb4ada792016-10-30 21:55:26 +0100214 syn match pythonAttribute /\.\h\w*/hs=s+1
215 \ contains=ALLBUT,pythonBuiltin,pythonFunction,pythonAsync
216 \ transparent
Bram Moolenaar071d4272004-06-13 20:20:40 +0000217endif
218
Bram Moolenaar5c736222010-01-06 20:54:52 +0100219" From the 'Python Library Reference' class hierarchy at the bottom.
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100220" http://docs.python.org/library/exceptions.html
Bram Moolenaar5c736222010-01-06 20:54:52 +0100221if !exists("python_no_exception_highlight")
Bram Moolenaarf9132812015-07-21 19:19:13 +0200222 " builtin base exceptions (used mostly as base classes for other exceptions)
Bram Moolenaar5c736222010-01-06 20:54:52 +0100223 syn keyword pythonExceptions BaseException Exception
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100224 syn keyword pythonExceptions ArithmeticError BufferError LookupError
Bram Moolenaar5c736222010-01-06 20:54:52 +0100225 " builtin exceptions (actually raised)
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100226 syn keyword pythonExceptions AssertionError AttributeError EOFError
227 syn keyword pythonExceptions FloatingPointError GeneratorExit ImportError
228 syn keyword pythonExceptions IndentationError IndexError KeyError
229 syn keyword pythonExceptions KeyboardInterrupt MemoryError
230 syn keyword pythonExceptions ModuleNotFoundError NameError
231 syn keyword pythonExceptions NotImplementedError OSError OverflowError
232 syn keyword pythonExceptions RecursionError ReferenceError RuntimeError
233 syn keyword pythonExceptions StopAsyncIteration StopIteration SyntaxError
Bram Moolenaar5c736222010-01-06 20:54:52 +0100234 syn keyword pythonExceptions SystemError SystemExit TabError TypeError
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100235 syn keyword pythonExceptions UnboundLocalError UnicodeDecodeError
236 syn keyword pythonExceptions UnicodeEncodeError UnicodeError
Bram Moolenaarf9132812015-07-21 19:19:13 +0200237 syn keyword pythonExceptions UnicodeTranslateError ValueError
238 syn keyword pythonExceptions ZeroDivisionError
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100239 " builtin exception aliases for OSError
240 syn keyword pythonExceptions EnvironmentError IOError WindowsError
Bram Moolenaarf9132812015-07-21 19:19:13 +0200241 " builtin OS exceptions in Python 3
242 syn keyword pythonExceptions BlockingIOError BrokenPipeError
243 syn keyword pythonExceptions ChildProcessError ConnectionAbortedError
244 syn keyword pythonExceptions ConnectionError ConnectionRefusedError
245 syn keyword pythonExceptions ConnectionResetError FileExistsError
246 syn keyword pythonExceptions FileNotFoundError InterruptedError
247 syn keyword pythonExceptions IsADirectoryError NotADirectoryError
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100248 syn keyword pythonExceptions PermissionError ProcessLookupError TimeoutError
Bram Moolenaar5c736222010-01-06 20:54:52 +0100249 " builtin warnings
250 syn keyword pythonExceptions BytesWarning DeprecationWarning FutureWarning
251 syn keyword pythonExceptions ImportWarning PendingDeprecationWarning
Bram Moolenaar9faec4e2021-02-27 16:38:07 +0100252 syn keyword pythonExceptions ResourceWarning RuntimeWarning
253 syn keyword pythonExceptions SyntaxWarning UnicodeWarning
Bram Moolenaar5c736222010-01-06 20:54:52 +0100254 syn keyword pythonExceptions UserWarning Warning
Bram Moolenaar071d4272004-06-13 20:20:40 +0000255endif
256
Bram Moolenaar5c736222010-01-06 20:54:52 +0100257if exists("python_space_error_highlight")
Bram Moolenaar071d4272004-06-13 20:20:40 +0000258 " trailing whitespace
Bram Moolenaar5c736222010-01-06 20:54:52 +0100259 syn match pythonSpaceError display excludenl "\s\+$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000260 " mixed tabs and spaces
Bram Moolenaar5c736222010-01-06 20:54:52 +0100261 syn match pythonSpaceError display " \+\t"
262 syn match pythonSpaceError display "\t\+ "
Bram Moolenaar071d4272004-06-13 20:20:40 +0000263endif
264
Bram Moolenaar5c736222010-01-06 20:54:52 +0100265" Do not spell doctests inside strings.
266" Notice that the end of a string, either ''', or """, will end the contained
267" doctest too. Thus, we do *not* need to have it as an end pattern.
268if !exists("python_no_doctest_highlight")
Bram Moolenaar34700a62013-03-07 13:20:54 +0100269 if !exists("python_no_doctest_code_highlight")
Bram Moolenaar5c736222010-01-06 20:54:52 +0100270 syn region pythonDoctest
271 \ start="^\s*>>>\s" end="^\s*$"
Bram Moolenaarb4ada792016-10-30 21:55:26 +0100272 \ contained contains=ALLBUT,pythonDoctest,pythonFunction,@Spell
Bram Moolenaar5c736222010-01-06 20:54:52 +0100273 syn region pythonDoctestValue
274 \ start=+^\s*\%(>>>\s\|\.\.\.\s\|"""\|'''\)\@!\S\++ end="$"
275 \ contained
276 else
277 syn region pythonDoctest
278 \ start="^\s*>>>" end="^\s*$"
279 \ contained contains=@NoSpell
280 endif
281endif
282
283" Sync at the beginning of class, function, or method definition.
Bram Moolenaarb4ada792016-10-30 21:55:26 +0100284syn sync match pythonSync grouphere NONE "^\%(def\|class\)\s\+\h\w*\s*[(:]"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000285
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200286" The default highlight links. Can be overridden later.
Bram Moolenaard0796902016-09-16 20:02:31 +0200287hi def link pythonStatement Statement
288hi def link pythonConditional Conditional
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200289hi def link pythonRepeat Repeat
290hi def link pythonOperator Operator
Bram Moolenaard0796902016-09-16 20:02:31 +0200291hi def link pythonException Exception
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200292hi def link pythonInclude Include
Bram Moolenaard0796902016-09-16 20:02:31 +0200293hi def link pythonAsync Statement
294hi def link pythonDecorator Define
295hi def link pythonDecoratorName Function
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200296hi def link pythonFunction Function
297hi def link pythonComment Comment
Bram Moolenaard0796902016-09-16 20:02:31 +0200298hi def link pythonTodo Todo
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200299hi def link pythonString String
Bram Moolenaard0796902016-09-16 20:02:31 +0200300hi def link pythonRawString String
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200301hi def link pythonQuotes String
Bram Moolenaard0796902016-09-16 20:02:31 +0200302hi def link pythonTripleQuotes pythonQuotes
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200303hi def link pythonEscape Special
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200304if !exists("python_no_number_highlight")
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200305 hi def link pythonNumber Number
Bram Moolenaar071d4272004-06-13 20:20:40 +0000306endif
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200307if !exists("python_no_builtin_highlight")
Bram Moolenaard0796902016-09-16 20:02:31 +0200308 hi def link pythonBuiltin Function
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200309endif
310if !exists("python_no_exception_highlight")
Bram Moolenaard0796902016-09-16 20:02:31 +0200311 hi def link pythonExceptions Structure
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200312endif
313if exists("python_space_error_highlight")
Bram Moolenaard0796902016-09-16 20:02:31 +0200314 hi def link pythonSpaceError Error
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200315endif
316if !exists("python_no_doctest_highlight")
Bram Moolenaard0796902016-09-16 20:02:31 +0200317 hi def link pythonDoctest Special
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200318 hi def link pythonDoctestValue Define
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200319endif
320
Bram Moolenaar071d4272004-06-13 20:20:40 +0000321let b:current_syntax = "python"
322
Bram Moolenaar00659062010-09-21 22:34:02 +0200323let &cpo = s:cpo_save
324unlet s:cpo_save
325
Bram Moolenaar5c736222010-01-06 20:54:52 +0100326" vim:set sw=2 sts=2 ts=8 noet: