I am creating a syntax definition for an application. There are two sets of keywords that must be matched, which I have been able to do with the KEYWORDS section. Besides that, I need to highlight all integer and float numbers, which I secceeded to do with a simple RegEx rule. But there is a special command which is causing me problem. This command consists in the keyword date: followed by a date in the format yyyy-mm-dd, this command bein always alone in a line, so:
date:2011-05-06
I can't find out how to do it with RegEx. The problem itself is partially solved, by defining a KEYWORD class containing only the word 'date'. But I need to match the whole command, that is, including the ':' and the date itself.
In the attached file I provide a sample text to be highlighted. The keywords 'nak', 'lor' and 'fj' belong to a group, 'v', 'cna', 'p', 'jp', 'cnak' belong to another group. The 'm' and 't' are shorthands to common numbers (0.5 and -1 respectively), and are highlighted as regular numbers.
sample code to be highlighted, the problem is in the first line.