Skip to content

Commit 16f024f

Browse files
committed
Clarified conflicting rules in multiple sections defined in the same .editorconfig file
1 parent 85b2921 commit 16f024f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ filesystem directory.
212212
Files are read top to bottom and the most recent rules found take
213213
precedence. If multiple EditorConfig files have matching sections, the rules
214214
from the closer EditorConfig file are read last, so pairs in closer
215-
files take precedence.
215+
files take precedence. Thus, in case a given file matches multiple sections
216+
within a single ``.editorconfig`` file, the rules defined in the section that
217+
comes later in the ``.editorconfig`` file take precedence over rules defined
218+
in the section that comes earlier in the same ``.editorconfig`` file.
216219

217220
Capitalization of the File Name
218221
-------------------------------

0 commit comments

Comments
 (0)