I am trying to write a syntax highlighting module for a tiny text format that includes three different types of list items (starting with -, o and x, respectively), and I would like to highlight entries based on their type. For single lines, it's simple, I just use syn match myGroup /^\s\+- .\+/, and I'm done.
The problem is that I tried to do this so that the following lines without a list marker have the same color as the line in the original list, without any success. I tried to do this with syntax areas, but I can't figure out how they work.
To be more precise, this is the result I'm trying to achieve:

If a change is required in the file format to make it easier / more possible, I have the freedom to change it.
Any clue to how I can get it?
source
share