mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-13 15:57:36 +02:00
Performance improvements
This commit is contained in:
parent
7b6e393668
commit
aa822470ce
1 changed files with 4 additions and 5 deletions
|
@ -152,12 +152,11 @@
|
|||
(in-port:set-cnum! ptbl 0)
|
||||
(parse fp '() toks all? #f parens ptbl))
|
||||
(parse fp '() toks all? #t parens ptbl)))
|
||||
((eq? c #\newline)
|
||||
(in-port:set-lnum! ptbl (+ 1 (in-port:get-lnum ptbl)))
|
||||
(in-port:set-cnum! ptbl 0)
|
||||
(parse/tok fp tok toks all? #f parens ptbl c))
|
||||
((char-whitespace? c)
|
||||
(if (equal? c #\newline)
|
||||
(in-port:set-lnum! ptbl
|
||||
(+ 1 (in-port:get-lnum ptbl))))
|
||||
(if (equal? c #\newline)
|
||||
(in-port:set-cnum! ptbl 0))
|
||||
(parse/tok fp tok toks all? #f parens ptbl c))
|
||||
((eq? c #\;)
|
||||
(parse/tok fp tok toks all? #t parens ptbl c))
|
||||
|
|
Loading…
Add table
Reference in a new issue