-
Notifications
You must be signed in to change notification settings - Fork 47
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
Docstrings in protocol methods #1
Comments
Sometimes I extend |
This could be accomplished by marking all strings as docstrings, which would eliminate the issue of some docstrings being nonstandard additions. Then we would have electric indentation in all multiline strings in Clojure. Since we don't really have very many multiline strings that aren't docstrings in Clojure, this would probably be a reasonable solution to the problem. |
I'm just going to leave this code here:
Yes, it actually determines docstrings according to the font color. |
Resolved in 0077229. Sort of -- the docstrings in protocol methods now have electric indentation, but they still aren't colored as docstrings. But the docstrings I've hacked on to non-docstring-allowing functions are never going to get colored as docstrings, so this doesn't really bother me. Since the remaining issue is upstream, I've opened an issue on |
Consider the following protocol definition:
The first docstring (the docstring for the entire protocol) is colored in dark green because it is recognized by
clojure-mode
as a docstring. The second one, however, is not.Additionally, pressing
TAB
does not indent the second docstring correctly, i.e. as follows:This is likely because
clojure-mode
does not recognize it as a docstring.The relevant code to modify is in
clojure-mode.el
, and is as follows:I do not envy whoever tries to fix this.
The text was updated successfully, but these errors were encountered: