1
0
Fork 0

vim highlight for python formatted strings. Good lord vim has god awful syntax highlight for Python =/

This commit is contained in:
Von Random 2015-03-22 01:37:27 +03:00
parent 6fc4556eed
commit accfd5778a

3
vimrc
View file

@ -188,6 +188,8 @@ if v:version >= 700
syn match pythonComma "," syn match pythonComma ","
" parenthesis " parenthesis
syn match pythonParens /[(){}\[\]]/ syn match pythonParens /[(){}\[\]]/
" TODO: do something about the next thing matching all the strings without .format().
syn match pythonStringFmt "{[^}]*}" display containedin=pythonString
" Apply highlights " Apply highlights
hi link pythonSelf Identifier hi link pythonSelf Identifier
@ -196,6 +198,7 @@ if v:version >= 700
hi link pythonColon Structure hi link pythonColon Structure
hi link pythonComma Structure hi link pythonComma Structure
hi link pythonParens Keyword hi link pythonParens Keyword
hi link pythonStringFmt Identifier
" Some preferences " Some preferences
setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 textwidth=80 smarttab expandtab setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 textwidth=80 smarttab expandtab