Saturday, November 23, 2024

Re: Syntax: Using \v (very magic) in patterns in syntax files

On Sun, 24 Nov 2024 at 00:25, BPJ <bpj@melroch.se> wrote:
I have noticed that patterns in published syntax files never use the `\v` (very magic) modifier. Is there any deeper reason than people's preferences for this? Being used to Perl patterns I practically always use it and find it hard to keep track of when to use backslashes when not using it. The result is that more or less subtle errors creep in when I'm writing a syntax file, so I'd prefer to use it unless it's a Really Bad Idea.


There's no reason not to use it and it appears to be employed in some of the distributed syntax files.

I generally find it harder to read, but you obviously don't, and there's never been any sort of restriction on its use.  These things are generally left up to the maintainers.

Regards,
Doug
 

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAJ1uvoBiRBMULPRzyn0EOLPZJd54_v-tBHr98Oih50JPHr7quw%40mail.gmail.com.

No comments:

Post a Comment