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

Uncommenting indented code is broken for vim9script #493

Open
noscript opened this issue Jun 29, 2022 · 5 comments
Open

Uncommenting indented code is broken for vim9script #493

noscript opened this issue Jun 29, 2022 · 5 comments

Comments

@noscript
Copy link

Commenting Vim9 code works, but uncommenting it does nothing.
Only happens for indented code.

2022-06-29_18-16-10.mp4
@alerque
Copy link
Member

alerque commented Jun 29, 2022

What is the declared ft for vim9script?

Does it allow mixing and mating of old style vimL comments in the same file?

@noscript
Copy link
Author

What is the declared ft for vim9script?

vim

Does it allow mixing and mating of old style vimL comments in the same file?

If the first line is vim9script then only new style is allowed.

@alerque
Copy link
Member

alerque commented Jun 30, 2022

Are you kidding me? VIM is using the same filetype for it's old vimscript and new vim9script languages that are completely different languages with incompatible SYNTAX?

@alerque
Copy link
Member

alerque commented Jun 30, 2022

Is there some other vim setting that gets set reliably that we could use to trigger different rules? How do VIM syntax highlighters handle this?

@noscript
Copy link
Author

They can be distinguished by commentstring. New style is #%s, old one is "%s.

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

No branches or pull requests

2 participants