From ad1ce5ef610527e35df5ab3298108dda8093f22f Mon Sep 17 00:00:00 2001 From: Chris White Date: Mon, 29 May 2023 09:16:47 -0400 Subject: [PATCH] Add spell_language property To specify the natural language for which spelling should be checked. --- conf.py | 4 ++-- index.rst | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/conf.py b/conf.py index 0f91056..037a465 100644 --- a/conf.py +++ b/conf.py @@ -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 --------------------------------------------------- diff --git a/index.rst b/index.rst index a5c8efa..37f30cd 100644 --- a/index.rst +++ b/index.rst @@ -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 @@ -222,6 +222,12 @@ 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. * - ``trim_trailing_whitespace`` - Set to ``true`` to remove all whitespace characters preceding newline characters in the file and ``false`` to ensure it doesn't. @@ -275,6 +281,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