Add spell-checking to strings and comments.
This commit is contained in:
parent
0148af0668
commit
00a9a651af
1 changed files with 14 additions and 14 deletions
|
@ -498,29 +498,29 @@ syn keyword phpTodo todo fixme xxx note contained
|
||||||
|
|
||||||
" Comment
|
" Comment
|
||||||
if exists("php_parent_error_open")
|
if exists("php_parent_error_open")
|
||||||
syn region phpComment start="/\*" end="\*/" contained contains=phpTodo
|
syn region phpComment start="/\*" end="\*/" contained contains=phpTodo,@Spell
|
||||||
else
|
else
|
||||||
syn region phpComment start="/\*" end="\*/" contained contains=phpTodo extend
|
syn region phpComment start="/\*" end="\*/" contained contains=phpTodo,@Spell extend
|
||||||
endif
|
endif
|
||||||
if version >= 600
|
if version >= 600
|
||||||
syn match phpComment "#.\{-}\(?>\|$\)\@=" contained contains=phpTodo
|
syn match phpComment "#.\{-}\(?>\|$\)\@=" contained contains=phpTodo,@Spell
|
||||||
syn match phpComment "//.\{-}\(?>\|$\)\@=" contained contains=phpTodo
|
syn match phpComment "//.\{-}\(?>\|$\)\@=" contained contains=phpTodo,@Spell
|
||||||
else
|
else
|
||||||
syn match phpComment "#.\{-}$" contained contains=phpTodo
|
syn match phpComment "#.\{-}$" contained contains=phpTodo,@Spell
|
||||||
syn match phpComment "#.\{-}?>"me=e-2 contained contains=phpTodo
|
syn match phpComment "#.\{-}?>"me=e-2 contained contains=phpTodo,@Spell
|
||||||
syn match phpComment "//.\{-}$" contained contains=phpTodo
|
syn match phpComment "//.\{-}$" contained contains=phpTodo,@Spell
|
||||||
syn match phpComment "//.\{-}?>"me=e-2 contained contains=phpTodo
|
syn match phpComment "//.\{-}?>"me=e-2 contained contains=phpTodo,@Spell
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" String
|
" String
|
||||||
if exists("php_parent_error_open")
|
if exists("php_parent_error_open")
|
||||||
syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
||||||
syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
||||||
syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@phpAddStrings,phpStrEsc contained keepend
|
syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,@phpAddStrings,phpStrEsc contained keepend
|
||||||
else
|
else
|
||||||
syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
||||||
syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
||||||
syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@phpAddStrings,phpStrEsc contained keepend extend
|
syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,@phpAddStrings,phpStrEsc contained keepend extend
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" HereDoc
|
" HereDoc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue