AFAICT, the syntax highlighting engine operates solely by means of regex matches. That's fine as far as it goes, but one of my users has implemented a more useful kind of syntax highlighting in "VSCode" for my "8th" language.
Essentially, in 8th (as in most Forths), you can be in either "interpret" or "compile" mode, and some words (functions) are illegal in one or the other modes. It is very useful to be able to flag such a case in the editor, to alert the programmer of a likely error. So, for example, the word "if" is illegal in 8th, in 'interpret' mode. There are a few words which signal that the mode is 'compile' and a few others which turn it off. Is there a reasonable way to get the vim syntax highlighter to recognize this kind of situation? -- -- 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 on the web visit https://groups.google.com/d/msgid/vim_dev/8804a62a-23ae-4f06-8d54-448c8b619f15%40googlegroups.com.
