From 10c3c0ece8064f2d61639b196ae9f9d6660866c4 Mon Sep 17 00:00:00 2001 From: Michael Doronin Date: Thu, 27 Oct 2016 18:56:27 +0300 Subject: [PATCH] from keyword highlighted only if it is at start of line --- syntax/python.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/python.vim b/syntax/python.vim index 69cffe8..010e7a0 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -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 "\" display -syn match pythonImport "\" display +syn match pythonStatement "^\s*yield\>" display +syn match pythonImport "^\s*from\>" display if s:Python2Syntax() if !s:Enabled("g:python_print_as_function")