-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature Request: Infinite Nesting #113
Comments
Hi! This is indeed not something currently supported. If you have spare time to dig in and implement this, I'd review a PR. The performance hit would have to be minimal, or this would have to be preffed out by default, of course. |
Do you have any idea where in the source I would start looking to implement it? |
|
Thanks for the tip. I have made some progress: commit. But I'm stuck on some stubborn parenthesis; I thought I could use some help. |
Is it parsed as part of the delimiters? As you can see in |
Upon further inspection, I have determined that the mode regions are being applied correctly. The red parenthesis are due to |
I'm happy it's working for you, but always running the loop 10 times will result in a definite slowdown. I'd prefer to see some smarter solution. At least one that checks whether the last iteration changed something. BTW, have you ever tried https://github.com/polymode/polymode/? AFAIK it has a couple more advanced features. It's possible that it supports this feature out-of-the-box. |
I actually did try polymode, but it is more for markup, and the documentation is more sparse than mmm. Mmm seems to be more for code and is already working better than polymode ever did for this same purpose. About my commit, it only runs 10 times as a maximum. Line 109 will exit the loop if no more sub-modes have been applied. |
I wonder if it is because the documentation is lacking, or if it really lacks in features. If you had done a comparison, I'd be curious to examine it.
Ah, I see. You can open a PR, and we'll continue the discussion from there. |
Sorry for all the edits, I accidentally pressed enter while typing the title.
This is similar to issue #102, but instead of going two levels, I need to go any number of levels deep.
Here is the sample code:
As you can see the html where is cursor is is lisp-mode, while it should be html-mode.
Here is is as text:
Here is my MMM config:
Basically, what I would like is for the mmm-modes to be applied recursively until there isn't another one found.
The text was updated successfully, but these errors were encountered: