tags 34805 + patch quit Andrey Bondarenko writes: > If comment-start-skip contains alternatives smie-indent-fixindent will > construct wrong regexp that appends "fixindent" only to last alternative > and match all other aletrnatives as is. > > For example: > > (let ((comment-start-skip "#+\\s *\\|//+\\s *") > (comment-end-skip "")) > (concat comment-start-skip > "fixindent" > comment-end-skip)) → "#+\\s *\\|//+\\s *fixindent" > > This regexp would match "// fixindent" comments and any comment > that starts with "#", which is wrong. > > I think it should enclose comment-start-skip and comment-end-skip in \\( > \\) to work correctly. I used a shy group \\(?:\\), but yes that makes sense. I found a couple of other spots by grepping, fixed in the patch below.