spell syntax regions

This commit is contained in:
Christoph J. Scherr 2023-07-05 12:07:30 +02:00
parent 34e7e05a3d
commit 69141f7850
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 10 additions and 0 deletions

View File

@ -112,3 +112,13 @@ nnoremap ZN [S
" correct with zc, default is z= but that sucks for qwertz keyboards " correct with zc, default is z= but that sucks for qwertz keyboards
nnoremap z<space> z= nnoremap z<space> z=
" don't make things written as `something` a typo
syntax region cCommentNoSpell start=+`+ end=+`+
\ contained containedin=cComment,cCommentL transparent
\ contains=@NoSpell
" don't make lines starting with `//!` a typo (used by rust docs)
syntax region cCommentNoSpell start=+//!+ end='\z1' contained extend
\ contained containedin=cComment,cCommentL transparent
\ contains=@NoSpell