Skip to content

Commit

Permalink
Values can be omitted, in which case the value is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
cxw42 committed Sep 15, 2024
1 parent f4ebd49 commit 8c89aca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
copyright = '2019--2024, EditorConfig Team'
author = 'EditorConfig Team'

version = '0.16.1'
release = '0.16.1'
version = '0.17.0'
release = '0.17.0'

# -- General configuration ---------------------------------------------------

Expand Down
14 changes: 8 additions & 6 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ EditorConfig organization.
File Format
===========

.. versionchanged:: 0.16.1
.. versionchanged:: 0.17.0

EditorConfig files are in an INI-like file format.
To read an EditorConfig file, take one line at a time. For each line:
Expand All @@ -90,11 +90,13 @@ The types of lines are:
``[`` and ``]`` and even spaces and tabs are allowed).
- Forward slashes (``/``) are used as path separators.
- Backslashes (``\\``) are not allowed as path separators (even on Windows).
- Key-Value Pair (or Pair): contains a key and a value, separated by an ``=``.
- Key: The part before the first ``=`` (trimmed of whitespace, but including
any whitespace in the middle).
- Value: The part after the first ``=`` (trimmed of whitespace, but including
any whitespace in the middle).
- Key-Value Pair (or Pair): contains a key, an ``=``, and optionally a value.
- Key: The part before the first ``=`` on the line.
- Value: The part after the first ``=`` on the line, if any.
- Keys and values are trimmed of leading and trailing whitespace, but
include any whitespace that is between non-whitespace characters.
- If a value is not provided, then the value is an empty string
(i.e., ``""`` in C or Python).

Any line that is not one of the above is invalid.

Expand Down

0 comments on commit 8c89aca

Please sign in to comment.