Files
vim-odyssey/after/syntax/python.vim
T
Ludovic Koenig 343e77e065 Update the modelines of the scripts
The modelines of the Vim scripts are now containing the value of
`textwidth`and `colorcolumn`.
2019-09-28 10:16:40 +02:00

39 lines
1.6 KiB
VimL

" __ __ ____
" ____ __ __ / /_ / /_ ____ ____ / __/____ _____
" / __ \ / / / // __// __ \ / __ \ / __ \ / /_ / __ \ / ___/
" / /_/ // /_/ // /_ / / / // /_/ // / / / / __// /_/ // /
" / .___/ \__, / \__//_/ /_/ \____//_/ /_/ /_/ \____//_/
" /_/ /____/ __
" ____ ____/ /__ __ _____ _____ ___ __ __
" / __ \ / __ // / / // ___// ___// _ \ / / / /
" / /_/ // /_/ // /_/ /(__ )(__ )/ __// /_/ /
" \____/ \__,_/ \__, //____//____/ \___/ \__, /
" /____/ /____/
"
" Note: This script aims at providing some additional syntax groups for Python.
" It may also reuse standard group to create them. It mostly introduces
" supports for:
" - Type and Classes,
" - Functions.
"
" Maintainer: Ludovic Koenig <ludovic.koenig@gmail.com>
" Version: 0.5.0
" Since: 0.5.0
" License: MIT
"
" Python Syntax {{{
syntax keyword pythonOdysseyNone None
syntax keyword pythonOdysseyBoolean True False
syntax keyword pythonOdysseyBuiltin int float bool str bytes
syntax keyword pythonOdysseySelf self
syntax keyword pythonOdysseyPrint print
syntax match pythonOdysseyArrow '->'
syntax match pythonOdysseyFunction '\<\l\w*\>('me=e-1
syntax match pythonOdysseyType '\<\u\w*\>'
syntax keyword pythonStatement class nextgroup=pythonOdysseyClass skipwhite
syntax match pythonOdysseyClass "\<\u\w*\>"
" }}}
" vim: foldmethod=marker textwidth=79 colorcolumn=+1