forked from jasder/antlr
Merge branch 'worsht-master'
This commit is contained in:
commit
3bdc4b7ee6
|
@ -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/05/27, jcbrinfo, Jean-Christophe Beaupré, jcbrinfo@users.noreply.github.com
|
||||||
2015/06/29, jvanzyl, Jason van Zyl, jason@takari.io
|
2015/06/29, jvanzyl, Jason van Zyl, jason@takari.io
|
||||||
2015/08/18, krzkaczor, Krzysztof Kaczor, krzysztof@kaczor.io
|
2015/08/18, krzkaczor, Krzysztof Kaczor, krzysztof@kaczor.io
|
||||||
|
2015/09/18, worsht, Rajiv Subrahmanyam, rajiv.public@gmail.com
|
||||||
|
|
|
@ -320,7 +320,7 @@ class Lexer(Recognizer, TokenSource):
|
||||||
elif c=='\r':
|
elif c=='\r':
|
||||||
return "\\r"
|
return "\\r"
|
||||||
else:
|
else:
|
||||||
return str(c)
|
return unicode(c)
|
||||||
|
|
||||||
def getCharErrorDisplay(self, c):
|
def getCharErrorDisplay(self, c):
|
||||||
return "'" + self.getErrorDisplayForChar(c) + "'"
|
return "'" + self.getErrorDisplayForChar(c) + "'"
|
||||||
|
|
Loading…
Reference in New Issue