From ab7ae4da85c41ce4e75e5cb2498a426a5597a349 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 22 Mar 2021 18:56:34 -0700 Subject: fix extracting indentation declarations in property definitions Signed-off-by: Sean Whitton --- src/util.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util.lisp') diff --git a/src/util.lisp b/src/util.lisp index 7ee7e1a..f07e90e 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -116,7 +116,9 @@ supported." (error ',name :format-control message :format-arguments args)))) (defmacro form-beginning-with (sym form) - `(and (listp ,form) (eq ',sym (car ,form)))) + `(and (listp ,form) + (symbolp (car ,form)) + (string= (symbol-name (car ,form)) ,(symbol-name sym)))) (defun strip-declarations (forms) (loop while (form-beginning-with declare (car forms)) -- cgit v1.2.3