Hmm. This works:    SQL[[]
However, a keyword like exec[] if I try exec[[]] complains about the 
trailing ]  

I would have expected syntax keywords to be matched "as is" and not like 
regexes. 
On Sunday, September 3, 2023 at 3:33:22 PM UTC+3 Ron Aaron wrote:

> I was just given a bug report for a new version of my syntax file, and  
> the problem is that a syntax keyword with a lone '[' doesn't work (it 
> causes an error  message  E789)
>
> I have 'syn iskeyword 33-255' (because everything except a space is a 
> valid keyword identifier) but the syntax parser in vim doesn't like it.
>
> I have other keywords with [ but they pair with a ], and my guess is that 
> these are being (improperly) treated as character classes.
>
> How can I get a keyword like SQL[ to be recognized?
>

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/99c10018-f2a2-4d1c-b212-bbc68e66abfen%40googlegroups.com.

Raspunde prin e-mail lui