As seen in source-academy/frontend#2466, we just set the syntax highlighting rules to match that of full Python for now.
I understand we are only implementing a subset of Python that is enough to cover SICP. To ask:
- Do we need different highlighting rules (compared to the default Python rule) for the different constructs that we support in each chapter?
- Even if we don't, we should define these highlighting rules inside py-slang so that clients like the frontend can remove patchworks like the above.
As seen in source-academy/frontend#2466, we just set the syntax highlighting rules to match that of full Python for now.
I understand we are only implementing a subset of Python that is enough to cover SICP. To ask: