nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pep8analysis: Fix no init call
[nit.git]
/
contrib
/
pep8analysis
/
src
/
parser
/
lexer.nit
diff --git
a/contrib/pep8analysis/src/parser/lexer.nit
b/contrib/pep8analysis/src/parser/lexer.nit
index
96f5430
..
f985cf7
100644
(file)
--- a/
contrib/pep8analysis/src/parser/lexer.nit
+++ b/
contrib/pep8analysis/src/parser/lexer.nit
@@
-1,6
+1,6
@@
# Lexer and its tokens.
# This file was generated by SableCC (http://www.sablecc.org/).
# Lexer and its tokens.
# This file was generated by SableCC (http://www.sablecc.org/).
-module lexer is no_warning("missing-doc", "old-init")
+module lexer is generated, no_warning("missing-doc", "old-init")
intrude import parser_nodes
private import tables
intrude import parser_nodes
private import tables
@@
-255,7
+255,7
@@
redef class AError
init init_error(message: String, loc: Location)
do
init init_error(message: String, loc: Location)
do
- init(loc)
+ self.location = loc
self.message = message
end
end
self.message = message
end
end
@@
-337,7
+337,8
@@
class Lexer
if sp >= string_len then
dfa_state = -1
else
if sp >= string_len then
dfa_state = -1
else
- var c = string[sp].ascii
+ var c = string[sp].code_point
+ if c >= 255 then c = 255
sp += 1
var cr = _cr
sp += 1
var cr = _cr