You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on #443 I noticed that syntax errors in the lexer point to wrong span
Reproduction steps
Try to parse the following template:
{{ 10_ }}
Additional helpful information:
Version of minijinja: 1.0.15
What did you expect
syntax error: '_' may not occur at end of number (in err_bad_trailing_underscore.txt:1)
----------------------- err_bad_trailing_underscore.txt -----------------------
1 > {{ 10_ }}
i ^ syntax error
Instead I got
syntax error: '_' may not occur at end of number (in err_bad_trailing_underscore.txt:1)
----------------------- err_bad_trailing_underscore.txt -----------------------
1 > {{ 10_ }}
i ^^ syntax error
The text was updated successfully, but these errors were encountered:
Description
When working on #443 I noticed that syntax errors in the lexer point to wrong span
Reproduction steps
Try to parse the following template:
{{ 10_ }}
Additional helpful information:
What did you expect
Instead I got
The text was updated successfully, but these errors were encountered: