summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-syntax.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index d4ea75e..3af6539 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -362,11 +362,12 @@ implementation-specific entries for font-lock-keywords.")
(defsubst geiser-syntax--symbol-eq (s0 s1)
(and (symbolp s0) (symbolp s1) (equal (symbol-name s0) (symbol-name s1))))
-(defun geiser-syntax--scan-sexps (&optional begin)
+(defun geiser-syntax--scan-sexps ()
(let* ((fst (geiser-syntax--symbol-at-point))
(smth (or fst (not (looking-at-p "[\s \s)\s>\s<\n]"))))
- (path (and fst `((,fst 0)))))
+ (path))
(save-excursion
+ (when fst (backward-up-list) (push `(,fst 0) path))
(while (> (or (geiser-syntax--nesting-level) 0) 0)
(let ((boundary (point)))
(geiser-syntax--skip-comment/string)