Skip to content

Commit

Permalink
Add spell_language property
Browse files Browse the repository at this point in the history
To specify the natural language for which spelling should be checked.
  • Loading branch information
cxw42 committed May 29, 2023
1 parent b50ab46 commit 70f0645
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 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--2020, EditorConfig Team'
author = 'EditorConfig Team'

version = '0.15.1'
release = '0.15.1'
version = '0.16.0'
release = '0.16.0'

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

Expand Down
14 changes: 13 additions & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ files take precedence.
Supported Pairs
===============

.. versionchanged:: 0.15.1
.. versionchanged:: 0.16

EditorConfig file sections contain key-value pairs separated by an
equal sign (``=``). With the exception of the ``root`` key, all pairs MUST be
Expand Down Expand Up @@ -222,6 +222,16 @@ and the supported values associated with them:
* - ``charset``
- Set to ``latin1``, ``utf-8``, ``utf-8-bom``, ``utf-16be`` or ``utf-16le`` to
control the character set. Use of ``utf-8-bom`` is discouraged.
* - ``spell_language``
- Sets the natural language that should be used for spell checking.
There is no default value.

The format is ``ss`` or ``ss_TT``, where ``ss`` is an `ISO 639`_
language code and ``TT`` is an `ISO 3166`_ territory identifier.

**Note:** This property does **not** specify the charset to be used.
The charset is in separate property ``charset``. Any charset
specification in this property will be silently ignored.
* - ``trim_trailing_whitespace``
- Set to ``true`` to remove all whitespace characters preceding newline
characters in the file and ``false`` to ensure it doesn't.
Expand Down Expand Up @@ -275,6 +285,8 @@ numbers. Those version numbers are independent of the version number of
this specification.

.. _core-tests repository: https://github.com/editorconfig/editorconfig-core-test
.. _ISO 639: https://en.wikipedia.org/wiki/ISO_639
.. _ISO 3166: https://en.wikipedia.org/wiki/ISO_3166
.. _Python configparser Library: https://docs.python.org/3/library/configparser.html
.. _Plugin Guidelines: https://github.com/editorconfig/editorconfig/wiki/Plugin-Guidelines
.. _plugin-tests repository: https://github.com/editorconfig/editorconfig-plugin-tests
Expand Down

0 comments on commit 70f0645

Please sign in to comment.