comparison runtime/syntax/php.vim @ 835:8bebcabccc2c v7.0e01

updated for version 7.0e01
author vimboss
date Mon, 17 Apr 2006 22:14:47 +0000
parents 3fc0f57ecb91
children e63691e7c504
comparison
equal deleted inserted replaced
834:5117153003bd 835:8bebcabccc2c
1 " Vim syntax file 1 " Vim syntax file
2 " Language: php PHP 3/4/5 2 " Language: php PHP 3/4/5
3 " Maintainer: Lutz Eymers <ixtab@polzin.com> 3 " Maintainer: Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
4 " URL: http://www.isp.de/data/php.vim 4 " Former Maintainer: Lutz Eymers <ixtab@polzin.com>
5 " Last Change: 2004 Feb 04 5 " Last Change: $LastChangedDate: 2006-04-16 22:06:40 -0400 (dom, 16 apr 2006) $
6 " URL: http://svn.debian.org/wsvn/pkg-vim/trunk/runtime/syntax/php.vim?op=file&rev=0&sc=0
7 "
8 " XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain
9 " it only because patches have been submitted for it by Debian users and the
10 " former maintainer was MIA (Missing In Action), taking over its
11 " maintenance was thus the only way to include those patches.
12 " If you care about this file, and have time to maintain it please do so!
6 " 13 "
7 " Options php_sql_query = 1 for SQL syntax highlighting inside strings 14 " Options php_sql_query = 1 for SQL syntax highlighting inside strings
8 " php_htmlInStrings = 1 for HTML syntax highlighting inside strings 15 " php_htmlInStrings = 1 for HTML syntax highlighting inside strings
9 " php_baselib = 1 for highlighting baselib functions 16 " php_baselib = 1 for highlighting baselib functions
10 " php_asp_tags = 1 for highlighting ASP-style short tags 17 " php_asp_tags = 1 for highlighting ASP-style short tags
324 endif 331 endif
325 332
326 " String 333 " String
327 if exists("php_parent_error_open") 334 if exists("php_parent_error_open")
328 syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex contained keepend 335 syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex contained keepend
336 syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex contained keepend
329 syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@phpAddStrings contained keepend 337 syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@phpAddStrings contained keepend
330 else 338 else
331 syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex contained extend keepend 339 syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex contained extend keepend
340 syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex contained extend keepend
332 syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@phpAddStrings contained keepend extend 341 syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@phpAddStrings contained keepend extend
333 endif 342 endif
334 343
335 " HereDoc 344 " HereDoc
336 if version >= 600 345 if version >= 600
353 endif 362 endif
354 else 363 else
355 syn match phpParent "[({[\]})]" contained 364 syn match phpParent "[({[\]})]" contained
356 endif 365 endif
357 366
358 syn cluster phpClConst contains=phpFunctions,phpIdentifier,phpConditional,phpRepeat,phpStatement,phpOperator,phpRelation,phpStringSingle,phpStringDouble,phpNumber,phpFloat,phpKeyword,phpType,phpBoolean,phpStructure,phpMethodsVar,phpConstant,phpCoreConstant,phpException 367 syn cluster phpClConst contains=phpFunctions,phpIdentifier,phpConditional,phpRepeat,phpStatement,phpOperator,phpRelation,phpStringSingle,phpStringDouble,phpBacktick,phpNumber,phpFloat,phpKeyword,phpType,phpBoolean,phpStructure,phpMethodsVar,phpConstant,phpCoreConstant,phpException
359 syn cluster phpClInside contains=@phpClConst,phpComment,phpLabel,phpParent,phpParentError,phpInclude,phpHereDoc 368 syn cluster phpClInside contains=@phpClConst,phpComment,phpLabel,phpParent,phpParentError,phpInclude,phpHereDoc
360 syn cluster phpClFunction contains=@phpClInside,phpDefine,phpParentError,phpStorageClass 369 syn cluster phpClFunction contains=@phpClInside,phpDefine,phpParentError,phpStorageClass
361 syn cluster phpClTop contains=@phpClFunction,phpFoldFunction,phpFoldClass,phpFoldInterface,phpFoldTry,phpFoldCatch 370 syn cluster phpClTop contains=@phpClFunction,phpFoldFunction,phpFoldClass,phpFoldInterface,phpFoldTry,phpFoldCatch
362 371
363 " Php Region 372 " Php Region
461 HiLink phpSCKeyword StorageClass 470 HiLink phpSCKeyword StorageClass
462 HiLink phpFCKeyword Define 471 HiLink phpFCKeyword Define
463 HiLink phpStructure Structure 472 HiLink phpStructure Structure
464 HiLink phpStringSingle String 473 HiLink phpStringSingle String
465 HiLink phpStringDouble String 474 HiLink phpStringDouble String
475 HiLink phpBacktick String
466 HiLink phpNumber Number 476 HiLink phpNumber Number
467 HiLink phpFloat Float 477 HiLink phpFloat Float
468 HiLink phpMethods Function 478 HiLink phpMethods Function
469 HiLink phpFunctions Function 479 HiLink phpFunctions Function
470 HiLink phpBaselib Function 480 HiLink phpBaselib Function