Adding supported tokens
This commit is contained in:
parent
06346c8351
commit
361635b56b
|
@ -19,6 +19,29 @@ function bhl_twig(array $inc_path = [])
|
|||
return $twig;
|
||||
}
|
||||
|
||||
function supported_tokens()
|
||||
{
|
||||
return [
|
||||
'POD',
|
||||
'default',
|
||||
'bhl_bind',
|
||||
'bhl_no_new',
|
||||
'bhl_ecs_component',
|
||||
'bhl_ecs_component_ref',
|
||||
'bhl_coroutine',
|
||||
'bhl_async',
|
||||
'bhl_native_class',
|
||||
'bhl_native_class_params',
|
||||
'bhl_native_prefix',
|
||||
'bhl_custom_rw',
|
||||
'bhl_get',
|
||||
'bhl_set',
|
||||
'bhl_ref_arg',
|
||||
'bhl_bin_op',
|
||||
'bhl_no_itype'
|
||||
];
|
||||
}
|
||||
|
||||
function bhl_add_twig_support(\Twig\Environment $twig)
|
||||
{
|
||||
$twig->addTest(new \Twig\TwigTest('instanceof',
|
||||
|
|
Loading…
Reference in New Issue