1. Pierre-Yves David
  2. vim-pep8colors

Commits

Pierre-Yves David  committed 7fd1d93

make named argument optional.

  • Participants
  • Parent commits a5a01d9
  • Branches default

Comments (0)

Files changed (1)

File syntax/python.vim

View file
  • Ignore whitespace
 syn region pythonRawString	matchgroup=Normal start=+[uU]\=[rR]"+ end=+"+ skip=+\\\\\|\\"+ contains=pythonStringFormat
 syn region pythonRawString	matchgroup=Normal start=+[uU]\=[rR]"""+ end=+"""+ contains=pythonStringFormat
 syn region pythonRawString	matchgroup=Normal start=+[uU]\=[rR]'''+ end=+'''+ contains=pythonStringFormat
-syn match  pythonStringFormat	"%(.\{-})s" contained
+syn match  pythonStringFormat	"%\((.\{-})\)\?[diouxXeEfFgGcrs]" contained
 
 syn match  pythonEscape		+\\[abfnrtv'"\\]+ contained
 syn match  pythonEscape		"\\\o\{1,3}" contained