diff --git a/lisp/editorconfig-core-handle.el b/lisp/editorconfig-core-handle.el index 0849b7bbefd..b75568dbde9 100644 --- a/lisp/editorconfig-core-handle.el +++ b/lisp/editorconfig-core-handle.el @@ -177,7 +177,7 @@ If CONF is not found return nil." nil) ;; Start of section - ((looking-at "\\[\\(.*\\)\\][ \t]*$") + ((looking-at "\\[\\(.*\\)\\][ \t]*\\(?:[#;].*\\)?$") (let ((newpattern (match-string 1))) (when pattern (push (make-editorconfig-core-handle-section