1.1 --- a/python.editor/src/org/netbeans/modules/python/editor/lexer/PythonLexer.java Sat Jun 06 19:27:23 2015 +0200
1.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/lexer/PythonLexer.java Sat Jun 06 20:52:24 2015 +0200
1.3 @@ -693,6 +693,10 @@
1.4 return null;
1.5 }
1.6
1.7 + if (s.toString().endsWith("Error")) {
1.8 + return PythonTokenId.ERROR;
1.9 + }
1.10 +
1.11 char c1 = s.charAt(0);
1.12 char c2 = s.charAt(1);
1.13
2.1 --- a/python.editor/src/org/netbeans/modules/python/editor/resources/fontsColors.xml Sat Jun 06 19:27:23 2015 +0200
2.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/resources/fontsColors.xml Sat Jun 06 20:52:24 2015 +0200
2.3 @@ -44,6 +44,7 @@
2.4 <fontcolor name="NONE" foreColor="000066">
2.5 <font style="bold" />
2.6 </fontcolor>
2.7 + <fontcolor name="ERROR" foreColor="CC3300" />
2.8 <fontcolor name="STD_SYMBOLS" foreColor="3366CC" />
2.9
2.10 <!--"semantic" highlighting:-->