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

feat: raw strings: distinguish delimiters from actual string #114

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

mrdgo
Copy link
Contributor

@mrdgo mrdgo commented Sep 24, 2024

We could set the delimiters to a different highlight group. Example @punctuation.special:
image

To see all available groups, hit :h treesitter-highlight-groups. I could see:

  • @punctuation.special
  • @punctuation.delimiter
  • @tag.delimiter
  • @string.escape
  • @string.special
  • @string.special.symbol

Any opinions?

Edit: with highlights now in nvim-treesitter, this feels a bit weird. But we can still maintain our own highlights :D

@mrdgo mrdgo changed the title feat: distinguish delimiters from actual string feat: raw strings: distinguish delimiters from actual string Sep 24, 2024
@mrdgo mrdgo marked this pull request as ready for review November 28, 2024 19:25
@fdncred fdncred merged commit 3a021cd into nushell:main Nov 28, 2024
3 checks passed
@fdncred
Copy link
Collaborator

fdncred commented Nov 28, 2024

Thanks

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