mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-11 23:21:57 +08:00
from keyword highlighted only if it is at start of line
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user