Skip to content

Commit

Permalink
Rename 'spell_language' to 'spelling_language'
Browse files Browse the repository at this point in the history
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] editorconfig/specification#41
  • Loading branch information
seifferth committed Sep 25, 2023
1 parent fb24ccf commit d99ec6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edconf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d99ec6b

Please sign in to comment.