Hi vimmers, I've got some question when writing my syntax highlight script.
Q1. The language requires a ^M character as a keyword. The ^M character is by default highlighted but I want to highlight it to some other color, at least it should be different from ^L and ^N... It seems impossible to match the ^M by :syn match Testgroup "^M" (Note the ^M is obtained by press C-K, release, then press C-M, release, then press <Enter>) and :hi def link Testgroup Number does not highlight it as desired. It seems always highlighted to some other color. Q2. The string for the script language can be as long as 50-100 lines, when I write a ":syn region" for string, it works but sometimes when I go page down and page up, the lines of the string are highlighted as "Normal" instead of "String", seems that the context are not concerned. Any work around? Q3. The first occurence of colon and the following occurences in a line have different meanings. So, if there are text: yyyy:xxxx:aaaa:bbbb; I want to highlight the first colon as GroupA, and highlight all following occurences of colon in the same line as GroupB. Is that possible? Thanks in advance. -- Sincerely, Pan, Shi Zhu. ext: 2606