From: Simon Ruderich Date: Sat, 30 May 2009 12:28:35 +0000 (+0200) Subject: perl: Check spelling in strings and comments. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=24038c18189841634d08502032e074bc27a4e5bb;p=config%2Fdotfiles.git perl: Check spelling in strings and comments. --- diff --git a/syntax/perl.vim b/syntax/perl.vim index 23bc805..8c41d28 100644 --- a/syntax/perl.vim +++ b/syntax/perl.vim @@ -210,13 +210,13 @@ syn match perlNotEmptyLine "^\s\+$" contained " Variable interpolation " " These items are interpolated inside "" strings and similar constructs. -syn cluster perlInterpDQ contains=perlSpecialString,perlVarPlain,perlVarNotInMatches,perlVarSlash,perlVarBlock +syn cluster perlInterpDQ contains=perlSpecialString,perlVarPlain,perlVarNotInMatches,perlVarSlash,perlVarBlock,@Spell " These items are interpolated inside '' strings and similar constructs. -syn cluster perlInterpSQ contains=perlSpecialStringU +syn cluster perlInterpSQ contains=perlSpecialStringU,@Spell " These items are interpolated inside m// matches and s/// substitutions. -syn cluster perlInterpSlash contains=perlSpecialString,perlSpecialMatch,perlVarPlain,perlVarBlock,perlSpecialBEOM +syn cluster perlInterpSlash contains=perlSpecialString,perlSpecialMatch,perlVarPlain,perlVarBlock,perlSpecialBEOM,@Spell " These items are interpolated inside m## matches and s### substitutions. -syn cluster perlInterpMatch contains=@perlInterpSlash,perlVarSlash +syn cluster perlInterpMatch contains=@perlInterpSlash,perlVarSlash,@Spell " Shell commands syn region perlShellCommand matchgroup=perlMatchStartEnd start="`" end="`" contains=@perlInterpDQ @@ -372,7 +372,7 @@ else endif " All other # are comments, except ^#! -syn match perlComment "#.*" contains=perlTodo +syn match perlComment "#.*" contains=perlTodo,@Spell syn match perlSharpBang "^#!.*" " Formats