Adding supported tokens

This commit is contained in:
Pavel Shevaev 2022-12-08 18:54:43 +03:00
parent 06346c8351
commit 361635b56b
1 changed files with 23 additions and 0 deletions

View File

@ -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',