Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
Refactoring 🍕
Browse files Browse the repository at this point in the history
  • Loading branch information
gongo committed Feb 25, 2015
1 parent fc9e4e7 commit 8eb99bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ikku.el
Expand Up @@ -208,9 +208,9 @@
(goto-char (point-min))

(cl-loop while (re-search-forward "^\\([^\t]+\\)\t\\([0-9]\\)\t\\(.+\\)$" nil t)
collect (prog1
(setq node (new-ikku:node (match-string 1) (match-string 2) position (match-string 3)))
(setq position (+ position (length (ikku:node-surface node)))))))))
do (setq node (new-ikku:node (match-string 1) (match-string 2) position (match-string 3)))
do (setq position (+ position (length (ikku:node-surface node))))
collect node))))

(defun ikku/scan (nodes rule)
(let ((scanner (make-ikku:scanner :nodes nodes :rule rule :current-count 0)))
Expand Down

0 comments on commit 8eb99bd

Please sign in to comment.