Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stricter checking to "from ... import ..."
Currently token parsing on "from ... import ..." is rather "loose" — it sees the following "invalid" code as perfectly valid: {% from "functions" import my_function, %} {% from "functions" import, %} {% from "functions" import %} This is caused by the parser ignoring non-name values where there should be names, either as the first value or after commas. This commit ensures only name values are allowed as the first value and any values after commas in the import section.
- Loading branch information