diff --git a/syntax.php b/syntax.php
index 7cfd30d..ba61f48 100644
--- a/syntax.php
+++ b/syntax.php
@@ -57,7 +57,7 @@ function postConnect() {
  
  
     // Handle the match
-    function handle($match, $state, $pos, &$handler){
+    function handle($match, $state, $pos, Doku_Handler $handler){
         switch ($state) {
           case DOKU_LEXER_ENTER :
             break;
@@ -77,7 +77,7 @@ function handle($match, $state, $pos, &$handler){
     }
  
     // Create output
-    function render($mode, &$renderer, $data) {
+    function render($mode, Doku_Renderer $renderer, $data) {
         if($mode == 'xhtml'){
           list($state, $color, $text) = $data;
           switch ($state) {