From aecb4666c57ba2143f25f0f66908b541d8b8bb4c Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Thu, 25 Sep 2025 22:28:28 +0200 Subject: [PATCH] Fix lexer.be --- lib/libesp32/berry_animation/src/dsl/lexer.be | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libesp32/berry_animation/src/dsl/lexer.be b/lib/libesp32/berry_animation/src/dsl/lexer.be index 697b097ec..7d1fd785e 100644 --- a/lib/libesp32/berry_animation/src/dsl/lexer.be +++ b/lib/libesp32/berry_animation/src/dsl/lexer.be @@ -120,6 +120,7 @@ class DSLLexer # Scan identifier or keyword def scan_identifier_or_keyword() + import animation_dsl var start_pos = self.position - 1 var start_column = self.column - 1 @@ -495,6 +496,7 @@ class DSLLexer # Add token to tokens list def add_token(token_type, value, length) + import animation_dsl var token = animation_dsl.Token(token_type, value, self.line, self.column - length, length) self.tokens.push(token) end @@ -532,6 +534,7 @@ end # @param source: string - DSL source code # @return list - Array of Token objects def tokenize_dsl(source) + import animation_dsl var lexer = animation_dsl.DSLLexer(source) return lexer.tokenize() end