From b50e0bf0217fb8fe52ba803565480abdb36b8f10 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 30 May 2009 14:30:02 +0200 Subject: [PATCH] php: Check spelling in strings. --- syntax/php.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.45.2