gilch / hissp

It's Python with a Lissp.
https://gitter.im/hissp-lang/community
Apache License 2.0
369 stars 9 forks source link

Fix LisspLexer #206

Closed gilch closed 1 year ago

gilch commented 1 year ago

205 broke the doc's syntax highlighting in apparently any code blocks containing comments. This updates the LisspLexer for the new tokenization of Lissp.

A lot of the REPL examples also contain a trailing comment. In the real REPL, this would now produce a final continuation prompt. I'm debating whether to add that to the examples. It doesn't seem that important, but it's an inconsistency. This wouldn't be the only way the examples differ from the real REPL. They're separated by newlines for doctesting, but the real REPL currently doesn't do that. Also, the >>> and ... are kind of simulated by the REPL. If you expand a macro the compiler inserts a Python comment, which would result in >>> twice in the actual Python interpreter.

This also finishes up the en# example move which was only partially done before. I don't think I'll keep the deque example.