-
Notifications
You must be signed in to change notification settings - Fork 68
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
Multi-line Comments not considered as Blocks #156
Comments
Since Just do a PR that adds the needed configuration. As I understand it, the only thing you need to do is to add the required regular expressions for comment start and end to the |
Cool, I didn't spot it, I'll do the PR then. |
And you are sure that is not what is supposed to happen? |
Personally I expected to see that collapsed as a normal block, but I don't know how HideShow works internally. |
Can you open some Java code and see what happens. |
I checked copying a java file from a random github java repo. Seems It behaves the same way. Then, I suppose it's right. I'll rise a PR if you can suggest me where to put the extra line. As I said I'm a noob of elisp and modes :D And maybe I'll just create a custom elisp function for collapsing all comments into the current block into my config ;) |
Hi there,
While using
scala-mode
+hs-minor-mode
in order to hide code blocks I noticed that the hiding doesn't work for multi-line comments. Reading thehs-minor-mode
manual in here: https://www.gnu.org/software/emacs/manual/html_node/emacs/Hideshow.htmlSeems that, the definition of what is a block, is responsibility of the major mode.
I attach also a short video showing the issue
If you think this shouldn't go into the
scala-mode
repo, could you suggest me a way to configure the comments to be a block?Thank you so much
The text was updated successfully, but these errors were encountered: