Mercurial > vim
comparison runtime/syntax/python.vim @ 10051:46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 31 22:22:10 2016 +0200
Updated runtime files. Remove HiLink commands.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Aug 2016 22:30:08 +0200 |
parents | 43efa4f5a8ea |
children | b7da8d4c594c |
comparison
equal
deleted
inserted
replaced
10050:b702edc4b2b8 | 10051:46763b01cd9a |
---|---|
287 endif | 287 endif |
288 | 288 |
289 " Sync at the beginning of class, function, or method definition. | 289 " Sync at the beginning of class, function, or method definition. |
290 syn sync match pythonSync grouphere NONE "^\s*\%(def\|class\)\s\+\h\w*\s*(" | 290 syn sync match pythonSync grouphere NONE "^\s*\%(def\|class\)\s\+\h\w*\s*(" |
291 | 291 |
292 command -nargs=+ HiLink hi def link <args> | |
293 | 292 |
294 " The default highlight links. Can be overridden later. | 293 " The default highlight links. Can be overridden later. |
295 HiLink pythonStatement Statement | 294 hi def link pythonStatement Statement |
296 HiLink pythonConditional Conditional | 295 hi def link pythonConditional Conditional |
297 HiLink pythonRepeat Repeat | 296 hi def link pythonRepeat Repeat |
298 HiLink pythonOperator Operator | 297 hi def link pythonOperator Operator |
299 HiLink pythonException Exception | 298 hi def link pythonException Exception |
300 HiLink pythonInclude Include | 299 hi def link pythonInclude Include |
301 HiLink pythonAsync Statement | 300 hi def link pythonAsync Statement |
302 HiLink pythonDecorator Define | 301 hi def link pythonDecorator Define |
303 HiLink pythonDecoratorName Function | 302 hi def link pythonDecoratorName Function |
304 HiLink pythonFunction Function | 303 hi def link pythonFunction Function |
305 HiLink pythonComment Comment | 304 hi def link pythonComment Comment |
306 HiLink pythonTodo Todo | 305 hi def link pythonTodo Todo |
307 HiLink pythonString String | 306 hi def link pythonString String |
308 HiLink pythonRawString String | 307 hi def link pythonRawString String |
309 HiLink pythonQuotes String | 308 hi def link pythonQuotes String |
310 HiLink pythonTripleQuotes pythonQuotes | 309 hi def link pythonTripleQuotes pythonQuotes |
311 HiLink pythonEscape Special | 310 hi def link pythonEscape Special |
312 if !exists("python_no_number_highlight") | 311 if !exists("python_no_number_highlight") |
313 HiLink pythonNumber Number | 312 hi def link pythonNumber Number |
314 endif | 313 endif |
315 if !exists("python_no_builtin_highlight") | 314 if !exists("python_no_builtin_highlight") |
316 HiLink pythonBuiltin Function | 315 hi def link pythonBuiltin Function |
317 endif | 316 endif |
318 if !exists("python_no_exception_highlight") | 317 if !exists("python_no_exception_highlight") |
319 HiLink pythonExceptions Structure | 318 hi def link pythonExceptions Structure |
320 endif | 319 endif |
321 if exists("python_space_error_highlight") | 320 if exists("python_space_error_highlight") |
322 HiLink pythonSpaceError Error | 321 hi def link pythonSpaceError Error |
323 endif | 322 endif |
324 if !exists("python_no_doctest_highlight") | 323 if !exists("python_no_doctest_highlight") |
325 HiLink pythonDoctest Special | 324 hi def link pythonDoctest Special |
326 HiLink pythonDoctestValue Define | 325 hi def link pythonDoctestValue Define |
327 endif | 326 endif |
328 | 327 |
329 delcommand HiLink | |
330 | 328 |
331 let b:current_syntax = "python" | 329 let b:current_syntax = "python" |
332 | 330 |
333 let &cpo = s:cpo_save | 331 let &cpo = s:cpo_save |
334 unlet s:cpo_save | 332 unlet s:cpo_save |