Home Download Buy Blog Forum Support

Unrecognized Python 3 code in syntax highlighting

Unrecognized Python 3 code in syntax highlighting

Postby gegogi on Tue Jan 31, 2012 5:47 am

This holds for both version 1.4 & 2.

When a python code has annotation for a function's return type,
the syntax highlighting of the following code is all broken.

For example:
Code: Select all
def foo( value: int ) -> int:
    return value + 2
# all syntax highlighting broken below this line
...
gegogi
 
Posts: 2
Joined: Tue Jan 31, 2012 2:35 am

Re: Unrecognized Python 3 code in syntax highlighting

Postby Lord_DeathMatch on Fri Jul 12, 2013 3:33 am

This still seems to be the case... :'(
Lord_DeathMatch
 
Posts: 1
Joined: Sat May 04, 2013 4:38 pm

Re: Unrecognized Python 3 code in syntax highlighting

Postby Azeirah on Mon Jul 15, 2013 1:15 am

I just registered and was about to make a post about it.

I find this really annoying. Hope they will fix it soon!
Azeirah
 
Posts: 1
Joined: Mon Jul 15, 2013 1:14 am

Re: Unrecognized Python 3 code in syntax highlighting

Postby bialix on Thu Jan 30, 2014 11:04 am

2 years have passed. Any news on this issue?
bialix
 
Posts: 1
Joined: Thu Jan 30, 2014 11:03 am

Re: Unrecognized Python 3 code in syntax highlighting

Postby ntenney on Thu Jan 30, 2014 5:40 pm

Here's a wrinkle. In ST3, If I do this, syntax highlighting is only broken for the next function header. After that it works correctly. The part of the syntax that is causing problems is the -> int. Hopefully that will give some hints as to what in the highlighting engine is breaking.
ntenney
 
Posts: 66
Joined: Thu May 03, 2012 9:10 pm

Re: Unrecognized Python 3 code in syntax highlighting

Postby skuroda on Thu Jan 30, 2014 10:05 pm

skuroda
 
Posts: 677
Joined: Fri Oct 05, 2012 8:11 am


Return to General Discussion

Who is online

Users browsing this forum: giltig and 38 guests