X Tutup
Skip to content

Commit da6d233

Browse files
Addition of variables type hints
1 parent c1dd866 commit da6d233

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax/python.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ endif
116116
" ---------------------- custom ---------------------- "
117117
"syn match pythonArrow "->" contained
118118
syn match pythonTypeHint "\v: .{-}(\[.*\])? ?[,\)=]"ms=s+2,me=e-1 contains=pythonBuiltinTypeHint contained
119+
syn match pythonTypeHint "\v^\s*(\a|_|\.)+\s*:\s*\zs(\a|\.)+\ze\s*\=" contains=pythonBuiltinTypeHint
119120
syn match pythonReturnHint "\v-\> *.{-}(\[.*\])?:$"ms=s+2,me=e-1 contains=pythonBuiltinTypeHint
120121
" ---------------------------------------------------- "
121122

0 commit comments

Comments
 (0)
X Tutup