From 2f2cf570eadbd8d58b7e8fe4c5676008bb1944ba Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sat, 29 Feb 2020 17:51:16 -0500 Subject: [PATCH] Update plugin-api.rst --- docs/plugin-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugin-api.rst b/docs/plugin-api.rst index 4b9397ddf6..9eb3f34a6a 100644 --- a/docs/plugin-api.rst +++ b/docs/plugin-api.rst @@ -77,7 +77,7 @@ to the highlighting engine. If you add a ``result`` key to the object that result will be returned as the overall result and the internal highlighting code will never even be called. -If you're plugin plans to make its own recursive calls to ``highlight`` you'll +If your plugin plans to make its own recursive calls to ``highlight`` you'll need to manually handle this. Each time ``highlight`` is called your plugin callbacks will also be called - making it easy to get into an infinite loop. You'll likely need to use a class based plugin and add a guard so that your