nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cad1c0d
)
lexer: implements next with peek
author
Jean Privat
<jean@pryen.org>
Wed, 21 Aug 2013 19:24:36 +0000
(15:24 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 22 Aug 2013 17:38:30 +0000
(13:38 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/parser/xss/lexer.xss
patch
|
blob
|
history
diff --git
a/src/parser/xss/lexer.xss
b/src/parser/xss/lexer.xss
index
3bb9e2e
..
3fe41f0
100644
(file)
--- a/
src/parser/xss/lexer.xss
+++ b/
src/parser/xss/lexer.xss
@@
-65,10
+65,7
@@
$ end foreach
# Give and consume the next token
fun next: Token
do
- var result = _token
- while result == null do
- result = get_token
- end
+ var result = peek
_token = null
return result
end