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

Could not set highlight for languages containing "-" #27

Closed
axieax opened this issue Nov 11, 2021 · 3 comments · Fixed by #28
Closed

Could not set highlight for languages containing "-" #27

axieax opened this issue Nov 11, 2021 · 3 comments · Fixed by #28

Comments

@axieax
Copy link
Contributor

axieax commented Nov 11, 2021

For buffers where TS parser returns a language containing "-", the following error will be displayed on BufEnter:
image

This is due to the highlight command not being able to accept the "-" character. I've found the fix already for this and will add a PR soon!

axieax added a commit to axieax/nvim-biscuits that referenced this issue Nov 11, 2021
@cmgriffing
Copy link
Contributor

cmgriffing commented Nov 11, 2021

Oh interesting. Thanks! Just so I understand, which language was causing this? I should probably just be parsing out the dash. Just looking for examples to test with.

@cmgriffing cmgriffing linked a pull request Nov 11, 2021 that will close this issue
@axieax
Copy link
Contributor Author

axieax commented Nov 11, 2021

Hi it's mostly external plugins for me:

axieax added a commit to axieax/nvim-biscuits that referenced this issue Nov 11, 2021
@axieax
Copy link
Contributor Author

axieax commented Nov 11, 2021

Yep parsing out the dash seems to make this bug disappear as well! I've updated the PR now :))

cmgriffing added a commit that referenced this issue Nov 12, 2021
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 a pull request may close this issue.

2 participants