Add spell check markers to comments (#27)

This commit is contained in:
John Carlyle-Clarke 2022-10-25 13:51:27 +01:00 committed by GitHub
parent d07c3c9cca
commit 108fb6fff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,9 +116,9 @@ syn region String start='|||\s*\n\+\z(\s*\)' end='^\z1\@!\s*|||'
syn match Special "%\%(([^)]\+)\)\=[-#0 +]*\d*\%(\.\d\+\)\=[hlL]\=[diouxXeEfFgGcrs%]" contained containedin=String
syn match Special "%[-#0 +]*\%(\*\|\d\+\)\=\%(\.\%(\*\|\d\+\)\)\=[hlL]\=[diouxXeEfFgGcrs%]" contained containedin=String
syn region Comment start="/[*]" end="[*]/"
syn match Comment "//.*$"
syn match Comment "#.*$"
syn region Comment start="/[*]" end="[*]/" contains=@Spell
syn match Comment "//.*$" contains=@Spell
syn match Comment "#.*$" contains=@Spell
syn match Keyword "\<[a-zA-Z_][a-z0-9A-Z_]*\s*\(([^)]*)\)\?\s*+\?::\?:\?"