Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (22 sloc) 0.851 kB
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
1 "Try to find a word list to use as a spelling dictionary
2 local elvispath locale i
3 if !locale
4 then set locale=gibberish
5 let! spelldict = elvispath("words")
6 if !spelldict
7 then {
8 for i in ("/usr/dict/";locale) /usr/dict /usr/share/dict
9 do {
10 if !spelldict && exists(i/"words")
11 then let! spelldict = i/"words"
12 }
13 }
14
15 "some common English suffixes
16 set! spellsuffix="'ve 'll 'd 's n't 're s ed"
17
18 "some valid English words which aren't in most /usr/dict/words files, and
19 "which can't be derived via the above suffixes.
20 words! won't can't I'm pragma etc
21 words! a b c d e f g h i j k l m n o p q r s t u v w x y z
22
23 "disable spell checking in parts of source code where it wouldn't be useful.
24 check! -string char regexp regsub prep prepquote variable keyword other number
25 check! -docindent docmarkup markup fold fixed libc libd libf libt libv
Something went wrong with that request. Please try again.