for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\Console\Language;
use Railt\Io\Readable;
* Class Generic
class Generic extends Language
{
* @return array
public function tokens(): array
return [
'T_COMMENT' => '//[^\\n]*',
'T_BLOCK_COMMENT' => '/\\*.*?\\*/',
'T_STRING' => '("[^"\\\\]+(\\\\.[^"\\\\]*)*"|\'[^\'\\\\]+(\\\\.[^\'\\\\]*)*\')',
'T_DIGIT' => '\d+',
'T_VARIABLE' => '[\$\w]+\b'
];
}
public function colors(): array
return [];
* @param Readable $file
* @return bool
public function match(Readable $file): bool
return true;