Commits

Pierre-Yves David committed 7730987

small improvement

  • Participants
  • Parent commits b2a0367

Comments (0)

Files changed (2)

colors/pep8python.vim

 hi PreProc  ctermfg=Yellow
 hi Type  ctermfg=2  
 hi Ignore cterm=bold ctermfg=7 
-hi Error  cterm=bold ctermfg=7 ctermbg=1   
+hi Error  cterm=bold ctermfg=7 ctermbg=darkred
 hi Todo  ctermfg=0 ctermbg=3  
 hi Operator ctermfg=DarkCyan
 hi Exception ctermfg=Red
 hi pythonDelimiter ctermfg=Yellow
 
 hi Define ctermfg=Blue
+
+hi Tabulation cterm=undercurl ctermfg=darkblue
+hi EOL cterm=undercurl ctermfg=DarkBlue
+
+
+

syntax/python.vim

 endif
 
 if exists("python_highlight_function_and_class")
-  syn match   pythonFunction	"_*[a-z][a-zA-Z0-9_]*(\@="
-  syn match   pythonClass	"_*[A-Z][a-zA-Z0-9_]*"
+  syn match   pythonFunction	"\<_*[a-z][a-zA-Z0-9_]*(\@="
+  syn match   pythonClass	"\<_*[A-Z][a-zA-Z0-9_]*"
 endif
 if exists("python_highlight_all_operator")
   syn match pythonCharOperator	"="
 endif
 
 if exists("python_highlight_constant")
-  " numbers (including longs and complex)
   syn match   pythonConstant	"\<[A-Z_][A-Z0-9_]*\>"
 endif
 if exists("python_highlight_delimiter")
-  " numbers (including longs and complex)
   syn match   pythonDelimiter	"("
   syn match   pythonDelimiter	")"
   syn match   pythonDelimiter	"{"
   " trailing whitespace
   syn match   pythonSpaceError   display excludenl "\S\s\+$"ms=s+1
   " mixed tabs and spaces
-  syn match   pythonSpaceError   display " \+\t"
-  syn match   pythonSpaceError   display "\t\+ "
+  syn match   pythonSpaceError   display "^\s* \+\t"
+  syn match   pythonSpaceError   display "^\s*\t\+ "
 endif
 
 " This is fast but code inside triple quoted strings screws it up. It