Skip to content
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

Multiline comments #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gustaphe
Copy link

Proper highlighting etc. of comments like these:

x=2
#=
comment explaining the code
more comments
=#
y=2x

@carlobaldassi
Copy link
Contributor

The syntax highlighting part already works well, as far as I can tell.
As for the comments variable, see #198 and comments therein.
Also, I think that the vast majority of the code out there uses single-line comments, e.g.

x = 2
# comment explaining the code
# more comments
y = 2x

Could you explain what's your use case, i.e. why you'd need this?

@gustaphe
Copy link
Author

Huh, I really thought highlighting was one of the reasons I had that in my setup.

The other reason is a FoldIsCommented() function, which uses &comments to figure out whether to mark a fold as fully commented out. From my understanding, &comments is supposed to be a complete list of ways to start comment lines, while &commentstring is the default, the one that is inserted by plugins etc.

Is there any reason to not include the multiline version in &comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants