Home Download Buy Blog Forum Support

Missing word in Python syntax highlighting

Missing word in Python syntax highlighting

Postby Korso on Tue Mar 27, 2012 10:57 am

Hello,

URLError exception does not highlights unlike others like IOError
Korso
 
Posts: 2
Joined: Tue Mar 27, 2012 10:53 am

Re: Missing word in Python syntax highlighting

Postby agibsonsw on Tue Mar 27, 2012 12:13 pm

Open the Python.tmLanguage file and find this section:

Code: Select all
<dict>
      <key>builtin_exceptions</key>
      <dict>
         <key>match</key>
         <string>(?x)\b(
                (
                    Arithmetic|Assertion|Attribute|Buffer|EOF|Environment|FloatingPoint|IO|
                    Import|Indentation|Index|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|
                    Reference|Runtime|Standard|Syntax|System|Tab|Type|UnboundLocal|
                    Unicode(Encode|Decode|Translate)?|
                    Value|VMS|Windows|ZeroDivision
                )Error|
                ((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes)?Warning|
                (Base)?Exception|
                SystemExit|StopIteration|NotImplemented|KeyboardInterrupt|GeneratorExit
         )\b</string>

Amend to the following (carefully!). Save the file and re-start ST:
Code: Select all
|URL|Value|VMS|Windows|ZeroDivision
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: Missing word in Python syntax highlighting

Postby Korso on Fri Mar 30, 2012 12:48 am

Thank you! Definitely love this program. It has to have a file monitor cause I did not need to restart it.
Korso
 
Posts: 2
Joined: Tue Mar 27, 2012 10:53 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 24 guests