From 2693dd1fe8175f9d1cfafb31ed058526c5e5a3da Mon Sep 17 00:00:00 2001 From: Wictor Lund Date: Wed, 2 Oct 2019 12:47:29 +0300 Subject: [PATCH] Python: the highlighter believed that the `@' binary operator is a decorator, fix this --- python.jsf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python.jsf b/python.jsf index bad098a..02c1ad6 100644 --- a/python.jsf +++ b/python.jsf @@ -27,12 +27,16 @@ "\"" string_dq_1 recolor=-1 "a-zA-Z_" ident noeat "{}" brace recolor=-1 - "@" decorator recolor=-1 + "@" maybe_decorator :brace Brace * idle noeat # annotations +:maybe_decorator Idle + "a-zA-Z_" decorator recolor=-2 + " (\t\r\n" idle noeat + :decorator Decorator * decorator " (\t\r\n" idle noeat