]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
php: Check spelling in strings.
authorSimon Ruderich <simon@ruderich.org>
Sat, 30 May 2009 12:30:02 +0000 (14:30 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 30 May 2009 12:30:02 +0000 (14:30 +0200)
syntax/php.vim

index f7a059b686df675f21337c8927b24bd05618f9af..5dc442b5ef7792229f8663280d7d2a6203ef69eb 100644 (file)
@@ -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