Closed de-vri-es closed 5 years ago
This PR turns all compile-time panics into compilation errors. It also sets the span for python syntax errors to the matching tokens (currently the whole line causing the syntax error).
For example:
python! { def foo: return 5 }
Now generates this:
error: python: invalid syntax --> inline-python-example/src/main.rs:8:3 | 8 | def foo: | ^^^^^^^^
This PR turns all compile-time panics into compilation errors. It also sets the span for python syntax errors to the matching tokens (currently the whole line causing the syntax error).
For example:
Now generates this: