diff --git a/index.rst b/index.rst index be2e8f7..8810ac5 100644 --- a/index.rst +++ b/index.rst @@ -162,6 +162,13 @@ special characters for wildcard matching: - any integer numbers between ``num1`` and ``num2``, where ``num1`` and ``num2`` can be either positive or negative +If the glob contains a path separator (a ``/`` not inside square brackets), then the glob is relative +to the directory level of the particular `.editorconfig` file itself. +Otherwise the pattern may also match at any level below the `.editorconfig` +level. For example, ``*.c`` matches any file that ends with ``.c`` in the +directory of ``.editorconfig``, but ``subdir/*.c`` only matches files that end +with ``.c`` in the ``subdir`` directory in the directory of ``.editorconfig``. + The backslash character (``\\``) can be used to escape a character so it is not interpreted as a special character.