Skip to content

Commit c70b71f

Browse files
authored
Merge pull request #370 from hawkinsw/Issue333
Feature: Exclude 'todo' keywords from spellcheck
2 parents 3aeea06 + 4295c49 commit c70b71f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/org.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ if !exists('g:loaded_org_syntax')
219219
break
220220
endif
221221
endfor
222-
silent! exec 'syntax match org_todo_keyword_' . l:safename . ' /\*\{1,\}\s\{1,\}\zs' . l:_i .'\(\s\|$\)/ ' . a:todo_headings
222+
silent! exec 'syntax match org_todo_keyword_' . l:safename . ' /\*\{1,\}\s\{1,\}\zs' . l:_i .'\(\s\|$\)/ ' . a:todo_headings . ' contains=@NoSpell'
223223
silent! exec 'hi def link org_todo_keyword_' . l:safename . ' ' . l:group
224224
endfor
225225
endfunction

syntax/orgtodo.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if !exists('g:loaded_orgtodo_syntax')
3737
break
3838
endif
3939
endfor
40-
silent! exec 'syntax match orgtodo_todo_keyword_' . l:_i . ' /' . l:_i .'/ ' . a:todo_headings
40+
silent! exec 'syntax match orgtodo_todo_keyword_' . l:_i . ' /' . l:_i .'/ ' . a:todo_headings . ' contains=@NoSpell'
4141
silent! exec 'hi def link orgtodo_todo_keyword_' . l:_i . ' ' . l:group
4242
endfor
4343
endfunction

0 commit comments

Comments
 (0)