extra python highlighting/syntax rules

This commit is contained in:
ManjaroOne666 2018-03-31 12:50:46 +01:00
parent a2848dde6f
commit a07ef9b271
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,2 @@
syn match pythonBrackets "[(){}\[\]]" containedin=ALL
syn match pythonNoise "[,:]" containedin=ALL

View File

@ -515,6 +515,11 @@ hi! def link GitGutterChangeDelete InterfaceSignModified
" #python definitions
hi! def link pythonImport CRNoise
hi! def link pythonInclude pythonImport
hi! def link pythonBrackets CRNoiseDark
hi! def link pythonQuotes CRNoise
hi! def link pythonDot CRNoise
hi! def link pythonNoise CRNoiseDark
"""""""""""""""
" #highlighting

View File

@ -318,7 +318,7 @@ endif
" }}}
if g:pymode_syntax_slow_sync
syn sync minlines=2000
syn sync minlines=2000"{{{
else
" This is fast but code inside triple quoted strings screws it up. It
" is impossible to fix because the only way to know if you are inside a
@ -326,6 +326,7 @@ else
syn sync match pythonSync grouphere NONE "):$"
syn sync maxlines=200
endif
"}}}
" Highlight {{{
" =============