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

TOML inline comments no syntax-highlighted properly #860

Open
amine-aboufirass opened this issue Oct 21, 2024 · 1 comment
Open

TOML inline comments no syntax-highlighted properly #860

amine-aboufirass opened this issue Oct 21, 2024 · 1 comment

Comments

@amine-aboufirass
Copy link

amine-aboufirass commented Oct 21, 2024

Does this bug happen when you install plugin without vim-polyglot?
No
Describe the bug:
TOML files should allow inline comments, but this is not shown by the syntax highlighter.

From NeoVim:

From VS Code:

To Reproduce:
PlugInstall vim-polyglot and reproduce the text above

@smemsh
Copy link

smemsh commented Oct 22, 2024

this seems to work for me, the # a comment gets highlighted the same as # timestep length [s]. highlight trace shows it as a tomlComment. although this identifier is present in both vim upstream version and vim-polyglot, and syntax/toml.vim appears to be identical in both versions except for the polyglot#init#is_disabled() call. I'm using vim 9.1.722. I tried adding a syntax error in the polyglot version and it does appear on edit of toml file, so I presume polyglot one is being used. Not sure about neovim.

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