Mercurial > vim
comparison src/testdir/test_spell.vim @ 20802:ed00f0fbdaef v8.2.0953
patch 8.2.0953: spell checking doesn't work for CamelCased words
Commit: https://github.com/vim/vim/commit/362b44bd4aa87a2aef0f8fd5a28d68dd09a7d909
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 10 21:47:00 2020 +0200
patch 8.2.0953: spell checking doesn't work for CamelCased words
Problem: Spell checking doesn't work for CamelCased words.
Solution: Add the "camel" value in the new option 'spelloptions'.
(closes #1235)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Jun 2020 22:00:04 +0200 |
parents | 88d71b6fbae0 |
children | 6a4806e326dd |
comparison
equal
deleted
inserted
replaced
20801:f69512e0cedc | 20802:ed00f0fbdaef |
---|---|
74 func Test_spellbadword() | 74 func Test_spellbadword() |
75 set spell | 75 set spell |
76 | 76 |
77 call assert_equal(['bycycle', 'bad'], spellbadword('My bycycle.')) | 77 call assert_equal(['bycycle', 'bad'], spellbadword('My bycycle.')) |
78 call assert_equal(['another', 'caps'], 'A sentence. another sentence'->spellbadword()) | 78 call assert_equal(['another', 'caps'], 'A sentence. another sentence'->spellbadword()) |
79 | |
80 call assert_equal(['TheCamelWord', 'bad'], 'TheCamelWord asdf'->spellbadword()) | |
81 set spelloptions=camel | |
82 call assert_equal(['asdf', 'bad'], 'TheCamelWord asdf'->spellbadword()) | |
83 set spelloptions= | |
79 | 84 |
80 set spelllang=en | 85 set spelllang=en |
81 call assert_equal(['', ''], spellbadword('centre')) | 86 call assert_equal(['', ''], spellbadword('centre')) |
82 call assert_equal(['', ''], spellbadword('center')) | 87 call assert_equal(['', ''], spellbadword('center')) |
83 set spelllang=en_us | 88 set spelllang=en_us |