From a07ef9b27160d1975ebe53d8599e162cf589bf9e Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sat, 31 Mar 2018 12:50:46 +0100 Subject: [PATCH] extra python highlighting/syntax rules --- vim/after/syntax/python.vim | 2 ++ vim/colors/customred256.vim | 5 +++++ vim/syntax/python.vim | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 vim/after/syntax/python.vim diff --git a/vim/after/syntax/python.vim b/vim/after/syntax/python.vim new file mode 100644 index 0000000..5e73fe4 --- /dev/null +++ b/vim/after/syntax/python.vim @@ -0,0 +1,2 @@ +syn match pythonBrackets "[(){}\[\]]" containedin=ALL +syn match pythonNoise "[,:]" containedin=ALL diff --git a/vim/colors/customred256.vim b/vim/colors/customred256.vim index 0c72bde..a8b1cb0 100644 --- a/vim/colors/customred256.vim +++ b/vim/colors/customred256.vim @@ -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 diff --git a/vim/syntax/python.vim b/vim/syntax/python.vim index 3762d25..bee1c4a 100644 --- a/vim/syntax/python.vim +++ b/vim/syntax/python.vim @@ -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 {{{ " =============