\f
;;; Utility functions:
-(defsubst fuel-debug--at-eou-p ()
- (looking-at ".*\\_<;\\_>"))
-
(defun fuel-debug--file-lines (file)
(when (file-readable-p file)
(with-current-buffer (find-file-noselect file)
(let ((lines) (in-usings))
(while (not (eobp))
(when (looking-at "^USING: ") (setq in-usings t))
- (unless in-usings
- (let ((line (substring-no-properties (thing-at-point 'line) 0 -1)))
- (unless (or (empty-string-p line)
- (fuel--string-prefix-p "! " line))
- (push line lines))))
- (when (and in-usings (fuel-debug--at-eou-p)) (setq in-usings nil))
+ (let ((line (substring-no-properties (thing-at-point 'line) 0 -1)))
+ (when in-usings (setq line (concat "! " line)))
+ (push line lines))
+ (when (and in-usings (looking-at ".*\\_<;\\_>")) (setq in-usings nil))
(forward-line))
(reverse lines))))))
(defun fuel-syntax--find-usings ()
(save-excursion
- (let ((usings)
- (in (fuel-syntax--current-vocab)))
- (when in (setq usings (list in)))
+ (let ((usings))
(goto-char (point-max))
(while (re-search-backward fuel-syntax--using-lines-regex nil t)
(dolist (u (split-string (match-string-no-properties 1) nil t))