Skip to content

Commit 83c7ecb

Browse files
authored
Clarified conflicting rules in multiple sections defined in the same .editorconfig file (#75)
1 parent 85b2921 commit 83c7ecb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,12 @@ given filename. The search shall stop if an EditorConfig file is found with
209209
the ``root`` key set to ``true`` in the preamble or when reaching the root
210210
filesystem directory.
211211

212-
Files are read top to bottom and the most recent rules found take
213-
precedence. If multiple EditorConfig files have matching sections, the rules
212+
Files are read top to bottom and the most recent pairs found take
213+
precedence. Thus, in case a given file matches multiple sections
214+
within a single ``.editorconfig`` file, the pairs defined in the section that
215+
comes later in the ``.editorconfig`` file take precedence over pairs defined
216+
in the section that comes earlier in the same ``.editorconfig`` file.
217+
If multiple EditorConfig files have matching sections, the pairs
214218
from the closer EditorConfig file are read last, so pairs in closer
215219
files take precedence.
216220

0 commit comments

Comments
 (0)