Thank you, that's where I'm going as well. On Sunday, September 3, 2023 at 9:04:47 PM UTC+3 Doug Kearns wrote:
> G'day Ron, > > On Sun, 3 Sept 2023 at 22:33, Ron Aaron <ronwa...@gmail.com> 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? >> > > I don't believe you can. We ran into the same issue with the Forth syntax > file and just use syn-match for words that include '['. > > The [...] matches an optional sequence like %[..] in a pattern. There's > actually a help entry for E789. > > It could be changed to respect the 'isk' value(s) over the optional > sequence but I'm not sure one is better than the other. It's not > inconceivable that the pattern might be heavily used even though '[' is > included in 'isk' for a small number of keywords. > > Regards, > Doug > -- -- 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/242928a1-5883-4ddb-9255-c6e2892e6a73n%40googlegroups.com.