from keyword highlighted only if it is at start of line

This commit is contained in:
Michael Doronin
2016-10-27 18:56:27 +03:00
parent b8ee3f0444
commit 10c3c0ece8

View File

@@ -168,8 +168,8 @@ syn keyword pythonImport import
syn keyword pythonException try except finally
syn keyword pythonOperator and in is not or
syn match pythonStatement "\<yield\>" display
syn match pythonImport "\<from\>" display
syn match pythonStatement "^\s*yield\>" display
syn match pythonImport "^\s*from\>" display
if s:Python2Syntax()
if !s:Enabled("g:python_print_as_function")