-
Notifications
You must be signed in to change notification settings - Fork 86
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
line by line parsing (simple change) #30
Comments
I realized result.top is what I was looking for and that's already existing. We just need this change: - Result parse(String source, {String? language, bool autoDetection = false}) {
+ Result parse(String source, {String? language, bool autoDetection = false, Mode? continuation}) { |
I made a PR. I think the change is simple enough and it works for my project (https://github.com/icedman/flutter_editor) |
@icedman Would be interested how you made the line by line syntax highlighting working, currently trying that as well. My goal is to have syntax highlighting even with wrong syntax in between and highlight the part that is wrong on my own. For me, it's not clear what I need to set in the Mode parameter to do that. Any advice would be appreciated. |
See my PR request or my project at https://github.com/icedman/flutter_editor If you read the code for this plugin.. A document is actually highlighted line-by-line. |
Please add line by line parsing ... Below is currently my workaround (I saved the latest continuation and pass it back on the next line parse). The block comments work correctly. But I'm not sure if this is the right way to do this.
The text was updated successfully, but these errors were encountered: