From: Simon Ruderich Date: Sat, 30 May 2009 12:30:02 +0000 (+0200) Subject: php: Check spelling in strings. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b50e0bf0217fb8fe52ba803565480abdb36b8f10;p=config%2Fdotfiles.git php: Check spelling in strings. --- diff --git a/syntax/php.vim b/syntax/php.vim index f7a059b..5dc442b 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -644,7 +644,7 @@ syn case ignore " to these strings syn cluster phpClValues add=phpStringSingle syn region phpStringSingle matchgroup=phpQuoteSingle start=/'/ skip=/\\./ end=/'/ - \ contained keepend extend contains=@phpClShowInStrings + \ contained keepend extend contains=@phpClShowInStrings,@Spell " Note: this next version of the php double-quoted string can't contain " variables, because a few parts of PHP code require strings without @@ -654,20 +654,20 @@ syn case ignore syn cluster phpClValues add=phpStringDoubleConstant syn region phpStringDoubleConstant contained keepend extend \ matchgroup=phpQuoteSingle start=/"/ end=/"/ skip=/\\./ - \ contains=@phpClShowInStrings,phpSpecialChar + \ contains=@phpClShowInStrings,phpSpecialChar,@Spell " Note: this version of the double-quoted string also contains " @phpClStringIdentifiers, which means variables can go inside the string syn cluster phpClExpressions add=phpStringDouble syn region phpStringDouble matchgroup=phpQuoteDouble start=/"/ skip=/\\./ end=/"/ \ contained keepend extend - \ contains=@phpClShowInStrings,phpSpecialChar,@phpClStringIdentifiers + \ contains=@phpClShowInStrings,phpSpecialChar,@phpClStringIdentifiers,@Spell " backticks syn cluster phpClExpressions add=phpBacktick syn region phpBacktick matchgroup=phpQuoteBacktick start=/`/ skip=/\\./ end=/`/ \ contained keepend extend - \ contains=phpSpecialChar,@phpClStringIdentifiers + \ contains=phpSpecialChar,@phpClStringIdentifiers,@Spell " this cluster contains only strings which accept things like \n or \x32 " inside them