1.1 --- a/python.editor/src/org/netbeans/modules/python/editor/lexer/PythonLexer.java Fri Aug 14 23:18:24 2015 +0200
1.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/lexer/PythonLexer.java Thu Jul 09 15:46:07 2015 +0200
1.3 @@ -923,6 +923,10 @@
1.4 if (length == 4 && TokenUtilities.textEquals(s, "True")) { // NOI18N
1.5 return PythonTokenId.TRUE;
1.6 }
1.7 + case '_': // Special symbols of python
1.8 + if (length > 4 && TokenUtilities.startsWith(s, "__") && TokenUtilities.endsWith(s, "__")) { // NOI18N
1.9 + return PythonTokenId.STD_SYMBOLS;
1.10 + }
1.11 }
1.12
1.13 return null;