-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Glitches when adding newlines #6935
Comments
I'm not sure but I don't see only state.localState = CodeMirror.startState(jsMode); I don't see anywhere ending the mode in PEG.js (no "}" check anywhere). Maybe that is the problem. But I'm not sure how to turn off the inner mode, there is no |
There is no file named PEG.js in the CodeMirror distribution. Is this about pegjs.js, or some 3rd party mode? |
About default pegjs.js mode that is included in the library. The name for the parser generator is PEG.js so I used the name of the project not the filename. |
Your PR looks rather unfinished and confused, and this issue doesn't provide a bug description that I can reproduce, so at this point I can't really do much. Also, that mode was contributed and I'm not willing to invest a lot of time into it. |
Yes, the PR is broken, I thought that I've fixed the pegjs mode but I'm not able to make it work the same as htmlmixed. I'm getting stack overflow when trying to get pegjs mode inside pegjs mode. It's really hard because there is no detailed documentation how to write modes. At least I didn't find any. |
I'm not sure if this is because of bugs in PEG.js mode but I have weird results when I'm adding newlines to the editor. Somethings all lines are broken sometimes they are fixed.
This may be because incremental parser and PEG.js have inner JS mode.
Do you think that the problem is in PEG.js mode or in CodeMirror?
The text was updated successfully, but these errors were encountered: