Skip to content

Commit

Permalink
fix: move comment to relevant lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsay-stevens committed Dec 9, 2024
1 parent e67d3aa commit 0fad57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxform/parsing/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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)

Expand Down

0 comments on commit 0fad57d

Please sign in to comment.