[vim/vim] runtime(syntax): nested pov comments break highlighting (PR #21109)
Shay Hill (Vim Github Repository) <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/[email protected]> |
A line comment nested in a block comment (the comment plugin uses a block comment on every line) breaks syntax highlighting and shades the rest of the file as a comment.
POV-Ray Scene Description Language (in Vim, ft=pov) allows two comment styles:
- `\\ line comment`
- `\* block comment *\`
The Vim internal comment plugin uses a block comment on every line. The syntax file previously interpreted ...
`\* block comment \\ nested line comment *\`
... as a comment without an ending, leaving the rest of the file highlighted as one long comment string.
before patch:
<img width="430" height="64" alt="pov_snytax_before" src="https://github.com/user-attachments/assets/2c6a5884-ff17-40fc-a695-f4fdfa39572f" />
after patch:
<img width="433" height="65" alt="pov_snytax_after" src="https://github.com/user-attachments/assets/c3674568-23af-4ce1-8ff4-9aef6425eed6" />
You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/21109
-- Commit Summary --
* runtime(syntax): nested pov comments break highlighting
-- File Changes --
M runtime/syntax/pov.vim (9)
-- Patch Links --
https://github.com/vim/vim/pull/21109.patch
https://github.com/vim/vim/pull/21109.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/21109
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/21109%40github.com.