-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
julia-mode.el: triple quoted strings and @doc
#11510
Comments
Thanks for filing this, I shouldn't have just left a comment in another issue. Would you mind filing a separate bug for indentation, with an example of where we do the wrong thing? For reference, here's an example of a triple-quoted string that we currently highlight incorrectly: @doc """
Sets the topography related functions:
"
B -- bed eleveation
""" It's unreliable though. |
@Wilfred That triple quote mixed with single quote seems to be a problem in python-mode as well, which is why I didn't bother too much.... |
Actually what exactly is this report about? I do remember some indent problems a few month ago but this is what I'm getting now in my emacs. @doc """
Sets the topography related functions:
B -- bed eleveation
""" ->
function settopo!(pa::GlaDSPara, B, H, ub)
...
end Both this and the one in the original report looks OK for me. (My standard may be wrong so I just want to understand the problem) IMHO, the tripple quote and single quote issue is probably a different one, as @Wilfred said. |
Ah so indent works but not highlghting? Forgot to check that. |
I think I used to have problems with indent, but haven't noticed anything since I switched back to julia-mode from ESS, but it has only been a few hours. I will report back here if I find something. |
@cortner that's the same with what I remember. Please do report back if it stops working again. |
Indent doesn't work for me if it is indented (haha...). For instance this I need to do by hand, every line:
|
I see. What I remember not working before is that the function gets an extra indent after the |
I don't have that problem. If I indent the first line after """ then the following lines will be indented correctly. But I think the first line not being indented is the correct behaviour (at least how I use it). E.g. @doc doc"""some documentation for
a new function; blah blah
"""->
mynewfunction() = nothing |
I think my usage above is correct and it produces the correct string. See #2305 |
I see. For what it's worth, that convention seems reasonable inside a function etc, but for documentation I want the entire width of the editor window. |
Yes, I agree with that. |
Remaining issue moved to JuliaEditorSupport/julia-emacs#7 |
Triple quoted stings don't work properly in emacs mode. Now that we have the
@doc
documentation, I stumble over this one every other method I write. Indentation never works. Highlighting is a erratic.Example:
This issue seems to be known: #9025 (comment) but I wanted to bump it.
The text was updated successfully, but these errors were encountered: