aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Seifferth <frankseifferth@posteo.net>2023-09-25 10:06:24 +0200
committerFrank Seifferth <frankseifferth@posteo.net>2023-09-25 10:15:10 +0200
commitd99ec6bb31b042bf0b6111c20d622f64636d2ed6 (patch)
tree5d48f17ddb4dad4f179a620ed455cff30eb21340
parentfb24ccf1b19fcc38de8cddbdd9883fff523d2e31 (diff)
downloadvis-editorconfig-d99ec6bb31b042bf0b6111c20d622f64636d2ed6.tar.gz
Rename 'spell_language' to 'spelling_language'
Discussion on the editorconfig standard seems to converge on calling the property 'spelling_language' rather than 'spell_language' (see [1]). This commit adjusts both the value that is expected to be found in .editorconfig files as well as the internal variable that stores this property. Note to editorconfig users: This commit changes the plugin's behaviour in a non backwards compatible way. All editorconfig files that contain the 'spell_language' property need to be updated. Note to spellchecker plugin developers: Since this commit also updates the internal variable name, plugins need to update this name as well. [1] https://github.com/editorconfig/specification/pull/41
-rw-r--r--edconf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/edconf.lua b/edconf.lua
index 64b9387..5ef0f1a 100644
--- a/edconf.lua
+++ b/edconf.lua
@@ -116,8 +116,8 @@ OPTIONS = {
vis_set("tabwidth", value)
end,
- spell_language = function (value, file)
- file.spell_language = value
+ spelling_language = function (value, file)
+ file.spelling_language = value
end,
insert_final_newline = function (value)