mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-31 07:12:39 -06:00
ide: Comment spell checking now ignores non-letters
git-svn-id: svn://ultimatepp.org/upp/trunk@12707 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
405d94870b
commit
8a0b2bb308
1 changed files with 6 additions and 4 deletions
|
|
@ -97,12 +97,14 @@ const wchar *CSyntax::DoComment(HighlightOutput& hls, const wchar *p, const wcha
|
|||
for(const wchar *s = p; s < e && IsLetter(*s); s++)
|
||||
w.Cat(ToUpper(*s));
|
||||
int n = w.GetCount();
|
||||
if(!n)
|
||||
word flags = 0;
|
||||
if(n) {
|
||||
if(comments_lang && !SpellWord(w, comments_lang))
|
||||
flags = LineEdit::SPELLERROR;
|
||||
}
|
||||
else
|
||||
for(const wchar *s = p; s < e && !IsLetter(*s); s++)
|
||||
n++;
|
||||
word flags = 0;
|
||||
if(n && comments_lang && !SpellWord(w, comments_lang))
|
||||
flags = LineEdit::SPELLERROR;
|
||||
hls.SetFlags(n, flags);
|
||||
static WString todo = "TODO";
|
||||
static WString fixme = "FIXME";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue