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

Highlight string interpolation in Vim script #13923

Closed

Conversation

thinca
Copy link
Contributor

@thinca thinca commented Jan 27, 2024

Before:
image

After:
image

  • Highlight { ... } in interpolated string ($'...' and $"...")
  • Highlight {{ and }} as escaped character (they are { and } in interpolated string)

@thinca thinca requested a review from cecamp as a code owner January 27, 2024 06:12
@chrisbra
Copy link
Member

thanks. Can you please add a syntax test for it?

@thinca
Copy link
Contributor Author

thinca commented Jan 27, 2024

@chrisbra I added a test. This is my first time adding a syntax test. Please point out any problems.

@chrisbra
Copy link
Member

thanks, I think this should be fine.

@chrisbra chrisbra closed this in cf8695d Jan 28, 2024
@thinca thinca deleted the highlight-string-interpolation-in-vim-script branch January 29, 2024 02:48
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Jan 29, 2024
runtime(vim): Highlight string interpolation

closes: vim/vim#13923

vim/vim@cf8695d

Co-authored-by: thinca <thinca@gmail.com>
zeertzjq added a commit to neovim/neovim that referenced this pull request Jan 29, 2024
runtime(vim): Highlight string interpolation

closes: vim/vim#13923

vim/vim@cf8695d

Co-authored-by: thinca <thinca@gmail.com>
konosubakonoakua pushed a commit to konosubakonoakua/neovim that referenced this pull request Feb 4, 2024
runtime(vim): Highlight string interpolation

closes: vim/vim#13923

vim/vim@cf8695d

Co-authored-by: thinca <thinca@gmail.com>
glepnir pushed a commit to glepnir/neovim that referenced this pull request Mar 31, 2024
runtime(vim): Highlight string interpolation

closes: vim/vim#13923

vim/vim@cf8695d

Co-authored-by: thinca <thinca@gmail.com>
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.

None yet

2 participants