-
-
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
REPL and editor support for multiline comments #6132
Comments
I'm not even sure I like this feature. |
Multiline comments are the only good things in my life right now. Textmate/sublime mode will also need updating. |
Ugh, i can't stand multiline comments. Someone else will have to modify pygments. |
For (1), the parser should return |
I'm having a bit of trouble with the emacs mode. Syntax tables don't seem to support using the same character as both a 1-character comment open and part of a 2-character comment open. So I settled on the idea of using syntax tables for multi-line comments:
and font-lock for single-line comments:
This works nearly perfectly, except emacs seems to skip coloring some single-line comments essentially at random, as far as I can tell. Anyone have any ideas? |
Maybe look at how cc-mode deals with |
I did; in fact the syntax table system looks like it was extended to handle C++ and little else. It special-cases 2-character comment delimiters; line comments starting with a single |
I don't see why this issue should be a blocker for 0.3. |
I don't either. |
Okay, clearing the milestone marker. |
FWIW, GtkSourceView seems to have the same issue that emacs had. I've posted a message on the gnome-devtools mailing list, but my account hasn't been approved there yet. cc: @Waldir |
I say we close this. I think the most relevant editors/environments have been implemented and if someone notices it's not supported somewhere, they can request or do it and submit a PR. |
Now that #6128 is merged (
#= ... =#
multiline comments), some work needs to be done in supporting it in the REPL and in editors:#=
but not=#
). I'm not actually sure where this code is. cc: @loladiro@nolta@timholyFeel free to edit this issue to add checkboxes for other editors and cc the relevant people.
(I'm not trying to obligate anyone to implement this, obviously, just trying to cc people with interest in the relevant editing modes.)
The text was updated successfully, but these errors were encountered: