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

Comment separator parsed as indentation #548

Closed
RedCMD opened this issue Jun 3, 2024 · 1 comment
Closed

Comment separator parsed as indentation #548

RedCMD opened this issue Jun 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RedCMD
Copy link

RedCMD commented Jun 3, 2024

Describe the bug
not 100% sure if this is just a spec ambiguity
Github also doesn't like it

To Reproduce

:
	#comment??
  a: b
  #comment
  	#comment??

Expected behaviour
I would have expected the tab char to be parsed as a whitespace separator rather than treated as indentation

Versions:

  • Environment: VSCode 1.89
  • yaml: 2.4.3

Additional context
image
image

@RedCMD RedCMD added the bug Something isn't working label Jun 3, 2024
@eemeli
Copy link
Owner

eemeli commented Jun 7, 2024

Yup, that should count as an l-comment, which is allowed to have tabs before it.

@eemeli eemeli closed this as completed in 99fc94d Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants