Updated against PHP 5.5.10
Added some logic to strip out the null character APC stuff, added some more extensions and added some logic to attempt to install via `brew` when the argument "brew" is passed to the update script
This commit is contained in:
parent
87ee790293
commit
cc2285a67e
3 changed files with 272 additions and 12 deletions
|
@ -9,7 +9,7 @@ syntax file distributed with Vim.
|
|||
The point of this fork is to embrace the latest and greatest PHP has to offer
|
||||
and constantly update against the latest PHP release.
|
||||
|
||||
Last updated against **5.5.9**
|
||||
Last updated against **5.5.10**
|
||||
|
||||
[StanAngeloff]: https://github.com/StanAngeloff/php.vim
|
||||
[garvin]: https://github.com/vim-scripts/php.vim--Garvin
|
||||
|
|
213
syntax/php.vim
213
syntax/php.vim
File diff suppressed because one or more lines are too long
|
@ -34,45 +34,66 @@ $allowed_extensions = [
|
|||
'amqp',
|
||||
'apcu',
|
||||
'bcmath',
|
||||
'blitz',
|
||||
'boxwood',
|
||||
'bz2',
|
||||
'calendar',
|
||||
'chdb',
|
||||
#'com_dotnet',
|
||||
'core',
|
||||
'couchbase',
|
||||
'crypto',
|
||||
'ctype',
|
||||
'curl',
|
||||
'date',
|
||||
'dba',
|
||||
'dbase',
|
||||
'dmtx',
|
||||
'dom',
|
||||
#'enchant',
|
||||
'ereg',
|
||||
'ev',
|
||||
'exif',
|
||||
'fileinfo',
|
||||
'filter',
|
||||
'ftp',
|
||||
'gearman',
|
||||
'gd',
|
||||
'geoip',
|
||||
'gettext',
|
||||
'gmagick',
|
||||
#'gmp',
|
||||
'graphdat',
|
||||
'hash',
|
||||
'http',
|
||||
'iconv',
|
||||
'igbinary',
|
||||
'imagick',
|
||||
#'imap',
|
||||
#'interbase',
|
||||
'intl',
|
||||
'jsmin',
|
||||
'json',
|
||||
'judy',
|
||||
'ldap',
|
||||
'leveldb',
|
||||
'libevent',
|
||||
'libvirt',
|
||||
'libxml',
|
||||
'lzf',
|
||||
'mailparse',
|
||||
'mbstring',
|
||||
'mcrypt',
|
||||
'memcache',
|
||||
'memcached',
|
||||
'mhash',
|
||||
'mongo',
|
||||
'mosquitto',
|
||||
'msgpack',
|
||||
#'mssql',
|
||||
'mysql',
|
||||
'mysqli',
|
||||
'mysqlnd_ms',
|
||||
'oauth',
|
||||
#'oci8',
|
||||
#'oci8_11g',
|
||||
|
@ -83,41 +104,65 @@ $allowed_extensions = [
|
|||
'pgsql',
|
||||
'phar',
|
||||
'pcntl',
|
||||
'phalcon',
|
||||
'posix',
|
||||
'proctitle',
|
||||
'propro',
|
||||
'pspell',
|
||||
'raphf',
|
||||
'readline',
|
||||
#'recode',
|
||||
'redis',
|
||||
'redland',
|
||||
'reflection',
|
||||
'riak',
|
||||
'runkit',
|
||||
'session',
|
||||
'shmop',
|
||||
'simplexml',
|
||||
'snappy',
|
||||
'snmp',
|
||||
'soap',
|
||||
'sockets',
|
||||
'solr',
|
||||
'sphinx',
|
||||
'spl',
|
||||
#'sqlite',
|
||||
'sqlite3',
|
||||
'ssh2',
|
||||
'standard',
|
||||
'stats',
|
||||
'sundown',
|
||||
'swoole',
|
||||
#'sybase_ct',
|
||||
'sysvmsg',
|
||||
'sysvsem',
|
||||
'sysvshm',
|
||||
'test_helpers',
|
||||
'tidy',
|
||||
'timezonedb',
|
||||
'tokenizer',
|
||||
#'tokyotyrant',
|
||||
'uploadprogress',
|
||||
'uuid',
|
||||
#'varnish',
|
||||
'wbxml',
|
||||
'wddx',
|
||||
'xcache',
|
||||
'xdebug',
|
||||
'xml',
|
||||
'xmldiff',
|
||||
'xmlreader',
|
||||
'xmlrpc',
|
||||
'xmlwriter',
|
||||
'xsl',
|
||||
'yaf',
|
||||
'yaml',
|
||||
'yar',
|
||||
'yaz',
|
||||
'zip',
|
||||
'zlib',
|
||||
'zookeeper',
|
||||
];
|
||||
|
||||
$processed = [];
|
||||
|
@ -162,7 +207,12 @@ foreach ($allowed_extensions as $extension)
|
|||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
print "ERROR: '{$extension}' -- " . $e->getMessage() . "\n";
|
||||
echo 'ERROR: "' . $extension . '" -- ' . $e->getMessage() . "\n";
|
||||
|
||||
if ($argc == 2 && $argv[1] == 'brew')
|
||||
{
|
||||
passthru('brew install php55-' . $extension);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,6 +222,11 @@ foreach ($processed as $extension)
|
|||
{
|
||||
if (isset($extension['constants']))
|
||||
{
|
||||
if ($extension['name'] == 'apcu')
|
||||
{
|
||||
$extension['constants'] = str_replace("\0apc_register_serializer-0 ", '', $extension['constants']);
|
||||
}
|
||||
|
||||
$code = $code . '" ' . $extension['name'] . "\n";
|
||||
$code = $code . 'syn keyword phpConstants ' . $extension['constants'] . " contained\n\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue