From 0fad57d2804c9e00fe96b4e84db088443a2c9789 Mon Sep 17 00:00:00 2001 From: lindsay stevens Date: Mon, 9 Dec 2024 20:30:43 +1100 Subject: [PATCH] fix: move comment to relevant lines --- pyxform/parsing/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyxform/parsing/expression.py b/pyxform/parsing/expression.py index 335864e6..2c80b74f 100644 --- a/pyxform/parsing/expression.py +++ b/pyxform/parsing/expression.py @@ -74,7 +74,6 @@ def tokenizer(scan, value) -> ExpLexerToken | str: return re.Scanner(lexicon) -# Scanner takes a few 100ms to compile so use this shared instance. class ExpLexerToken: __slots__ = ("name", "value", "start", "end") @@ -85,6 +84,7 @@ def __init__(self, name: str, value: str, start: int, end: int) -> None: self.end: int = end +# Scanner takes a few 100ms to compile so use these shared instances. _EXPRESSION_LEXER = get_expression_lexer() _TOKEN_NAME_LEXER = get_expression_lexer(name_only=True)