from keyword highlighted only if it is at start of line

This commit is contained in:
Michael Doronin committed 2016-10-27 18:56:27 +03:00
1 parent b8ee3f0444
commit 10c3c0ece8
1 file changed
+2 -2
+2 -2
View File
@@ -168,8 +168,8 @@ syn keyword pythonImport import
syn keyword pythonException try except finally syn keyword pythonException try except finally
syn keyword pythonOperator and in is not or syn keyword pythonOperator and in is not or
syn match pythonStatement "\<yield\>" display syn match pythonStatement "^\s*yield\>" display
syn match pythonImport "\<from\>" display syn match pythonImport "^\s*from\>" display
if s:Python2Syntax() if s:Python2Syntax()
if !s:Enabled("g:python_print_as_function") if !s:Enabled("g:python_print_as_function")