Skip to content

Commit

Permalink
fix backward scan
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jul 16, 2023
1 parent bd0b18d commit a35ed0b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/base/syntax-scan.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,9 @@
count)))

(defun inline-line-comment-p (point)
(with-point ((start point))
(line-start start)
(let ((pps-state (parse-partial-sexp start point)))
(when (pps-state-comment-p pps-state)
(move-point point (pps-state-token-start-point pps-state))))))
(let ((pps-state (syntax-ppss point)))
(when (pps-state-comment-p pps-state)
(move-point point (pps-state-token-start-point pps-state)))))

(defun %skip-comment-forward (point)
(multiple-value-bind (n pair)
Expand Down

0 comments on commit a35ed0b

Please sign in to comment.