Merge branch 'worsht-master'

This commit is contained in:
Terence Parr 2015-09-18 14:04:49 -07:00
commit 3bdc4b7ee6
2 changed files with 2 additions and 1 deletions

View File

@ -76,3 +76,4 @@ YYYY/MM/DD, github id, Full name, email
2015/05/27, jcbrinfo, Jean-Christophe Beaupré, jcbrinfo@users.noreply.github.com
2015/06/29, jvanzyl, Jason van Zyl, jason@takari.io
2015/08/18, krzkaczor, Krzysztof Kaczor, krzysztof@kaczor.io
2015/09/18, worsht, Rajiv Subrahmanyam, rajiv.public@gmail.com

View File

@ -320,7 +320,7 @@ class Lexer(Recognizer, TokenSource):
elif c=='\r':
return "\\r"
else:
return str(c)
return unicode(c)
def getCharErrorDisplay(self, c):
return "'" + self.getErrorDisplayForChar(c) + "'"