Skip to content

Commit 9ccbd61

Browse files
author
pydave
committed
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.
1 parent 6f6f10f commit 9ccbd61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntax/python.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ syn keyword pythonStatement with
149149
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
150150
syn keyword pythonRepeat for while
151151
syn keyword pythonConditional if elif else
152-
syn keyword pythonPreCondit import from
152+
syn keyword pythonImport import from
153153
syn keyword pythonException try except finally
154154
syn keyword pythonOperator and in is not or
155155

156156
if s:Python2Syntax()
157157
if !s:Enabled("g:python_print_as_function")
158158
syn keyword pythonStatement print
159159
endif
160-
syn keyword pythonPreCondit as
160+
syn keyword pythonImport as
161161
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
162162
else
163163
syn keyword pythonStatement as nonlocal None
@@ -469,7 +469,7 @@ if version >= 508 || !exists("did_python_syn_inits")
469469
endif
470470

471471
HiLink pythonStatement Statement
472-
HiLink pythonPreCondit Statement
472+
HiLink pythonImport Include
473473
HiLink pythonFunction Function
474474
HiLink pythonConditional Conditional
475475
HiLink pythonRepeat Repeat

0 commit comments

Comments
 (0)