Skip to content

Conversation

@alaa-eddine
Copy link
Collaborator

Fixed

  • Scientific Notation Parsing: Fixed Pine Script lexer to correctly parse scientific notation literals (e.g., 10e10, 1.2e-5, 1E+5). Previously, these were incorrectly tokenized as separate tokens, causing syntax errors in transpiled code.
  • Namespace Function Calls in Return Statements: Fixed critical bug where namespace function calls (e.g., math.max(), ta.sma()) in single-expression return statements were incorrectly transpiled with double parentheses (e.g., math.max()()), resulting in runtime errors. Removed redundant AST traversal in transformReturnStatement.

@alaa-eddine alaa-eddine merged commit 215f0c5 into main Jan 13, 2026
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants