I would like to create a syntax file for an analysis code that I use. I'm having some problems figuring out how to do a couple of things in my syntax file. So I have several questions.
For this portion of the text the basic syntax is a keyword/value pair. I am trying something like the following: syntax match adgAST /AdaptiveStrategyType/ nextgroup=adgASTEnum syntax match adgASTEnum /Default None/ contained I get highlighting for the AdaptiveStrategyType keyword but the next word on the line should be one of Default or None. No other values are allowed after the keyword and I'm not getting any syntax highlighting for these values. I also have values of the form "+/-" or paths like /usr/local/ adagio. How do I escape the /? Doing a simple backslash to escape the slash doesn't seem to work. I also have values that are space separated, like "is one of." How do match just that entire string and not just the parts? Are there any additional tutorials on creating syntax files other than what is in the vim docs? Also, is there anything special that have to do to get this syntax file to work with omni-complete? Any pointers would be appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
