mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Editorconfig: Fix parsing section lines with trailing comments (#363)
Copyright-paperwork-exempt: yes * lisp/editorconfig-core-handle.el (editorconfig-core-handle--parse-file): Fix parsing section lines with trailing comments. Cherrypick of commit 183cfa105c2e from upstream.
This commit is contained in:
parent
5e10b7fe4e
commit
7ec541ae2c
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ If CONF is not found return nil."
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
;; Start of section
|
;; Start of section
|
||||||
((looking-at "\\[\\(.*\\)\\][ \t]*$")
|
((looking-at "\\[\\(.*\\)\\][ \t]*\\(?:[#;].*\\)?$")
|
||||||
(let ((newpattern (match-string 1)))
|
(let ((newpattern (match-string 1)))
|
||||||
(when pattern
|
(when pattern
|
||||||
(push (make-editorconfig-core-handle-section
|
(push (make-editorconfig-core-handle-section
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue