diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-22 18:56:34 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-22 19:33:08 -0700 |
commit | ab7ae4da85c41ce4e75e5cb2498a426a5597a349 (patch) | |
tree | 100aa2fd01fcb6f5c6960453b13e81db9c41516a /src/util.lisp | |
parent | 9803f3fa9327c7600042bcc4549fb9e33b73d24c (diff) | |
download | consfigurator-ab7ae4da85c41ce4e75e5cb2498a426a5597a349.tar.gz |
fix extracting indentation declarations in property definitions
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 4 |
1 files changed, 3 insertions, 1 deletions
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)) |