Add the highlight of Python arrow '->'

It adds the highlight of the arrow from the type hint system.
This commit is contained in:
Ludovic Koenig
2019-09-13 20:03:21 +02:00
parent f3f7995cf6
commit 404dcbb172
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ syntax keyword pythonOdysseyBoolean True False
syntax keyword pythonOdysseyBuiltin int float bool str bytes syntax keyword pythonOdysseyBuiltin int float bool str bytes
syntax keyword pythonOdysseySelf self syntax keyword pythonOdysseySelf self
syntax keyword pythonOdysseyPrint print syntax keyword pythonOdysseyPrint print
syntax match pythonOdysseyArrow '->'
syntax match pythonOdysseyFunction '\<\l\w*\>('me=e-1 syntax match pythonOdysseyFunction '\<\l\w*\>('me=e-1
syntax match pythonOdysseyType '\<\u\w*\>' syntax match pythonOdysseyType '\<\u\w*\>'
syntax keyword pythonStatement class nextgroup=pythonOdysseyClass skipwhite syntax keyword pythonStatement class nextgroup=pythonOdysseyClass skipwhite
+1
View File
@@ -302,6 +302,7 @@ call s:l( 'pythonOdysseyNone', 'Constant')
call s:l( 'pythonOdysseyBoolean', 'Constant') call s:l( 'pythonOdysseyBoolean', 'Constant')
call s:l( 'pythonOdysseyBuiltin', 'Type') call s:l( 'pythonOdysseyBuiltin', 'Type')
call s:l( 'pythonOdysseyPrint', 'Function') call s:l( 'pythonOdysseyPrint', 'Function')
call s:l( 'pythonOdysseyArrow', 'Keyword')
call s:l( 'pythonInclude', 'Statement') call s:l( 'pythonInclude', 'Statement')
call s:l('pythonOdysseyFunction', 'Function') call s:l('pythonOdysseyFunction', 'Function')
call s:l( 'pythonOdysseySelf', 'Special') call s:l( 'pythonOdysseySelf', 'Special')