New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting for REPL using ammonite as base instead of JLine #1233
Syntax highlighting for REPL using ammonite as base instead of JLine #1233
Conversation
145c447
to
e7cc691
Compare
bf5f854
to
4618297
Compare
Once #1238 is merged I believe this will compile under dotty. Side note: running only one test in the tests.scala file: |
One was implemted by hand and the other by using dotty's parser. The one built by hand is shorter, and behaves correctly. The scanner one is unfortunately not ready for testing - there are too many things that are workarounds for it to be a good solution as of now The code added from Ammonite is licensed under MIT, not sure where to put the license - but will add it once I know.
Since we decided to go with the non dotty-scanner approach these are unnecessary to have altered, might just as well revert them.
Launching the repl with: `runMain dotty.tools.dotc.repl.Main` is now working correctly
45d207a
to
3515901
Compare
@felixmulder You can rebase and try again. #1238 is merged. |
8fb9c11
to
f02cfda
Compare
f02cfda
to
29fc55a
Compare
When enter pressed immediately after keyword, the highlighting would be aborted
@odersky: there was a test that compiled dotty with |
@odersky, it would be nice to get this in before ScalaDays. |
LGTM, thanks! |
One was implemented by hand and the other by using dotty's scanner. The one
built by hand is ~short, and behaves correctly.
The scanner one is unfortunately not ready for testing - there are too
many things that are workarounds for it to be a good solution as of now
The code added from Ammonite is licensed under MIT, not sure where to
put the license - but will add it once I know.