nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src: rename `nit_version.nit` as `version.nit`
[nit.git]
/
lib
/
nitcc_runtime.nit
diff --git
a/lib/nitcc_runtime.nit
b/lib/nitcc_runtime.nit
index
b5fb0fb
..
1342c59
100644
(file)
--- a/
lib/nitcc_runtime.nit
+++ b/
lib/nitcc_runtime.nit
@@
-186,12
+186,14
@@
abstract class Lexer
last_state = state
end
var c
+ var next
if pos >= length then
c = '\0'
+ next = null
else
c = text[pos]
+ next = state.trans(c)
end
- var next = state.trans(c)
if next == null then
if pos_start < length then
if last_state == null then