Skip to content

Comments are removed before checking for syntax errors, which include position information #7

Description

@shenanigansd

The syntax validation error messages will report incorrect positions because the comments are removed before the validation step runs, changing the length of the input.

bpp/src/bpp/interpreter.py

Lines 143 to 144 in 65287d3

syntax = [tokenize(line) for line in code.split("\n")]
validate_syntax(syntax)

Metadata

Metadata

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions