From 361635b56b26739764307528ce6745e006c72371 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 8 Dec 2022 18:54:43 +0300 Subject: [PATCH] Adding supported tokens --- src/bind.inc.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/bind.inc.php b/src/bind.inc.php index 721fa88..a3e1858 100644 --- a/src/bind.inc.php +++ b/src/bind.inc.php @@ -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',