From b92b4e2404936bb07f064d76f716d8f654a6eee9 Mon Sep 17 00:00:00 2001 From: aquilesics <40540869+aquilesics@users.noreply.github.com> Date: Sun, 11 Dec 2022 14:21:33 -0300 Subject: [PATCH] add self arg missing self argument in token decorator --- docs/sly.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sly.rst b/docs/sly.rst index 25bd382..08aa1b1 100644 --- a/docs/sly.rst +++ b/docs/sly.rst @@ -345,7 +345,7 @@ appropriately. For example:: return t @_(r'\}') - def rbrace(t): + def rbrace(self, t): t.type = '}' # Set token type to the expected literal self.nesting_level -=1 return t