Sublime Forum

Missing word in Python syntax highlighting

#1

Hello,

URLError exception does not highlights unlike others like IOError

0 Likes

#2

Open the Python.tmLanguage file and find this section:

<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:

|URL|Value|VMS|Windows|ZeroDivision
0 Likes

#3

Thank you! Definitely love this program. It has to have a file monitor cause I did not need to restart it.

0 Likes