Make imports look like includes

Imports work like includes so they should use the relevant group-name.

I also renamed pythonPreCondit to pythonImport since it's specific to
that type of "preprocessor" statement.
This commit is contained in:
pydave
2013-08-24 10:54:06 -07:00
parent 6f6f10ff54
commit 9ccbd6196b

View File

@@ -149,7 +149,7 @@ syn keyword pythonStatement with
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
syn keyword pythonRepeat for while
syn keyword pythonConditional if elif else
syn keyword pythonPreCondit import from
syn keyword pythonImport import from
syn keyword pythonException try except finally
syn keyword pythonOperator and in is not or
@@ -157,7 +157,7 @@ if s:Python2Syntax()
if !s:Enabled("g:python_print_as_function")
syn keyword pythonStatement print
endif
syn keyword pythonPreCondit as
syn keyword pythonImport as
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
else
syn keyword pythonStatement as nonlocal None
@@ -469,7 +469,7 @@ if version >= 508 || !exists("did_python_syn_inits")
endif
HiLink pythonStatement Statement
HiLink pythonPreCondit Statement
HiLink pythonImport Include
HiLink pythonFunction Function
HiLink pythonConditional Conditional
HiLink pythonRepeat Repeat