Skip to content

Commit

Permalink
Clarified conflicting rules in multiple sections defined in the same …
Browse files Browse the repository at this point in the history
….editorconfig file
  • Loading branch information
mipo256 committed Mar 1, 2025
1 parent 4c747a0 commit 8390119
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ filesystem directory.
Files are read top to bottom and the most recent rules found take
precedence. If multiple EditorConfig files have matching sections, the rules
from the closer EditorConfig file are read last, so pairs in closer
files take precedence.
files take precedence. Thus, in case a given file matches multiple sections
within a single ``.editorconfig`` file, the rules defined in the section that
comes later in the ``.editorconfig`` file take precedence over rules defined
in the section that comes earlier in the same ``.editorconfig`` file.

.. _supported-pairs:

Expand Down

0 comments on commit 8390119

Please sign in to comment.