-
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
Specifying regions in mmm-mode with start and end index and avoid parse #97
Comments
You can try using Another option would be to save some parsing information in the buffer via text properties. Then define the submodes using FRONT and BACK with function values. Said functions can search for the aforementioned text properties. |
Ok thanks will try using that function |
Ok it works but I get a warning: Invalid or undefined submode class: phps-web, it is possible to avoid it? This is my code:
|
Try using
|
Another error
|
Try disabling |
Yes that seemed to resolve that issue, will dig further.. it seems to work with whitespace-mode as well.. Maybe it was a one time error |
I would like to be able to use mmm-mode with my major mode phps-mode, in phps-mode I automatically get regions specified where inline code (HTML, XML, etc) can be used based on semantic lexer tokens with start and end character indexes of the current buffer, this means there is no need for mmm-mode to parse the buffer in any way.
Is there a way I can send regions to mmm-mode manually and prevent it from parsing the buffer?
Ideally I would like phps-mode as primary mode and then web-mode as mode for the inline areas of a phps-mode buffer. After that I would like css-mode and js2-mode to trigger based on regex regions in web-mode
The text was updated successfully, but these errors were encountered: