Thank you; I didn't know that about the 'optional tail'. So my 'fix' 
actually means that both SQL and SQL[ will be recognized as keywords, which 
isn't what's wanted.

The user who pointed out the issue is actually using 'neovim', so it would 
be great (for me) if a solution which worked with the existing code were 
possible.
On Sunday, September 3, 2023 at 5:03:22 PM UTC+3 James McCoy wrote:

> On Sun, Sep 03, 2023 at 05:33:22AM -0700, 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)
>
> See ":help E789":
>
> < *E789* *E890*
> When you have a keyword with an optional tail, like Ex commands in
> Vim, you can put the optional characters inside [], to define all the
> variations at once: >
> :syntax keyword vimCommand ab[breviate] n[ext]
>
> So it seems like there needs to be a mechanism to opt out of this
> syntax for your case.
>
> Cheers,
> -- 
> James
> GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB
>

-- 
-- 
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/a3ba00c7-ce30-4d1d-88a6-33be6fb0fd37n%40googlegroups.com.

Raspunde prin e-mail lui