diff --git a/harper-core/default_config.json b/harper-core/default_config.json index 00143ccb3..021f7e871 100644 --- a/harper-core/default_config.json +++ b/harper-core/default_config.json @@ -2955,6 +2955,13 @@ "label": "Expand Previous" } }, + { + "Bool": { + "name": "ExpandThough", + "state": true, + "label": "Expand Though" + } + }, { "Bool": { "name": "ExpandThrough", diff --git a/harper-core/src/linting/weir_rules/ExpandThough.weir b/harper-core/src/linting/weir_rules/ExpandThough.weir new file mode 100644 index 000000000..65205f863 --- /dev/null +++ b/harper-core/src/linting/weir_rules/ExpandThough.weir @@ -0,0 +1,10 @@ +expr main (tho) + +#mdkb +let message "Use `though` instead of `tho`" +let description "Expands the informal spelling `tho` to the standard word `though`." +let kind "Style" +let becomes "though" + +test "When i press the f8 key, it pause emulation, even tho the bind is not present at all" "When i press the f8 key, it pause emulation, even though the bind is not present at all" +test "I'm not sure what to say tho, it does work generally" "I'm not sure what to say though, it does work generally"